1SHELL = /bin/sh 2SRCS = discard.c 3OBJS = discard.o 4HDRS = 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = discard 10INC_DIR = ../../include 11LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a 12 13.c.o:; $(CC) $(CFLAGS) -c $*.c 14 15$(PROG): $(OBJS) $(LIBS) 16 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) 17 18$(OBJS): ../../conf/makedefs.out 19 20Makefile: Makefile.in 21 cat ../../conf/makedefs.out $? >$@ 22 23test: $(TESTPROG) 24 25tests: 26 27root_tests: 28 29update: ../../libexec/$(PROG) 30 31../../libexec/$(PROG): $(PROG) 32 cp $(PROG) ../../libexec 33 34printfck: $(OBJS) $(PROG) 35 rm -rf printfck 36 mkdir printfck 37 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile 38 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 39 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 40 41lint: 42 lint $(DEFS) $(SRCS) $(LINTFIX) 43 44clean: 45 rm -f *.o *core $(PROG) $(TESTPROG) junk 46 rm -rf printfck 47 48tidy: clean 49 50depend: $(MAKES) 51 (sed '1,/^# do not edit/!d' Makefile.in; \ 52 set -e; for i in [a-z][a-z0-9]*.c; do \ 53 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 54 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 55 -e 's/o: \.\//o: /' -e p -e '}' ; \ 56 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 57 @$(EXPORT) make -f Makefile.in Makefile 1>&2 58 59# do not edit below this line - it is generated by 'make depend' 60discard.o: ../../include/attr.h 61discard.o: ../../include/bounce.h 62discard.o: ../../include/deliver_completed.h 63discard.o: ../../include/deliver_request.h 64discard.o: ../../include/dsn.h 65discard.o: ../../include/dsn_buf.h 66discard.o: ../../include/dsn_util.h 67discard.o: ../../include/flush_clnt.h 68discard.o: ../../include/mail_queue.h 69discard.o: ../../include/mail_server.h 70discard.o: ../../include/mail_version.h 71discard.o: ../../include/msg.h 72discard.o: ../../include/msg_stats.h 73discard.o: ../../include/recipient_list.h 74discard.o: ../../include/sent.h 75discard.o: ../../include/sys_defs.h 76discard.o: ../../include/vbuf.h 77discard.o: ../../include/vstream.h 78discard.o: ../../include/vstring.h 79discard.o: discard.c 80