1SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy secilc policycoreutils # policy
2PYSUBDIRS=libselinux libsemanage
3DISTCLEANSUBIDRS=libselinux libsemanage
4
5ifeq ($(DEBUG),1)
6	export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
7	export LDFLAGS = -g
8endif
9
10all install relabel clean test indent:
11	@for subdir in $(SUBDIRS); do \
12		(cd $$subdir && $(MAKE) $@) || exit 1; \
13	done
14
15install-pywrap install-rubywrap swigify:
16	@for subdir in $(PYSUBDIRS); do \
17		(cd $$subdir && $(MAKE) $@) || exit 1; \
18	done
19
20distclean:
21	@for subdir in $(DISTCLEANSUBDIRS); do \
22		(cd $$subdir && $(MAKE) $@) || exit 1; \
23	done
24