1SHELL = /bin/sh 2SRCS = postqueue.c 3OBJS = postqueue.o 4HDRS = 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = postqueue 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' 60postqueue.o: ../../include/argv.h 61postqueue.o: ../../include/attr.h 62postqueue.o: ../../include/clean_env.h 63postqueue.o: ../../include/connect.h 64postqueue.o: ../../include/flush_clnt.h 65postqueue.o: ../../include/iostuff.h 66postqueue.o: ../../include/mail_conf.h 67postqueue.o: ../../include/mail_dict.h 68postqueue.o: ../../include/mail_flush.h 69postqueue.o: ../../include/mail_params.h 70postqueue.o: ../../include/mail_proto.h 71postqueue.o: ../../include/mail_queue.h 72postqueue.o: ../../include/mail_run.h 73postqueue.o: ../../include/mail_task.h 74postqueue.o: ../../include/mail_version.h 75postqueue.o: ../../include/msg.h 76postqueue.o: ../../include/msg_syslog.h 77postqueue.o: ../../include/msg_vstream.h 78postqueue.o: ../../include/mymalloc.h 79postqueue.o: ../../include/safe.h 80postqueue.o: ../../include/smtp_stream.h 81postqueue.o: ../../include/sys_defs.h 82postqueue.o: ../../include/user_acl.h 83postqueue.o: ../../include/valid_hostname.h 84postqueue.o: ../../include/valid_mailhost_addr.h 85postqueue.o: ../../include/vbuf.h 86postqueue.o: ../../include/vstream.h 87postqueue.o: ../../include/vstring.h 88postqueue.o: postqueue.c 89