-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.in
executable file
·173 lines (133 loc) · 4.36 KB
/
makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#
# @PACKAGE_STRING@
#
# @package_copyright@
#
# @configure_input@
#
# $OpenBSD$
#
.POSIX :
MILTER = @PACKAGE_TARNAME@
VERSION = @PACKAGE_VERSION@.${MILTER_BUILD}
########################################################################
### Pick one that best suits your system.
########################################################################
RUN_USER = @enable_run_user@
RUN_GROUP = @enable_run_group@
SENDMAIL_DIR = @with_sendmail@
prefix = @prefix@
exec_prefix = @exec_prefix@
PROGRAM = @milter_executable@
########################################################################
### No further configuration beyond this point.
########################################################################
.SUFFIXES :
A = .@LIBEXT@
O = .@OBJEXT@
E = @EXEEXT@
VPATH := @srcdir@
srcdir := @srcdir@
top_srcdir := @top_srcdir@
abs_srcdir := @abs_srcdir@
builddir := @builddir@
top_builddir := @top_builddir@
abs_builddir := @abs_builddir@
SNERT_TARDIR := @rel_tardir@
SNERT_INCDIR := @rel_incdir@
SNERT_LIBDIR := @rel_libdir@
TARFILE = ${MILTER}-${VERSION}.tar.gz
TGZ := ${SNERT_TARDIR}/${TARFILE}
CC := @CC@
CC_E := @CC_E@
CC_O := @CC_O@
TAR_I := @TAR_I@
ARCHIVE := @ARCHIVE@
COMPILE := @COMPILE@
RANLIB := @RANLIB@
MD5SUM := @MD5SUM@
AUTOCONF := @AUTOCONF@
MILTER_BUILD := `cat ${abs_srcdir}/BUILD_ID.TXT`
LIB_RT := @LIBS_RT@
LIB_SEM := @HAVE_LIB_SEM@
LIB_DB := @HAVE_LIB_DB@
CFLAGS_DB := @CFLAGS_DB@
LDFLAGS_DB := @LDFLAGS_DB@
LIB_MILTER := @LIBS_MILTER@
CFLAGS_MILTER := @CFLAGS_MILTER@
LDFLAGS_MILTER := @LDFLAGS_MILTER@
LIB_SNERT := @LIBS_SNERT@
CFLAGS_SNERT := @CFLAGS_SNERT@
CPPFLAGS_SNERT := @CPPFLAGS_SNERT@
LDFLAGS_SNERT := @LDFLAGS_SNERT@
LIB_PTHREAD := @HAVE_LIB_PTHREAD@
CFLAGS_PTHREAD := @CFLAGS_PTHREAD@
LDFLAGS_PTHREAD := @LDFLAGS_PTHREAD@
LIB_SQLITE3 := @LIBS_SQLITE3@
CFLAGS_SQLITE3 := @CFLAGS_SQLITE3@
LDFLAGS_SQLITE3 := @LDFLAGS_SQLITE3@
CFLAGS := ${CFLAGS_MILTER} ${CFLAGS_SQLITE3} ${CFLAGS_DB} ${CFLAGS_PTHREAD} @CFLAGS@
LDFLAGS := ${LDFLAGS_MILTER} ${LDFLAGS_SQLITE3} ${LDFLAGS_DB} ${LDFLAGS_PTHREAD} @LDFLAGS@
LIBS := @LIBS@ ${LIB_MILTER} ${LIB_SQLITE3} ${LIB_DB} ${LIB_SEM} ${LIB_PTHREAD}
#######################################################################
.MAIN: build
build : ${MILTER}
@echo
@echo '***************************************************************'
@echo Build ${VERSION} DONE
@echo '***************************************************************'
@echo
clean:
-rm -f *.o ${MILTER} *.exe ${MILTER}.cf
@echo
@echo '***************************************************************'
@echo Clean DONE
@echo '***************************************************************'
@echo
distclean: clean
@echo '---------------------------------------------------------------'
-rm -f ${MILTER} ${MILTER}.md5 *.o *.obj *.tds *.log *.exe *.core
-rm -f sample.mc startup.sh install.sh config.h makefile
-rm -rf autom4te.cache config.status config.log configure.lineno
@echo
@echo '***************************************************************'
@echo Distribution Clean `pwd` DONE
@echo '***************************************************************'
@echo
strip: build
strip ${MILTER}
next-id:
expr `cat BUILD_ID.TXT` + 1 >BUILD_ID.TXT
${MILTER}: BUILD_ID.TXT $(SNERT) ${MILTER}.c
$(CC) -DMILTER_BUILD=$(MILTER_BUILD) -DMILTER_BUILD_STRING='"'$(MILTER_BUILD)'"' \
$(CFLAGS) $(LDFLAGS) -D_BUILT="\"`date +'%a, %d %b %Y %H:%M:%S %z'`\"" -o ${MILTER} ${MILTER}.c $(LIBS)
start:
./${MILTER}
stop:
-./${MILTER} -quit
restart:
-./${MILTER} -restart
install: ${MILTER} install.sh
@sh install.sh
install.sh: install.sh.in config.status
config.status: configure
./configure
configure: aclocal.m4 configure.in
${AUTOCONF} -f
manual.shtml: manual.shtml.in
./config.status manual.shtml
list:
tar -ztf $(SNERT_TARDIR)/$(TARFILE)
pack: next-id tar
tar: MANIFEST.TXT configure manual.shtml
-rm -rf $(SNERT_TARDIR)/$(TARFILE) ${MILTER}.md5 autom4te.cache configure.lineno
echo '${VERSION}' >VERSION.TXT
echo '${TARFILE}' >FILE.TXT
tar -C ${SNERT_TARDIR} ${TAR_I} MANIFEST.TXT -zcf ${TGZ}
@echo
@echo '***************************************************************'
@cd ${SNERT_TARDIR}; ${MD5SUM} ${TARFILE} | tee com/snert/src/${MILTER}/${MILTER}.md5
@echo '***************************************************************'
@cd $(SNERT_TARDIR); wc -c ${TARFILE}
@echo '***************************************************************'
@echo