aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 3ac2331d4dae6ac92c06f6be90b05d79f4242885 (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
##
## src/Makefile.am
##
## This file is part of GNU Anubis.
## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008,
## 2009 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 = anubisusr
sbin_PROGRAMS = anubis @ANUBIS_SBIN_ADM@
bin_PROGRAMS = @ANUBIS_BIN_ADM@
EXTRA_PROGRAMS = $(adm_bin_programs) $(adm_sbin_programs)

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

anubis_SOURCES = \
 authmode.c \
 daemon.c \
 env.c \
 errs.c \
 esmtp.c \
 exec.c \
 extern.h \
 gpg.c \
 gsasl_srv.c \
 guile.c \
 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 \
 xdatabase.c 

anubisadm_SOURCES = anubisadm.c anubisadm.h adm.c
anubisadm_LDADD = ./libanubisdb.a $(top_builddir)/lib/libanubis.a @LIBINTL@
anubisusr_SOURCES = anubisusr.c anubisusr.h usr.c
anubisusr_LDADD = ./libanubisdb.a $(top_builddir)/lib/libanubis.a @LIBINTL@ @LIBGNUTLS_LIBS@ @GSASL_LIBS@ 

libanubisdb_a_SOURCES = \
 anubisdb.c \
 dbtext.c \
 gdbm.c \
 gsasl.c \
 list.c \
 list.h \
 md5.c \
 mysql.c \
 pgsql.c \
 sql.h \
 sql.c \
 smtprepl.c \
 smtprepl.h \
 stream.c \
 tls.c \
 url.c 

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

BUILT_SOURCES = env.c

localedir = $(datadir)/locale
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
INCLUDES = @ADD_INCLUDES@ @LIBGNUTLS_CFLAGS@ -I$(top_srcdir)/lib
SUFFIXES=.opt .c

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

FLOWCHART_FILES=$(anubis_SOURCES) $(libanubisdb_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.