• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OPT_SUBDIRS ?= dbus gui mcstrans python restorecond sandbox semodule-utils
2SUBDIRS=libsepol libselinux libsemanage checkpolicy secilc policycoreutils $(OPT_SUBDIRS)
3PYSUBDIRS=libselinux libsemanage
4DISTCLEANSUBDIRS=libselinux libsemanage
5
6ifeq ($(DEBUG),1)
7	export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
8	export LDFLAGS = -g
9endif
10
11all install relabel clean test indent:
12	@for subdir in $(SUBDIRS); do \
13		(cd $$subdir && $(MAKE) $@) || exit 1; \
14	done
15
16install-pywrap install-rubywrap swigify:
17	@for subdir in $(PYSUBDIRS); do \
18		(cd $$subdir && $(MAKE) $@) || exit 1; \
19	done
20
21distclean:
22	@for subdir in $(DISTCLEANSUBDIRS); do \
23		(cd $$subdir && $(MAKE) $@) || exit 1; \
24	done
25