No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / postmap / Makefile.in
blob8d876df715a02ec5e36c908487edc61fee98933a
1 SHELL = /bin/sh
2 SRCS = postmap.c
3 OBJS = postmap.o
4 HDRS =
5 TESTSRC =
6 DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
7 CFLAGS = $(DEBUG) $(OPT) $(DEFS)
8 TESTPROG=
9 PROG = postmap
10 INC_DIR = ../../include
11 LIBS = ../../lib/libglobal.a ../../lib/libutil.a
13 .c.o:; $(CC) $(CFLAGS) -c $*.c
15 $(PROG): $(OBJS) $(LIBS)
16 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
18 $(OBJS): ../../conf/makedefs.out
20 Makefile: Makefile.in
21 cat ../../conf/makedefs.out $? >$@
23 update: ../../bin/$(PROG)
25 ../../bin/$(PROG): $(PROG)
26 cp $(PROG) ../../bin
28 tests: test1 test2
30 root_tests:
32 test1: $(PROG) map.in map-abc1.ref map-ghi1.ref map-uABC1.ref
33 ./$(PROG) map.in
34 for key in abc ghi; \
35 do \
36 ./$(PROG) -q $${key} map.in | diff map-$${key}1.ref -; \
37 done
38 ./$(PROG) -f map.in
39 for key in ABC; \
40 do \
41 ./$(PROG) -fq $${key} map.in | diff map-u$${key}1.ref -; \
42 done
43 rm -f map.in.db
45 test2: $(PROG) map.in map-abc2.ref map-ghi2.ref map-uABC2.ref
46 ./$(PROG) map.in
47 for key in abc ghi; \
48 do \
49 echo $${key} | ./$(PROG) -q - map.in | diff map-$${key}2.ref -; \
50 done
51 ./$(PROG) -f map.in
52 for key in ABC; \
53 do \
54 echo $${key} | ./$(PROG) -fq - map.in | diff map-u$${key}2.ref -; \
55 done
56 rm -f map.in.db
58 printfck: $(OBJS) $(PROG)
59 rm -rf printfck
60 mkdir printfck
61 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
62 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
63 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`
65 lint:
66 lint $(DEFS) $(SRCS) $(LINTFIX)
68 clean:
69 rm -f *.o *core $(PROG) $(TESTPROG) junk map.in.db
70 rm -rf printfck
72 tidy: clean
74 depend: $(MAKES)
75 (sed '1,/^# do not edit/!d' Makefile.in; \
76 set -e; for i in [a-z][a-z0-9]*.c; do \
77 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
78 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
79 -e 's/o: \.\//o: /' -e p -e '}' ; \
80 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
81 @$(EXPORT) make -f Makefile.in Makefile 1>&2
83 # do not edit below this line - it is generated by 'make depend'
84 postmap.o: ../../include/argv.h
85 postmap.o: ../../include/dict.h
86 postmap.o: ../../include/dict_proxy.h
87 postmap.o: ../../include/header_opts.h
88 postmap.o: ../../include/mail_conf.h
89 postmap.o: ../../include/mail_dict.h
90 postmap.o: ../../include/mail_params.h
91 postmap.o: ../../include/mail_task.h
92 postmap.o: ../../include/mail_version.h
93 postmap.o: ../../include/mime_state.h
94 postmap.o: ../../include/mkmap.h
95 postmap.o: ../../include/msg.h
96 postmap.o: ../../include/msg_syslog.h
97 postmap.o: ../../include/msg_vstream.h
98 postmap.o: ../../include/mymalloc.h
99 postmap.o: ../../include/readlline.h
100 postmap.o: ../../include/rec_type.h
101 postmap.o: ../../include/set_eugid.h
102 postmap.o: ../../include/split_at.h
103 postmap.o: ../../include/stringops.h
104 postmap.o: ../../include/sys_defs.h
105 postmap.o: ../../include/vbuf.h
106 postmap.o: ../../include/vstream.h
107 postmap.o: ../../include/vstring.h
108 postmap.o: ../../include/vstring_vstream.h
109 postmap.o: postmap.c