forked from AEGEE/aegee-milter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
150 lines (119 loc) · 5.86 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS=-I m4
AM_LDFLAGS= ${CFLAG_VISIBILITY}
EXTRA_DIST = contrib/sm8.14.3-prdr.diff
AM_CPPFLAGS =
AM_CFLAGS = -Wall -Wextra ${glib_CFLAGS} ${libiodbc_CFLAGS} -DSYSCONFDIR='"${sysconfdir}"' ${LTDLINCL} ${liblistserv_CFLAGS} ${libsieve_CFLAGS} ${libcyrus_sieve_CFLAGS} ${gmime_CFLAGS}
AM_CXXFLAGS = ${AM_CFLAGS} -std=gnu++11
pkglib_LTLIBRARIES =
noinst_LTLIBRARIES=
EXTRA_LTLIBRARIES =
lib_LTLIBRARIES =
MOSTLYCLEANFILES =
CLEANFILES =
BUILT_SOURCES =
include_HEADERS =
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
#info_TEXINFOS = doc/prdr-milter.texi
#TEXINFO_TEX = doc/texinfo.tex
#EXTRA_DIST = doc/prdr-milter.texi.orig
sbin_PROGRAMS = aegee-milter
aegee_milter_SOURCES = src/prdr-milter.h src/prdr-list.h \
src/core/aegee-milter.cpp src/core/smfi-operations.cpp \
src/core/AegeeMilter.cpp src/core/AegeeMilter.hpp \
src/core/Message.cpp src/core/Message.hpp \
src/core/Module.hpp src/core/Module.cpp \
src/core/Privdata.cpp src/core/Privdata.hpp \
src/core/Recipient.cpp src/core/Recipient.hpp \
src/core/SoList.cpp src/core/SoList.hpp \
src/core/SoModule.cpp src/core/SoModule.hpp
aegee_milter_LDFLAGS = ${glib_LIBS} $(LIBLTDL) -lmilter ${gmime_LIBS}
aegee_milter_LDADD =
# LISTS
#... = list_simple.la
#aegee_prdr_LDADD += -dlpreopen src/lists/simple.la
#src_lists_simple_la_LIBADD = ${libconfig_LIBS}
#src_lists_simple_la_CFLAGS = ${libconfig_CFLAGS}
#src_lists_simple_la_SOURCES = src/lists/simple.cpp
#src_lists_simple_la_LFDLAGS = -module -avoid-version -no-undefined -static
if LIST_LISTSERV
aegee_milter_LDADD += -dlpreopen src/lists/list_listserv.la
pkglib_LTLIBRARIES += src/lists/list_listserv.la
endif
if LIST_LOG
aegee_milter_LDADD += -dlpreopen src/lists/list_log.la
pkglib_LTLIBRARIES += src/lists/list_log.la
endif
if LIST_MEMCACHED
aegee_milter_LDADD += -dlpreopen src/lists/list_memcached.la
pkglib_LTLIBRARIES += src/lists/list_memcached.la
endif
if LIST_ODBC
aegee_milter_LDADD += -dlpreopen src/lists/list_odbc.la
pkglib_LTLIBRARIES += src/lists/list_odbc.la
endif
if MOD_LIBSIEVE
aegee_milter_LDADD += -dlpreopen src/lists/list_timsieved_scripts.la
pkglib_LTLIBRARIES += src/lists/list_timsieved_scripts.la
endif
#MODULES
if LIST_LISTSERV
aegee_milter_LDADD += -dlpreopen src/modules/mod_arf.la
pkglib_LTLIBRARIES += src/modules/mod_arf.la
endif
aegee_milter_LDADD += -dlpreopen src/modules/mod_block_sender.la -dlpreopen src/modules/mod_delay.la -dlpreopen src/modules/mod_equal.la -dlpreopen src/modules/mod_relayed.la -dlpreopen src/modules/mod_sieve.la -dlpreopen src/modules/mod_simple.la -dlpreopen src/modules/mod_via.la -dlpreopen src/modules/mod_x_scc_headers.la
pkglib_LTLIBRARIES += src/modules/mod_block_sender.la src/modules/mod_delay.la src/modules/mod_equal.la src/modules/mod_relayed.la src/modules/mod_sieve.la src/modules/mod_simple.la src/modules/mod_via.la src/modules/mod_x_scc_headers.la
src_lists_list_listserv_la_LDFLAGS = -module -avoid-version -no-undefined -static
src_lists_list_listserv_la_LIBADD = ${liblistserv_LIBS} ${glib_LIBS}
src_lists_list_listserv_la_SOURCES = src/lists/list_listserv.cpp
src_lists_list_log_la_LDFLAGS = -module -avoid-version -no-undefined -static
src_lists_list_log_la_LIBADD = ${glib_LIBS} ${libiodbc_LIBS}
src_lists_list_log_la_SOURCES = src/lists/list_log.cpp
src_lists_list_memcached_la_LDFLAGS = -module -avoid-version -no-undefined -static
src_lists_list_memcached_la_LIBADD = ${libmemcached_LIBS}
src_lists_list_memcached_la_SOURCES = src/lists/list_memcached.cpp
src_lists_list_odbc_la_LIBADD = ${glib_LIBS} ${libiodbc_LIBS}
src_lists_list_odbc_la_LDFLAGS = -module -avoid-version -no-undefined -static
src_lists_list_timsieved_scripts_la_LDFLAGS = -module -avoid-version -no-undefined -static
src_lists_list_timsieved_scripts_la_LIBADD = ${glib_LIBS}
src_lists_list_timsieved_scripts_la_SOURCES = src/lists/list_timsieved_scripts.cpp
src_modules_mod_arf_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_arf_la_LIBADD = ${liblistserv_LIBS} ${glib_LIBS} ${gmime_LIBS}
src_modules_mod_arf_la_SOURCES = src/modules/mod_arf.cpp
src_modules_mod_block_sender_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_block_sender_la_SOURCES = src/modules/mod_block_sender.cpp
src_modules_mod_delay_la_SOURCES = src/modules/mod_delay.cpp
src_modules_mod_delay_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_delay_la_LIBADD = ${glib_LIBS}
src_modules_mod_equal_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_equal_la_LIBADD = ${glib_LIBS}
src_modules_mod_equal_la_SOURCES = src/modules/mod_equal.cpp
src_modules_mod_relayed_la_LIBADD = ${glib_LIBS}
src_modules_mod_relayed_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_relayed_la_SOURCES = src/modules/mod_relayed.cpp
src_modules_mod_sieve_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_sieve_la_LIBADD = ${glib_LIBS}
src_modules_mod_sieve_la_SOURCES = src/modules/mod_sieve/core.cpp src/modules/mod_sieve/message.hpp
if MOD_CYRUS_SIEVE
src_modules_mod_sieve_la_LIBADD += ${libcyrus_sieve_LIBS}
src_modules_mod_sieve_la_SOURCES += src/modules/mod_sieve/libcyrus_sieve.cpp
endif
if MOD_LIBSIEVE
src_modules_mod_sieve_la_LIBADD += ${libsieve_LIBS}
src_modules_mod_sieve_la_SOURCES += src/modules/mod_sieve/libsieve.cpp
endif
src_modules_mod_simple_la_LIBADD = ${glib_LIBS}
src_modules_mod_simple_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_simple_la_CFLAGS =
src_modules_mod_simple_la_SOURCES = src/modules/mod_simple.cpp
#src/modules/mod_spamassassin.la
src_modules_mod_via_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_via_la_LIBADD = ${glib_LIBS}
src_modules_mod_via_la_SOURCES = src/modules/mod_via.cpp
src_modules_mod_x_scc_headers_la_LDFLAGS = -module -avoid-version -static
src_modules_mod_x_scc_headers_la_LIBADD = ${glib_LIBS}
src_modules_mod_x_scc_headers_la_SOURCES = src/modules/mod_x_scc_headers.cpp
include libltdl/ltdl.mk
install-exec-hook:
rm -r ${pkglibdir}
# killall -SIGHUP aegee-prdr