Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / milter / Makefile.in
blobc28263a5e55a79d929b6d6ce909bb648adc02b72
1 SHELL = /bin/sh
2 SRCS = milter.c milter8.c milter_macros.c
3 OBJS = milter.o milter8.o milter_macros.o
4 HDRS = milter.h
5 TESTSRC =
6 DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
7 CFLAGS = $(DEBUG) $(OPT) $(DEFS)
8 INCL =
9 LIB = libmilter.a
10 TESTPROG= milter test-milter
12 LIBS = ../../lib/libglobal.a ../../lib/libutil.a
13 LIB_DIR = ../../lib
14 INC_DIR = ../../include
15 MAKES =
17 .c.o:; $(CC) $(CFLAGS) -c $*.c
19 all: $(LIB)
21 $(OBJS): ../../conf/makedefs.out
23 Makefile: Makefile.in
24 cat ../../conf/makedefs.out $? >$@
26 test: $(TESTPROG)
28 tests:
30 root_tests:
32 $(LIB): $(OBJS)
33 $(AR) $(ARFL) $(LIB) $?
34 $(RANLIB) $(LIB)
36 $(LIB_DIR)/$(LIB): $(LIB)
37 cp $(LIB) $(LIB_DIR)
38 $(RANLIB) $(LIB_DIR)/$(LIB)
40 update: $(LIB_DIR)/$(LIB) $(HDRS)
41 -for i in $(HDRS); \
42 do \
43 cmp -s $$i $(INC_DIR)/$$i 2>/dev/null || cp $$i $(INC_DIR); \
44 done
45 cd $(INC_DIR); chmod 644 $(HDRS)
47 printfck: $(OBJS) $(PROG)
48 rm -rf printfck
49 mkdir printfck
50 cp *.h printfck
51 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
52 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
53 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`
55 lint:
56 lint $(DEFS) $(SRCS) $(LINTFIX)
58 clean:
59 rm -f *.o $(LIB) *core $(TESTPROG) junk
60 rm -rf printfck
62 tidy: clean
64 milter: milter.c $(LIB) $(LIBS)
65 mv $@.o junk
66 $(CC) $(CFLAGS) -DTEST -o $@ $@.c $(LIB) $(LIBS) $(SYSLIBS)
67 mv junk $@.o
69 test-milter: test-milter.c
70 cc -g -I/usr/local/include -o $@ $? -L/usr/local/lib -lmilter -lpthread
72 depend: $(MAKES)
73 (sed '1,/^# do not edit/!d' Makefile.in; \
74 set -e; for i in [a-z][a-z0-9]*.c; do \
75 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
76 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
77 -e 's/o: \.\//o: /' -e p -e '}' ; \
78 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
79 @$(EXPORT) make -f Makefile.in Makefile 1>&2
81 # do not edit below this line - it is generated by 'make depend'
82 milter.o: ../../include/argv.h
83 milter.o: ../../include/attr.h
84 milter.o: ../../include/iostuff.h
85 milter.o: ../../include/mail_proto.h
86 milter.o: ../../include/msg.h
87 milter.o: ../../include/mymalloc.h
88 milter.o: ../../include/rec_type.h
89 milter.o: ../../include/record.h
90 milter.o: ../../include/stringops.h
91 milter.o: ../../include/sys_defs.h
92 milter.o: ../../include/vbuf.h
93 milter.o: ../../include/vstream.h
94 milter.o: ../../include/vstring.h
95 milter.o: milter.c
96 milter.o: milter.h
97 milter8.o: ../../include/argv.h
98 milter8.o: ../../include/attr.h
99 milter8.o: ../../include/connect.h
100 milter8.o: ../../include/header_opts.h
101 milter8.o: ../../include/iostuff.h
102 milter8.o: ../../include/is_header.h
103 milter8.o: ../../include/mail_params.h
104 milter8.o: ../../include/mail_proto.h
105 milter8.o: ../../include/mime_state.h
106 milter8.o: ../../include/msg.h
107 milter8.o: ../../include/mymalloc.h
108 milter8.o: ../../include/name_code.h
109 milter8.o: ../../include/name_mask.h
110 milter8.o: ../../include/rec_type.h
111 milter8.o: ../../include/record.h
112 milter8.o: ../../include/split_at.h
113 milter8.o: ../../include/stringops.h
114 milter8.o: ../../include/sys_defs.h
115 milter8.o: ../../include/vbuf.h
116 milter8.o: ../../include/vstream.h
117 milter8.o: ../../include/vstring.h
118 milter8.o: milter.h
119 milter8.o: milter8.c
120 milter_macros.o: ../../include/argv.h
121 milter_macros.o: ../../include/attr.h
122 milter_macros.o: ../../include/iostuff.h
123 milter_macros.o: ../../include/mail_proto.h
124 milter_macros.o: ../../include/msg.h
125 milter_macros.o: ../../include/mymalloc.h
126 milter_macros.o: ../../include/sys_defs.h
127 milter_macros.o: ../../include/vbuf.h
128 milter_macros.o: ../../include/vstream.h
129 milter_macros.o: ../../include/vstring.h
130 milter_macros.o: milter.h
131 milter_macros.o: milter_macros.c
132 test-milter.o: test-milter.c