1SHELL = /bin/sh 2SRCS = postqueue.c showq_compat.c showq_json.c 3OBJS = postqueue.o showq_compat.o showq_json.o 4HDRS = postqueue.h 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = postqueue 10INC_DIR = ../../include 11LIBS = ../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \ 12 ../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX) 13 14.c.o:; $(CC) $(CFLAGS) -c $*.c 15 16$(PROG): $(OBJS) $(LIBS) 17 $(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) 18 19$(OBJS): ../../conf/makedefs.out postqueue.h 20 21Makefile: Makefile.in 22 cat ../../conf/makedefs.out $? >$@ 23 24test: $(TESTPROG) 25 26tests: 27 28root_tests: 29 30update: ../../bin/$(PROG) 31 32../../bin/$(PROG): $(PROG) 33 cp $(PROG) ../../bin 34 35printfck: $(OBJS) $(PROG) 36 rm -rf printfck 37 mkdir printfck 38 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile 39 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 40 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 41 42lint: 43 lint $(DEFS) $(SRCS) $(LINTFIX) 44 45clean: 46 rm -f *.o *core $(PROG) $(TESTPROG) junk 47 rm -rf printfck 48 49tidy: clean 50 51depend: $(MAKES) 52 (sed '1,/^# do not edit/!d' Makefile.in; \ 53 set -e; for i in [a-z][a-z0-9]*.c; do \ 54 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 55 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 56 -e 's/o: \.\//o: /' -e p -e '}' ; \ 57 done | LANG=C sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 58 @$(EXPORT) make -f Makefile.in Makefile 1>&2 59 60# do not edit below this line - it is generated by 'make depend' 61postqueue.o: ../../include/argv.h 62postqueue.o: ../../include/attr.h 63postqueue.o: ../../include/check_arg.h 64postqueue.o: ../../include/clean_env.h 65postqueue.o: ../../include/connect.h 66postqueue.o: ../../include/events.h 67postqueue.o: ../../include/flush_clnt.h 68postqueue.o: ../../include/htable.h 69postqueue.o: ../../include/iostuff.h 70postqueue.o: ../../include/mail_conf.h 71postqueue.o: ../../include/mail_dict.h 72postqueue.o: ../../include/mail_flush.h 73postqueue.o: ../../include/mail_params.h 74postqueue.o: ../../include/mail_parm_split.h 75postqueue.o: ../../include/mail_proto.h 76postqueue.o: ../../include/mail_queue.h 77postqueue.o: ../../include/mail_run.h 78postqueue.o: ../../include/mail_task.h 79postqueue.o: ../../include/mail_version.h 80postqueue.o: ../../include/maillog_client.h 81postqueue.o: ../../include/msg.h 82postqueue.o: ../../include/msg_vstream.h 83postqueue.o: ../../include/mymalloc.h 84postqueue.o: ../../include/nvtable.h 85postqueue.o: ../../include/safe.h 86postqueue.o: ../../include/smtp_stream.h 87postqueue.o: ../../include/stringops.h 88postqueue.o: ../../include/sys_defs.h 89postqueue.o: ../../include/user_acl.h 90postqueue.o: ../../include/valid_hostname.h 91postqueue.o: ../../include/valid_mailhost_addr.h 92postqueue.o: ../../include/vbuf.h 93postqueue.o: ../../include/vstream.h 94postqueue.o: ../../include/vstring.h 95postqueue.o: ../../include/warn_stat.h 96postqueue.o: postqueue.c 97postqueue.o: postqueue.h 98showq_compat.o: ../../include/attr.h 99showq_compat.o: ../../include/check_arg.h 100showq_compat.o: ../../include/htable.h 101showq_compat.o: ../../include/iostuff.h 102showq_compat.o: ../../include/mail_date.h 103showq_compat.o: ../../include/mail_params.h 104showq_compat.o: ../../include/mail_proto.h 105showq_compat.o: ../../include/mail_queue.h 106showq_compat.o: ../../include/msg.h 107showq_compat.o: ../../include/mymalloc.h 108showq_compat.o: ../../include/nvtable.h 109showq_compat.o: ../../include/stringops.h 110showq_compat.o: ../../include/sys_defs.h 111showq_compat.o: ../../include/vbuf.h 112showq_compat.o: ../../include/vstream.h 113showq_compat.o: ../../include/vstring.h 114showq_compat.o: postqueue.h 115showq_compat.o: showq_compat.c 116showq_json.o: ../../include/attr.h 117showq_json.o: ../../include/check_arg.h 118showq_json.o: ../../include/htable.h 119showq_json.o: ../../include/iostuff.h 120showq_json.o: ../../include/mail_date.h 121showq_json.o: ../../include/mail_params.h 122showq_json.o: ../../include/mail_proto.h 123showq_json.o: ../../include/mail_queue.h 124showq_json.o: ../../include/msg.h 125showq_json.o: ../../include/mymalloc.h 126showq_json.o: ../../include/nvtable.h 127showq_json.o: ../../include/stringops.h 128showq_json.o: ../../include/sys_defs.h 129showq_json.o: ../../include/vbuf.h 130showq_json.o: ../../include/vstream.h 131showq_json.o: ../../include/vstring.h 132showq_json.o: postqueue.h 133showq_json.o: showq_json.c 134