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