File: Makefile.am

package info (click to toggle)
aide 0.19.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,516 kB
  • sloc: ansic: 12,399; sh: 6,718; lex: 635; makefile: 139; yacc: 138
file content (136 lines) | stat: -rw-r--r-- 4,111 bytes parent folder | download | duplicates (2)
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
#
# AIDE (Advanced Intrusion Detection Environment)
#
# This program 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 2 of the
# License, or (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

BUILT_SOURCES = src/conf_yacc.h
AM_YFLAGS= -d

LEX_OUTPUT_ROOT = lex.yy

bin_PROGRAMS = aide
aide_SOURCES = src/aide.c include/aide.h \
	include/base64.h src/base64.c \
	include/be.h src/be.c \
	include/commandconf.h src/commandconf.c \
	include/attributes.h src/attributes.c \
	include/file.h src/file.c \
	include/report.h src/report.c \
	include/report_plain.h src/report_plain.c \
	include/report_json.h src/report_json.c \
	include/conf_ast.h src/conf_ast.c \
	include/conf_eval.h src/conf_eval.c \
	include/conf_lex.h src/conf_lex.l  \
	src/conf_yacc.h src/conf_yacc.y \
	include/db.h src/db.c \
	include/db_line.h include/db_config.h \
	include/db_disk.h src/db_disk.c \
	include/db_file.h src/db_file.c \
	include/db_list.h src/db_list.c \
	include/do_md.h src/do_md.c \
	include/errorcodes.h \
	include/gen_list.h src/gen_list.c \
	src/getopt1.c \
	include/getopt.h src/getopt.c \
	include/hashsum.h src/hashsum.c \
	include/rx_rule.h src/rx_rule.c \
	include/list.h src/list.c \
	include/log.h src/log.c \
	include/locale-aide.h \
	include/md.h src/md.c \
	include/queue.h src/queue.c \
	include/seltree_struct.h \
	include/progress.h src/progress.c \
	include/seltree.h src/seltree.c \
	include/symboltable.h src/symboltable.c \
	include/tree.h src/tree.c \
	include/url.h src/url.c\
	include/util.h src/util.c
if HAVE_E2FSATTRS
aide_SOURCES += include/e2fsattrs.h src/e2fsattrs.c
endif
if HAVE_CURL
aide_SOURCES += include/fopen.h src/fopen.c
endif

aide_CFLAGS = @AIDE_DEFS@ -I$(top_srcdir)/include -W -Wall -g \
			${AUDIT_CFLAGS} \
			${CAPABILITIES_CFLAGS} \
			${CURL_CFLAGS} \
			${E2FSATTRS_CFLAGS} \
			${ELF_CFLAGS} \
			${GCRYPT_CFLAGS} \
			${NETTLE_CFLAGS} \
			${PCRE2_CFLAGS} \
			${POSIX_ACL_CFLAGS} \
			${PTHREAD_CFLAGS} \
			${SELINUX_CFLAGS} \
			${XATTR_CFLAGS} \
			${ZLIB_CFLAGS}
aide_LDADD = -lm \
			${AUDIT_LIBS} \
			${CAPABILITIES_LIBS} \
			${CURL_LIBS} \
			${E2FSATTRS_LIBS} \
			${ELF_LIBS} \
			${GCRYPT_LIBS} \
			${NETTLE_LIBS} \
			${PCRE2_LIBS} \
			${POSIX_ACL_LIBS} \
			${PTHREAD_LIBS} \
			${SELINUX_LIBS} \
			${XATTR_LIBS} \
			${ZLIB_LIBS}

if HAVE_CHECK
TESTS				= check_aide
check_PROGRAMS		= check_aide
check_aide_SOURCES	= tests/check_aide.c tests/check_aide.h \
					  tests/check_attributes.c src/attributes.c \
					  tests/check_base64.c src/base64.c \
					  tests/check_hashsum.c src/hashsum.c \
					  tests/check_seltree.c src/seltree.c \
					  tests/check_progress.c \
					  src/md.c src/file.c src/log.c src/util.c src/list.c src/tree.c src/rx_rule.c
check_aide_CFLAGS	= -I$(top_srcdir)/include \
				$(CHECK_CFLAGS) \
				${GCRYPT_CFLAGS} \
				${NETTLE_CFLAGS} \
				${PCRE2_CFLAGS}
check_aide_LDADD	= -lm \
				$(CHECK_LIBS) \
				${GCRYPT_LIBS} \
				${NETTLE_LIBS} \
				${PCRE2_LIBS}
endif # HAVE_CHECK

CLEANFILES = src/conf_yacc.h src/conf_yacc.c src/conf_lex.c

man_MANS = doc/aide.1 doc/aide.conf.5

EXTRA_DIST = $(man_MANS) SECURITY.md

src/conf_yacc.c: src/conf_yacc.y
	$(YACC) $(AM_YFLAGS) -Wno-yacc -Wall -Werror -o $@ -p conf $<

src/conf_lex.c: src/conf_lex.l src/conf_yacc.c
	$(LEX) $(AM_LFLAGS) -o$@ -Pconf $<

autoreconf-clean: maintainer-clean
	-rm -f INSTALL Makefile.in aclocal.m4 compile config.guess \
	 include/config.h.in include/config.h.in~ config.sub configure configure~ depcomp \
	 install-sh missing version.m4 ylwrap
	-rmdir src/.deps tests/.deps