2 SRCS
= milter.c milter8.c milter_macros.c
3 OBJS
= milter.o milter8.o milter_macros.o
6 DEFS
= -I.
-I
$(INC_DIR
) -D
$(SYSTYPE
)
7 CFLAGS
= $(DEBUG
) $(OPT
) $(DEFS
)
10 TESTPROG
= milter test-milter
12 LIBS
= ..
/..
/lib
/libglobal.a ..
/..
/lib
/libutil.a
14 INC_DIR
= ..
/..
/include
17 .c.o
:; $(CC
) $(CFLAGS
) -c
$*.c
21 $(OBJS
): ..
/..
/conf
/makedefs.out
24 cat ..
/..
/conf
/makedefs.out
$?
>$@
33 $(AR
) $(ARFL
) $(LIB
) $?
36 $(LIB_DIR
)/$(LIB
): $(LIB
)
38 $(RANLIB
) $(LIB_DIR
)/$(LIB
)
40 update
: $(LIB_DIR
)/$(LIB
) $(HDRS
)
43 cmp
-s
$$i $(INC_DIR
)/$$i 2>/dev
/null || cp
$$i $(INC_DIR
); \
45 cd
$(INC_DIR
); chmod
644 $(HDRS
)
47 printfck
: $(OBJS
) $(PROG
)
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`
56 lint
$(DEFS
) $(SRCS
) $(LINTFIX
)
59 rm -f
*.o
$(LIB
) *core
$(TESTPROG
) junk
64 milter
: milter.c
$(LIB
) $(LIBS
)
66 $(CC
) $(CFLAGS
) -DTEST
-o
$@
$@.c
$(LIB
) $(LIBS
) $(SYSLIBS
)
69 test-milter
: test-milter.c
70 cc -g
-I
/usr
/local
/include -o
$@
$?
-L
/usr
/local
/lib
-lmilter
-lpthread
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
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
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