File: Makefile.am

package info (click to toggle)
setools 3.3.7-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,840 kB
  • sloc: ansic: 82,247; tcl: 13,145; cpp: 4,885; makefile: 1,603; yacc: 779; lex: 296; python: 57; sh: 50
file content (116 lines) | stat: -rw-r--r-- 3,889 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
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = dist-bzip2

if BUILD_APOL
  MAYBE_APOL = apol
endif

if BUILD_GUI
  MAYBE_GUI = seaudit
endif
# sediffx is also built conditionally, from sediffx/Makefile.am

SUBDIRS = libqpol libapol libsefs libpoldiff libseaudit secmds sechecker sediff man packages $(MAYBE_APOL) $(MAYBE_GUI) python

#old indent opts
#INDENT_OPTS = -npro -nbad -bap -sob -ss -l132 -di1 -nbc -br -nbbb -c40 -cd40 -ncdb -ce -cli0 -cp40 -ncs -d0 -nfc1 -nfca -i8 -ts8 -ci8 -lp -ip0 -npcs -npsl -sc
C_INDENT_OPTS   = -npro -nbad -bap -nbbb -nbbo -nbc -br -bli0 -bls -c40 -cbi0 -cd40 -cdw  -ce -ci8 -cli0 -cp40 -ncs -d0 -nbfda -di1 -nfc1 -nfca -i8 -ip0 -l132 -lp -nlps -npcs -pi0 -nprs -npsl -saf -sai -sbi0 -sob -ss -ts8 -ut
CXX_INDENT_OPTS = -npro -nbad -bap -nbbb -nbbo -nbc -bl -bli0 -bls -c40 -cbi0 -cd40 -cdw -nce -ci8 -cli0 -cp40 -ncs -d0 -nbfda -di1 -nfc1 -nfca -i8 -ip0 -l132 -lp -nlps -npcs -pi0 -nprs -npsl -saf -sai -sbi0 -sob -ss -ts8 -ut

EXTRA_DIST = VERSION KNOWN-BUGS COPYING.LGPL COPYING.GPL

libqpol:
	$(MAKE) -C $(top_srcdir)/libqpol

libapol:
	$(MAKE) -C $(top_srcdir)/libapol

libpoldiff:
	$(MAKE) -C $(top_srcdir)/libpoldiff

libpolsearch:
	$(MAKE) -C $(top_srcdir)/libpolsearch

libsefs:
	$(MAKE) -C $(top_srcdir)/libsefs

libseaudit:
	$(MAKE) -C $(top_srcdir)/libseaudit

apol: libqpol libapol libsefs packages
	$(MAKE) -C $(top_srcdir)/apol

secmds: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/secmds

seaudit: libqpol libapol libseaudit
	$(MAKE) -C $(top_srcdir)/seaudit

sediff: libqpol libapol libpoldiff
	$(MAKE) -C $(top_srcdir)/sediff sediff

sediffx: libqpol libapol libpoldiff
	$(MAKE) -C $(top_srcdir)/sediff sediffx

sechecker: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/sechecker

help:
	@echo "Make targets for SETools:"
	@echo "   all:          build everything, but do not install"
	@echo "   install:      install everything"
	@echo "   uninstall:    remove SETools from your system"
	@echo ""
	@echo "   apol:         build policy analysis tool"
	@echo "   secmds:       build command line tools"
	@echo "   seaudit:      build audit log analysis tools"
	@echo "   sediff:       build semantic policy diff command line tool"
	@echo "   sediffx:      build semantic policy diff graphical tool"
	@echo "   sechecker:    build policy checking tool"
	@echo ""
	@echo "   install-logwatch:   install LogWatch config files for seaudit-report"
	@echo "                       (requires LogWatch and root privileges)"
	@echo ""
	@echo "   clean:        clean up interim files"
	@echo "   distclean:    clean everything not in original distribution"

install-logwatch:
	$(MAKE) -C $(top_srcdir)/seaudit install-logwatch

.PHONY: libqpol libapol libpoldiff libsefs libseaudit \
	apol secmds seaudit sediff sediffx sechecker \
	install-logwatch help \
	seinfo sesearch indexcon findcon replcon searchcon \
	packages

seinfo: libqpol libapol
	$(MAKE) -C $(top_srcdir)/secmds seinfo

sesearch: libqpol libapol
	$(MAKE) -C $(top_srcdir)/secmds sesearch

indexcon: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/secmds indexcon

findcon: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/secmds findcon

replcon: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/secmds replcon

searchcon: libqpol libapol libsefs
	$(MAKE) -C $(top_srcdir)/secmds searchcon

packages:
	$(MAKE) -C $(top_srcdir)/packages

distclean-local:
	-rm -r config.tcl

indent:
	find $(top_srcdir) \( -wholename '*/packages/*' -prune \) , \
		\( -name '*.[ch]' -type f -exec indent $(C_INDENT_OPTS) '{}' \; \)
	find $(top_srcdir) -regex '.*\.\(cc\|hh\)' -type f -exec indent $(CXX_INDENT_OPTS) '{}' \;
	find $(top_srcdir) -regex '.*\.\(cc\|hh\)' -type f -exec sed -i 's/\*>>/* > >/g' '{}' \;
	find $(top_srcdir) -name '*.cc' -type f -exec sed -i 's/const \?const/const/g' '{}' \;
	find $(top_srcdir) -name '*.hh' -type f -exec sed -i 's/virtual ~ /virtual ~/g' '{}' \;