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