1SHELL = /bin/sh 2SRCS = postdrop.c 3OBJS = postdrop.o 4HDRS = 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = postdrop 10INC_DIR = ../../include 11LIBS = ../../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: ../../bin/$(PROG) 30 31../../bin/$(PROG): $(PROG) 32 cp $(PROG) ../../bin 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' 60postdrop.o: ../../include/argv.h 61postdrop.o: ../../include/attr.h 62postdrop.o: ../../include/clean_env.h 63postdrop.o: ../../include/cleanup_user.h 64postdrop.o: ../../include/iostuff.h 65postdrop.o: ../../include/mail_conf.h 66postdrop.o: ../../include/mail_params.h 67postdrop.o: ../../include/mail_proto.h 68postdrop.o: ../../include/mail_queue.h 69postdrop.o: ../../include/mail_stream.h 70postdrop.o: ../../include/mail_task.h 71postdrop.o: ../../include/mail_version.h 72postdrop.o: ../../include/msg.h 73postdrop.o: ../../include/msg_syslog.h 74postdrop.o: ../../include/msg_vstream.h 75postdrop.o: ../../include/mymalloc.h 76postdrop.o: ../../include/rec_attr_map.h 77postdrop.o: ../../include/rec_type.h 78postdrop.o: ../../include/record.h 79postdrop.o: ../../include/stringops.h 80postdrop.o: ../../include/sys_defs.h 81postdrop.o: ../../include/user_acl.h 82postdrop.o: ../../include/vbuf.h 83postdrop.o: ../../include/vstream.h 84postdrop.o: ../../include/vstring.h 85postdrop.o: postdrop.c 86