Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / postlog / Makefile.in
blob5882fd33fa4f3cd16725121b06785c895c1f32f1
1 SHELL = /bin/sh
2 SRCS = postlog.c
3 OBJS = postlog.o
4 HDRS =
5 TESTSRC =
6 DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
7 CFLAGS = $(DEBUG) $(OPT) $(DEFS)
8 FILES = Makefile $(SRCS) $(HDRS)
9 INC_DIR = ../../include
10 TESTPROG=
11 PROG = postlog
12 LIBS = ../../lib/libglobal.a ../../lib/libutil.a
14 .c.o:; $(CC) $(CFLAGS) -c $*.c
16 $(PROG): $(OBJS) $(LIBS)
17 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
19 $(OBJS): ../../conf/makedefs.out
21 Makefile: Makefile.in
22 cat ../../conf/makedefs.out $? >$@
24 test: $(TESTPROG)
26 tests:
28 root_tests:
30 update: ../../bin/$(PROG)
32 ../../bin/$(PROG): $(PROG)
33 cp $(PROG) ../../bin
35 printfck: $(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`
42 shar:
43 @shar $(FILES)
45 lint:
46 lint $(SRCS)
48 clean:
49 rm -f *.o *core $(PROG) $(TESTPROG) junk
50 rm -rf printfck
52 tidy: clean
54 depend: $(MAKES)
55 (sed '1,/^# do not edit/!d' Makefile.in; \
56 set -e; for i in [a-z][a-z0-9]*.c; do \
57 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
58 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
59 -e 's/o: \.\//o: /' -e p -e '}' ; \
60 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
61 @$(EXPORT) make -f Makefile.in Makefile 1>&2
63 # do not edit below this line - it is generated by 'make depend'
64 postlog.o: ../../include/mail_conf.h
65 postlog.o: ../../include/mail_params.h
66 postlog.o: ../../include/mail_task.h
67 postlog.o: ../../include/mail_version.h
68 postlog.o: ../../include/msg.h
69 postlog.o: ../../include/msg_output.h
70 postlog.o: ../../include/msg_syslog.h
71 postlog.o: ../../include/msg_vstream.h
72 postlog.o: ../../include/sys_defs.h
73 postlog.o: ../../include/vbuf.h
74 postlog.o: ../../include/vstream.h
75 postlog.o: ../../include/vstring.h
76 postlog.o: ../../include/vstring_vstream.h
77 postlog.o: postlog.c