122 lines
4.2 KiB
Makefile
122 lines
4.2 KiB
Makefile
SHELL = /bin/sh
|
|
SRCS = bounce.c bounce_append_service.c bounce_notify_service.c \
|
|
bounce_cleanup.c
|
|
OBJS = bounce.o bounce_append_service.o bounce_notify_service.o \
|
|
bounce_cleanup.o
|
|
HDRS =
|
|
TESTSRC =
|
|
WARN = -W -Wformat -Wimplicit -Wmissing-prototypes \
|
|
-Wparentheses -Wstrict-prototypes -Wswitch -Wuninitialized \
|
|
-Wunused
|
|
DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
|
|
CFLAGS = $(DEBUG) $(OPT) $(DEFS)
|
|
TESTPROG=
|
|
PROG = bounce
|
|
INC_DIR = ../include
|
|
LIBS = ../lib/libmaster.a ../lib/libglobal.a ../lib/libutil.a
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
Makefile: Makefile.in
|
|
(set -e; echo "# DO NOT EDIT"; $(OPTS) $(SHELL) ../makedefs; cat $?) >$@
|
|
|
|
test: $(TESTPROG)
|
|
|
|
update: ../libexec/$(PROG)
|
|
|
|
../libexec/$(PROG): $(PROG)
|
|
cp $(PROG) ../libexec
|
|
|
|
printfck: $(OBJS) $(PROG)
|
|
rm -rf printfck
|
|
mkdir printfck
|
|
cp *.h printfck
|
|
sed '1,/^# do not edit/!d' Makefile > printfck/Makefile
|
|
set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
|
|
cd printfck; make "INC_DIR=../../include" `cd ..; ls *.o`
|
|
|
|
lint:
|
|
lint $(DEFS) $(SRCS) $(LINTFIX)
|
|
|
|
clean:
|
|
rm -f *.o *core $(PROG) $(TESTPROG) junk
|
|
rm -rf printfck
|
|
|
|
tidy: clean
|
|
|
|
depend: $(MAKES)
|
|
(sed '1,/^# do not edit/!d' Makefile.in; \
|
|
set -e; for i in [a-z][a-z0-9]*.c; do \
|
|
$(CC) -E $(DEFS) $(INCL) $$i | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
|
|
-e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' -e 'p' -e '}'; \
|
|
done) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
|
|
@make -f Makefile.in Makefile
|
|
|
|
# do not edit below this line - it is generated by 'make depend'
|
|
bounce.o: bounce.c
|
|
bounce.o: ../include/sys_defs.h
|
|
bounce.o: ../include/msg.h
|
|
bounce.o: ../include/vstring.h
|
|
bounce.o: ../include/vbuf.h
|
|
bounce.o: ../include/vstream.h
|
|
bounce.o: ../include/stringops.h
|
|
bounce.o: ../include/mail_proto.h
|
|
bounce.o: ../include/iostuff.h
|
|
bounce.o: ../include/mail_queue.h
|
|
bounce.o: ../include/mail_params.h
|
|
bounce.o: ../include/mail_conf.h
|
|
bounce.o: ../include/bounce.h
|
|
bounce.o: ../include/mail_server.h
|
|
bounce.o: bounce_service.h
|
|
bounce_append_service.o: bounce_append_service.c
|
|
bounce_append_service.o: ../include/sys_defs.h
|
|
bounce_append_service.o: ../include/msg.h
|
|
bounce_append_service.o: ../include/vstring.h
|
|
bounce_append_service.o: ../include/vbuf.h
|
|
bounce_append_service.o: ../include/vstream.h
|
|
bounce_append_service.o: ../include/stringops.h
|
|
bounce_append_service.o: ../include/mail_queue.h
|
|
bounce_append_service.o: ../include/quote_822_local.h
|
|
bounce_append_service.o: ../include/deliver_flock.h
|
|
bounce_append_service.o: bounce_service.h
|
|
bounce_cleanup.o: bounce_cleanup.c
|
|
bounce_cleanup.o: ../include/sys_defs.h
|
|
bounce_cleanup.o: ../include/msg.h
|
|
bounce_cleanup.o: ../include/mymalloc.h
|
|
bounce_cleanup.o: ../include/vstring.h
|
|
bounce_cleanup.o: ../include/vbuf.h
|
|
bounce_cleanup.o: ../include/mail_queue.h
|
|
bounce_cleanup.o: ../include/vstream.h
|
|
bounce_cleanup.o: bounce_service.h
|
|
bounce_notify_service.o: bounce_notify_service.c
|
|
bounce_notify_service.o: ../include/sys_defs.h
|
|
bounce_notify_service.o: ../include/msg.h
|
|
bounce_notify_service.o: ../include/vstring.h
|
|
bounce_notify_service.o: ../include/vbuf.h
|
|
bounce_notify_service.o: ../include/vstream.h
|
|
bounce_notify_service.o: ../include/vstring_vstream.h
|
|
bounce_notify_service.o: ../include/mymalloc.h
|
|
bounce_notify_service.o: ../include/stringops.h
|
|
bounce_notify_service.o: ../include/events.h
|
|
bounce_notify_service.o: ../include/line_wrap.h
|
|
bounce_notify_service.o: ../include/name_mask.h
|
|
bounce_notify_service.o: ../include/mail_queue.h
|
|
bounce_notify_service.o: ../include/mail_proto.h
|
|
bounce_notify_service.o: ../include/iostuff.h
|
|
bounce_notify_service.o: ../include/quote_822_local.h
|
|
bounce_notify_service.o: ../include/mail_params.h
|
|
bounce_notify_service.o: ../include/canon_addr.h
|
|
bounce_notify_service.o: ../include/is_header.h
|
|
bounce_notify_service.o: ../include/record.h
|
|
bounce_notify_service.o: ../include/rec_type.h
|
|
bounce_notify_service.o: ../include/mail_conf.h
|
|
bounce_notify_service.o: ../include/post_mail.h
|
|
bounce_notify_service.o: ../include/cleanup_user.h
|
|
bounce_notify_service.o: ../include/mail_addr.h
|
|
bounce_notify_service.o: ../include/mark_corrupt.h
|
|
bounce_notify_service.o: ../include/mail_error.h
|
|
bounce_notify_service.o: bounce_service.h
|