summaryrefslogtreecommitdiffstats
path: root/sechecker/Makefile.am
blob: c7d8e7cf90c159b6d6bc6c7468dcdfedeb864fd6 (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
setoolsdir = @setoolsdir@
bin_PROGRAMS = sechecker

dist_setools_DATA = \
	sechecker_help.txt

profilesdir = @profile_install_dir@
dist_profiles_DATA = \
	profiles/all-checks.sechecker \
	profiles/all-checks-no-mls.sechecker \
	profiles/analysis-checks.sechecker \
	profiles/devel-checks.sechecker \
	profiles/sechecker.dtd

dist_noinst_DATA = \
	modules/template/profiles.readme \
	modules/template/template.howto \
	modules/template/xx.c \
	modules/template/xx.h

AM_CFLAGS = @DEBUGCFLAGS@ @WARNCFLAGS@ @PROFILECFLAGS@ @SELINUX_CFLAGS@ \
	@QPOL_CFLAGS@ @APOL_CFLAGS@ @SEFS_CFLAGS@ @XML_CFLAGS@ \
	-DPROFILE_INSTALL_DIR='"${profile_install_dir}"'
AM_LDFLAGS = @DEBUGLDFLAGS@ @WARNLDFLAGS@ @PROFILELDFLAGS@

LDADD = @SELINUX_LIB_FLAG@ @SEFS_LIB_FLAG@ @APOL_LIB_FLAG@ @QPOL_LIB_FLAG@ @XML_LIBS@ -lstdc++
sechecker_DEPENDENCIES = \
	$(top_builddir)/libsefs/src/libsefs.so \
	$(top_builddir)/libapol/src/libapol.so \
	$(top_builddir)/libqpol/src/libqpol.so

sechecker_SOURCES = \
	sechecker.c sechecker.h \
	register_list.c register_list.h \
	sechk_parse.c sechk_parse.h \
	sechecker_cli.c \
	modules/attribs_wo_rules.c modules/attribs_wo_rules.h \
	modules/attribs_wo_types.c modules/attribs_wo_types.h \
	modules/domain_and_file.c modules/domain_and_file.h \
	modules/domains_wo_roles.c modules/domains_wo_roles.h \
	modules/find_assoc_types.c modules/find_assoc_types.h \
	modules/find_domains.c modules/find_domains.h \
	modules/find_file_types.c modules/find_file_types.h \
	modules/find_net_domains.c modules/find_net_domains.h \
	modules/find_netif_types.c modules/find_netif_types.h \
	modules/find_node_types.c modules/find_node_types.h \
	modules/find_port_types.c modules/find_port_types.h \
	modules/imp_range_trans.c modules/imp_range_trans.h \
	modules/inc_dom_trans.c modules/inc_dom_trans.h \
	modules/inc_mount.c modules/inc_mount.h \
	modules/inc_net_access.c modules/inc_net_access.h \
	modules/roles_wo_allow.c modules/roles_wo_allow.h \
	modules/roles_wo_types.c modules/roles_wo_types.h \
	modules/roles_wo_users.c modules/roles_wo_users.h \
	modules/spurious_audit.c modules/spurious_audit.h \
	modules/types_wo_allow.c modules/types_wo_allow.h \
	modules/unreachable_doms.c modules/unreachable_doms.h \
	modules/users_wo_roles.c modules/users_wo_roles.h

$(top_builddir)/libapol/src/libapol.so:
	$(MAKE) -C $(top_builddir)/libapol/src $(notdir $@)

$(top_builddir)/libqpol/src/libqpol.so:
	$(MAKE) -C $(top_builddir)/libqpol/src $(notdir $@)

$(top_builddir)/libsefs/src/libsefs.so:
	$(MAKE) -C $(top_builddir)/libsefs/src $(notdir $@)