aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 5518bc286c6fc17aa64d8ca99618b3cbbce29015 (plain)
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
##
## src/Makefile.am
##
## This file is part of GNU Anubis.
## Copyright (C) 2001-2024 The Anubis Team.
##
## GNU Anubis is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation; either version 3 of the License, or (at your
## option) any later version.
##
## GNU Anubis is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with GNU Anubis.  If not, see <http://www.gnu.org/licenses/>.
##

adm_sbin_programs = anubisadm 
adm_bin_programs =

sbin_PROGRAMS = anubis @ANUBIS_SBIN_ADM@
bin_PROGRAMS = @ANUBIS_BIN_ADM@
EXTRA_PROGRAMS = $(adm_bin_programs) $(adm_sbin_programs)

noinst_LIBRARIES = libanubis.a
anubis_LDADD = \
 ./libanubis.a\
 @LIBINTL@\
 $(GUILE_LIBS)\
 @LIBGNUTLS_LIBS@\
 @GSASL_LIBS@\
 $(LIBGCRYPT_LIBS)

anubis_SOURCES = \
 authmode.c \
 daemon.c \
 env.c \
 errs.c \
 esmtp.c \
 exec.c \
 extern.h \
 headers.h \
 help.c \
 ident.c \
 log.c \
 logport.c\
 main.c \
 map.c \
 mda.c \
 message.c \
 mime.c \
 misc.c \
 net.c \
 proclist.c \
 quit.c \
 rcfile.c \
 rcfile.h \
 rc-gram.y \
 rc-gram.h \
 rc-lex.l \
 regex.c \
 socks.c \
 transmode.c \
 tunnel.c

if GSASL_COND
  anubis_SOURCES += gsasl_srv.c
endif

if GPG_COND
  anubis_SOURCES += gpg.c
endif

if GUILE_COND
  anubis_SOURCES += guile.c
endif

if GCRYPT_COND
  anubis_SOURCES += idecrypt.c
endif

anubisadm_SOURCES = anubisadm.c anubisadm.h adm.c
anubisadm_LDADD = ./libanubis.a @LIBINTL@
anubisusr_SOURCES = anubisusr.c anubisusr.h usr.c
anubisusr_LDADD = ./libanubis.a @LIBINTL@ @LIBGNUTLS_LIBS@ @GSASL_LIBS@ 

libanubis_a_SOURCES = \
 anubisdb.c \
 dbtext.c \
 getpass.c \
 keyword.c \
 keyword.h \
 list.c \
 list.h \
 mem.c \
 mysql.c \
 pgsql.c \
 sql.h \
 sql.c \
 smtprepl.c \
 smtprepl.h \
 stream.c \
 url.c \
 wordsplit/wordsplit.c \
 wordsplit/wordsplit.h

if TLS_COND
  libanubis_a_SOURCES += tls.c md5sum.c xdatabase.c
  adm_bin_programs += anubisusr
else
  libanubis_a_SOURCES += notls.c
endif

if GSASL_COND
  libanubis_a_SOURCES += gsasl.c
endif

if GDBM_COND
  libanubis_a_SOURCES += gdbm.c
endif


AM_YFLAGS = -dtv
AM_LFLAGS = -dvp
EXTRA_DIST = getopt.m4 env.opt gettext.h

BUILT_SOURCES = env.c

localedir = $(datadir)/locale
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
AM_CPPFLAGS =\
 @ADD_INCLUDES@\
 @GUILE_INCLUDES@\
 @LIBGNUTLS_INCLUDES@\
 $(LIBGCRYPT_CFLAGS)\
 -I$(top_srcdir)\
 -I$(srcdir)\
 -I$(srcdir)/wordsplit

SUFFIXES=.opt .c

.opt.c:
	m4 -s $(top_srcdir)/src/getopt.m4 $< | sed '1d' > $@

FLOWCHART_FILES=$(anubis_SOURCES) $(libanubis_a_SOURCES)

flowchart: anubis.cflow

anubis.cflow: $(FLOWCHART_FILES)
	CFLOWRC=$(top_srcdir)/build/cflow.rc \
	 cflow -o$@ --brief -i^s $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	            $(CPPFLAGS) `echo $(FLOWCHART_FILES)|sed 's/[^ ]*\.h //g'`

## EOF

Return to:

Send suggestions and report system problems to the System administrator.