SHELL = /bin/sh
SRCS = trivial-rewrite.c rewrite.c resolve.c transport.c
OBJS = trivial-rewrite.o rewrite.o resolve.o transport.o
HDRS =
TESTSRC =
DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
CFLAGS = $(DEBUG) $(OPT) $(DEFS)
LIB =
TESTPROG= transport
PROG = trivial-rewrite
LIBS = ../../lib/lib$(LIB_PREFIX)master$(LIB_SUFFIX) \
../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \
../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX)
LIB_DIR = ../../lib
INC_DIR = ../../include
BIN_DIR = ../../libexec
.c.o:; $(CC) $(CFLAGS) -c $*.c
all: $(PROG) $(LIB)
$(PROG): $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
$(OBJS): ../../conf/makedefs.out
Makefile: Makefile.in
cat ../../conf/makedefs.out $? >$@
test: $(TESTPROG)
tests: transport_test
root_tests:
$(BIN_DIR)/$(PROG): $(PROG)
cp $(PROG) $@
update: $(BIN_DIR)/$(PROG)
transport: transport.c $(LIB) $(LIBS)
-mv $@.o junk
$(CC) $(CFLAGS) -DTEST -o $@ $@.c $(LIB) $(LIBS) $(SYSLIBS)
mv junk $@.o
transport_test: transport transport.in transport.ref
$(SHLIB_ENV) sh transport.in >transport.tmp 2>&1
diff transport.ref transport.tmp
rm -f transport.tmp
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 trivial-rewrite $(TESTPROG) junk $(LIB)
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 | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
-e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
-e 's/o: \.\//o: /' -e p -e '}' ; \
done | LANG=C sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
@$(EXPORT) make -f Makefile.in Makefile 1>&2
# do not edit below this line - it is generated by 'make depend'
resolve.o: ../../include/argv.h
resolve.o: ../../include/attr.h
resolve.o: ../../include/check_arg.h
resolve.o: ../../include/dict.h
resolve.o: ../../include/domain_list.h
resolve.o: ../../include/htable.h
resolve.o: ../../include/iostuff.h
resolve.o: ../../include/mail_addr_find.h
resolve.o: ../../include/mail_addr_form.h
resolve.o: ../../include/mail_conf.h
resolve.o: ../../include/mail_params.h
resolve.o: ../../include/mail_proto.h
resolve.o: ../../include/maps.h
resolve.o: ../../include/match_list.h
resolve.o: ../../include/match_parent_style.h
resolve.o: ../../include/msg.h
resolve.o: ../../include/myflock.h
resolve.o: ../../include/mymalloc.h
resolve.o: ../../include/nvtable.h
resolve.o: ../../include/quote_822_local.h
resolve.o: ../../include/quote_flags.h
resolve.o: ../../include/resolve_clnt.h
resolve.o: ../../include/resolve_local.h
resolve.o: ../../include/split_at.h
resolve.o: ../../include/string_list.h
resolve.o: ../../include/stringops.h
resolve.o: ../../include/sys_defs.h
resolve.o: ../../include/tok822.h
resolve.o: ../../include/valid_hostname.h
resolve.o: ../../include/valid_mailhost_addr.h
resolve.o: ../../include/valid_utf8_hostname.h
resolve.o: ../../include/vbuf.h
resolve.o: ../../include/vstream.h
resolve.o: ../../include/vstring.h
resolve.o: ../../include/vstring_vstream.h
resolve.o: resolve.c
resolve.o: transport.h
resolve.o: trivial-rewrite.h
rewrite.o: ../../include/argv.h
rewrite.o: ../../include/attr.h
rewrite.o: ../../include/check_arg.h
rewrite.o: ../../include/dict.h
rewrite.o: ../../include/htable.h
rewrite.o: ../../include/iostuff.h
rewrite.o: ../../include/mail_conf.h
rewrite.o: ../../include/mail_params.h
rewrite.o: ../../include/mail_proto.h
rewrite.o: ../../include/maps.h
rewrite.o: ../../include/msg.h
rewrite.o: ../../include/myflock.h
rewrite.o: ../../include/mymalloc.h
rewrite.o: ../../include/nvtable.h
rewrite.o: ../../include/resolve_clnt.h
rewrite.o: ../../include/resolve_local.h
rewrite.o: ../../include/split_at.h
rewrite.o: ../../include/sys_defs.h
rewrite.o: ../../include/tok822.h
rewrite.o: ../../include/vbuf.h
rewrite.o: ../../include/vstream.h
rewrite.o: ../../include/vstring.h
rewrite.o: ../../include/vstring_vstream.h
rewrite.o: rewrite.c
rewrite.o: trivial-rewrite.h
transport.o: ../../include/argv.h
transport.o: ../../include/attr.h
transport.o: ../../include/check_arg.h
transport.o: ../../include/dict.h
transport.o: ../../include/events.h
transport.o: ../../include/htable.h
transport.o: ../../include/iostuff.h
transport.o: ../../include/mail_addr_find.h
transport.o: ../../include/mail_addr_form.h
transport.o: ../../include/mail_params.h
transport.o: ../../include/mail_proto.h
transport.o: ../../include/maps.h
transport.o: ../../include/match_list.h
transport.o: ../../include/match_parent_style.h
transport.o: ../../include/msg.h
transport.o: ../../include/myflock.h
transport.o: ../../include/mymalloc.h
transport.o: ../../include/nvtable.h
transport.o: ../../include/split_at.h
transport.o: ../../include/stringops.h
transport.o: ../../include/strip_addr.h
transport.o: ../../include/sys_defs.h
transport.o: ../../include/vbuf.h
transport.o: ../../include/vstream.h
transport.o: ../../include/vstring.h
transport.o: transport.c
transport.o: transport.h
trivial-rewrite.o: ../../include/argv.h
trivial-rewrite.o: ../../include/attr.h
trivial-rewrite.o: ../../include/check_arg.h
trivial-rewrite.o: ../../include/dict.h
trivial-rewrite.o: ../../include/events.h
trivial-rewrite.o: ../../include/htable.h
trivial-rewrite.o: ../../include/iostuff.h
trivial-rewrite.o: ../../include/mail_addr.h
trivial-rewrite.o: ../../include/mail_conf.h
trivial-rewrite.o: ../../include/mail_params.h
trivial-rewrite.o: ../../include/mail_proto.h
trivial-rewrite.o: ../../include/mail_server.h
trivial-rewrite.o: ../../include/mail_version.h
trivial-rewrite.o: ../../include/maps.h
trivial-rewrite.o: ../../include/msg.h
trivial-rewrite.o: ../../include/myflock.h
trivial-rewrite.o: ../../include/mymalloc.h
trivial-rewrite.o: ../../include/nvtable.h
trivial-rewrite.o: ../../include/resolve_clnt.h
trivial-rewrite.o: ../../include/resolve_local.h
trivial-rewrite.o: ../../include/rewrite_clnt.h
trivial-rewrite.o: ../../include/split_at.h
trivial-rewrite.o: ../../include/stringops.h
trivial-rewrite.o: ../../include/sys_defs.h
trivial-rewrite.o: ../../include/tok822.h
trivial-rewrite.o: ../../include/vbuf.h
trivial-rewrite.o: ../../include/vstream.h
trivial-rewrite.o: ../../include/vstring.h
trivial-rewrite.o: ../../include/vstring_vstream.h
trivial-rewrite.o: transport.h
trivial-rewrite.o: trivial-rewrite.c
trivial-rewrite.o: trivial-rewrite.h