1# 2# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 3# 4# cmd/cmd-inet/usr.bin/pppdump/Makefile 5# 6 7PROG= pppdump 8OBJS= bsd-comp.o deflate.o pppdump.o zlib.o 9SRCS= $(OBJS:%.o=%.c) 10 11include ../../../Makefile.cmd 12 13CPPFLAGS += -DPPP_DEFS_IN_NET 14 15.KEEP_STATE: 16 17.PARALLEL: $(OBJS) 18 19all: $(PROG) 20 21CLOBBERFILES += THIRDPARTYLICENSE 22 23all install: THIRDPARTYLICENSE 24 25THIRDPARTYLICENSE: LICENSE.top COPYING.top 26 $(RM) $@ 27 $(CAT) LICENSE.top COPYING.top > $@ 28 29$(PROG): $(OBJS) 30 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 31 $(POST_PROCESS) 32 33$(ROOTMAN1M)/pppdump.1m:= FILEMODE=0444 34$(ROOTMAN1M)/%: % 35 $(INS.file) 36$(ROOTMAN1M): 37 $(INS.dir) 38 39ROOTSRC= $(ROOT)/usr/share/src/ppputil 40TOPFILES= Makefile CHANGES COPYING INSTALL LICENSE README 41ROOTTOPFILES= $(TOPFILES:%=$(ROOTSRC)/%) 42$(ROOTTOPFILES) := FILEMODE= 0444 43ROOTDIST= $(ROOTSRC)/pppdump 44DISTFILES= Makefile bsd-comp.c deflate.c ppp-comp.h pppdump.1m pppdump.c \ 45 zlib.c zlib.h 46ROOTDISTFILES= $(DISTFILES:%=$(ROOTDIST)/%) 47$(ROOTDISTFILES) := FILEMODE= 0444 48 49install: all $(ROOTPROG) install_src install_man 50 51install_man: $(ROOTMAN1M) $(ROOTMAN1M)/pppdump.1m 52 53install_src: $(ROOTSRC) .WAIT $(ROOTTOPFILES) $(ROOTDIST) .WAIT \ 54 $(ROOTDISTFILES) 55 56$(ROOTSRC) $(ROOTDIST): 57 $(INS.dir) 58 59$(ROOTSRC)/%: %.top 60 $(INS.rename) 61 62$(ROOTDIST)/Makefile%: Makefile%.dist 63 $(INS.rename) 64 65$(ROOTDIST)/%: % 66 $(INS.file) 67 68clean: 69 $(RM) $(OBJS) 70 71lint: 72 73include ../../../Makefile.targ 74