Debian Codegraph @

Makefile.am

raw
1 #
2 # AIDE (Advanced Intrusion Detection Environment)
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 #
18
19 BUILT_SOURCES = src/conf_yacc.h
20 AM_YFLAGS= -d
21
22 LEX_OUTPUT_ROOT = lex.yy
23
24 bin_PROGRAMS = aide
25 aide_SOURCES = src/aide.c include/aide.h \
26 include/base64.h src/base64.c \
27 include/be.h src/be.c \
28 include/commandconf.h src/commandconf.c \
29 include/attributes.h src/attributes.c \
30 include/file.h src/file.c \
31 include/report.h src/report.c \
32 include/report_plain.h src/report_plain.c \
33 include/report_json.h src/report_json.c \
34 include/conf_ast.h src/conf_ast.c \
35 include/conf_eval.h src/conf_eval.c \
36 include/conf_lex.h src/conf_lex.l \
37 src/conf_yacc.h src/conf_yacc.y \
38 include/db.h src/db.c \
39 include/db_line.h include/db_config.h \
40 include/db_disk.h src/db_disk.c \
41 include/db_file.h src/db_file.c \
42 include/db_list.h src/db_list.c \
43 include/do_md.h src/do_md.c \
44 include/errorcodes.h \
45 include/gen_list.h src/gen_list.c \
46 include/hashsum.h src/hashsum.c \
47 include/rx_rule.h src/rx_rule.c \
48 include/list.h src/list.c \
49 include/log.h src/log.c \
50 include/locale-aide.h \
51 include/md.h src/md.c \
52 include/queue.h src/queue.c \
53 include/seltree_struct.h \
54 include/progress.h src/progress.c \
55 include/seltree.h src/seltree.c \
56 include/symboltable.h src/symboltable.c \
57 include/tree.h src/tree.c \
58 include/url.h src/url.c\
59 include/util.h src/util.c
60 if HAVE_E2FSATTRS
61 aide_SOURCES += include/e2fsattrs.h src/e2fsattrs.c
62 endif
63 if HAVE_CURL
64 aide_SOURCES += include/fopen.h src/fopen.c
65 endif
66
67 aide_CFLAGS = @AIDE_DEFS@ -I$(top_srcdir)/include -W -Wall -g \
68 ${AUDIT_CFLAGS} \
69 ${CAPABILITIES_CFLAGS} \
70 ${CURL_CFLAGS} \
71 ${E2FSATTRS_CFLAGS} \
72 ${ELF_CFLAGS} \
73 ${GCRYPT_CFLAGS} \
74 ${NETTLE_CFLAGS} \
75 ${PCRE2_CFLAGS} \
76 ${POSIX_ACL_CFLAGS} \
77 ${PTHREAD_CFLAGS} \
78 ${SELINUX_CFLAGS} \
79 ${XATTR_CFLAGS} \
80 ${ZLIB_CFLAGS}
81 aide_LDADD = -lm \
82 ${AUDIT_LIBS} \
83 ${CAPABILITIES_LIBS} \
84 ${CURL_LIBS} \
85 ${E2FSATTRS_LIBS} \
86 ${ELF_LIBS} \
87 ${GCRYPT_LIBS} \
88 ${NETTLE_LIBS} \
89 ${PCRE2_LIBS} \
90 ${POSIX_ACL_LIBS} \
91 ${PTHREAD_LIBS} \
92 ${SELINUX_LIBS} \
93 ${XATTR_LIBS} \
94 ${ZLIB_LIBS}
95
96 if HAVE_CHECK
97 TESTS = check_aide
98 check_PROGRAMS = check_aide
99 check_aide_SOURCES = tests/check_aide.c tests/check_aide.h \
100 tests/check_attributes.c src/attributes.c \
101 tests/check_base64.c src/base64.c \
102 tests/check_hashsum.c src/hashsum.c \
103 tests/check_seltree.c src/seltree.c \
104 tests/check_progress.c \
105 src/md.c src/file.c src/log.c src/util.c src/list.c src/tree.c src/rx_rule.c
106 check_aide_CFLAGS = -I$(top_srcdir)/include \
107 $(CHECK_CFLAGS) \
108 ${GCRYPT_CFLAGS} \
109 ${NETTLE_CFLAGS} \
110 ${PCRE2_CFLAGS}
111 check_aide_LDADD = -lm \
112 $(CHECK_LIBS) \
113 ${GCRYPT_LIBS} \
114 ${NETTLE_LIBS} \
115 ${PCRE2_LIBS}
116 endif # HAVE_CHECK
117
118 CLEANFILES = src/conf_yacc.h src/conf_yacc.c src/conf_lex.c
119
120 man_MANS = doc/aide.1 doc/aide.conf.5
121
122 EXTRA_DIST = $(man_MANS) SECURITY.md
123
124 src/conf_yacc.c: src/conf_yacc.y
125 $(YACC) $(AM_YFLAGS) -Wno-yacc -Wall -Werror -o $@ -p conf $<
126
127 src/conf_lex.c: src/conf_lex.l src/conf_yacc.c
128 $(LEX) $(AM_LFLAGS) -o$@ -Pconf $<
129
130 autoreconf-clean: maintainer-clean
131 -rm -f INSTALL Makefile.in aclocal.m4 compile config.guess \
132 include/config.h.in include/config.h.in~ config.sub configure configure~ depcomp \
133 install-sh missing version.m4 ylwrap
134 -rmdir src/.deps tests/.deps