Makefile.in revision 1.1.1.5
1SHELL = /bin/sh 2SRCS = postmap.c 3OBJS = postmap.o 4HDRS = 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = postmap 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 20 21Makefile: Makefile.in 22 cat ../../conf/makedefs.out $? >$@ 23 24update: ../../bin/$(PROG) 25 26../../bin/$(PROG): $(PROG) 27 cp $(PROG) ../../bin 28 29tests: test1 test2 fail_test quote_test file_test 30 31root_tests: 32 33test1: $(PROG) map.in map-abc1.ref map-ghi1.ref map-uABC1.ref 34 $(SHLIB_ENV) ./$(PROG) map.in 35 for key in abc ghi; \ 36 do \ 37 $(SHLIB_ENV) ./$(PROG) -q $${key} map.in | diff map-$${key}1.ref -; \ 38 done 39 $(SHLIB_ENV) ./$(PROG) -f map.in 40 for key in ABC; \ 41 do \ 42 $(SHLIB_ENV) ./$(PROG) -fq $${key} map.in | diff map-u$${key}1.ref -; \ 43 done 44 rm -f map.in.db 45 46test2: $(PROG) map.in map-abc2.ref map-ghi2.ref map-uABC2.ref 47 $(SHLIB_ENV) ./$(PROG) map.in 48 for key in abc ghi; \ 49 do \ 50 echo $${key} | $(SHLIB_ENV) ./$(PROG) -q - map.in | diff map-$${key}2.ref -; \ 51 done 52 $(SHLIB_ENV) ./$(PROG) -f map.in 53 for key in ABC; \ 54 do \ 55 echo $${key} | $(SHLIB_ENV) ./$(PROG) -fq - map.in | diff map-u$${key}2.ref -; \ 56 done 57 rm -f map.in.db 58 59fail_test: $(PROG) aliases fail_test.in fail_test.ref 60 -($(SHLIB_ENV) sh fail_test.in || exit 0) 2>&1 | \ 61 sed -e 's/No error:/Unknown error:/' \ 62 -e 's/Success/Unknown error: 0/' > fail_test.tmp 63 diff fail_test.ref fail_test.tmp 64 rm -f fail_test.tmp 65 66quote_test: $(PROG) aliases quote_test.in quote_test.ref 67 rm -f quote_test_map.* 68 $(SHLIB_ENV) sh quote_test.in >quote_test.tmp 2>&1 69 diff quote_test.ref quote_test.tmp 70 rm -f quote_test.tmp quote_test_map.* 71 72file_test: $(PROG) file_test.in file_test.ref 73 rm -f file_test_map.* postmap-file-1 postmap-file-2 74 $(SHLIB_ENV) sh file_test.in >file_test.tmp 2>&1 75 diff file_test.ref file_test.tmp 76 rm -f file_test.tmp file_test_map.* postmap-file-1 postmap-file-2 77 78printfck: $(OBJS) $(PROG) 79 rm -rf printfck 80 mkdir printfck 81 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile 82 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 83 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 84 85lint: 86 lint $(DEFS) $(SRCS) $(LINTFIX) 87 88clean: 89 rm -f *.o *core $(PROG) $(TESTPROG) *.tmp junk *.db 90 rm -rf printfck 91 92tidy: clean 93 94depend: $(MAKES) 95 (sed '1,/^# do not edit/!d' Makefile.in; \ 96 set -e; for i in [a-z][a-z0-9]*.c; do \ 97 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 98 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 99 -e 's/o: \.\//o: /' -e p -e '}' ; \ 100 done | LANG=C sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 101 @$(EXPORT) make -f Makefile.in Makefile 1>&2 102 103# do not edit below this line - it is generated by 'make depend' 104postmap.o: ../../include/argv.h 105postmap.o: ../../include/check_arg.h 106postmap.o: ../../include/clean_env.h 107postmap.o: ../../include/dict.h 108postmap.o: ../../include/dict_proxy.h 109postmap.o: ../../include/header_opts.h 110postmap.o: ../../include/mail_conf.h 111postmap.o: ../../include/mail_dict.h 112postmap.o: ../../include/mail_params.h 113postmap.o: ../../include/mail_parm_split.h 114postmap.o: ../../include/mail_task.h 115postmap.o: ../../include/mail_version.h 116postmap.o: ../../include/maillog_client.h 117postmap.o: ../../include/mime_state.h 118postmap.o: ../../include/mkmap.h 119postmap.o: ../../include/msg.h 120postmap.o: ../../include/msg_vstream.h 121postmap.o: ../../include/myflock.h 122postmap.o: ../../include/mymalloc.h 123postmap.o: ../../include/readlline.h 124postmap.o: ../../include/rec_type.h 125postmap.o: ../../include/set_eugid.h 126postmap.o: ../../include/split_at.h 127postmap.o: ../../include/stringops.h 128postmap.o: ../../include/sys_defs.h 129postmap.o: ../../include/vbuf.h 130postmap.o: ../../include/vstream.h 131postmap.o: ../../include/vstring.h 132postmap.o: ../../include/vstring_vstream.h 133postmap.o: ../../include/warn_stat.h 134postmap.o: postmap.c 135