Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 1 | SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy policycoreutils # policy |
| 2 | PYSUBDIRS=libselinux libsemanage |
| 3 | |
| 4 | ifeq ($(DEBUG),1) |
| 5 | export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror |
| 6 | export LDFLAGS = -g |
| 7 | endif |
| 8 | |
| 9 | install relabel: |
| 10 | @for subdir in $(SUBDIRS); do \ |
| 11 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 12 | done |
| 13 | |
| 14 | install-pywrap swigify: |
| 15 | @for subdir in $(PYSUBDIRS); do \ |
| 16 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 17 | done |
| 18 | |
| 19 | clean: |
| 20 | @for subdir in $(SUBDIRS); do \ |
| 21 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 22 | done |
| 23 | |
| 24 | distclean: |
| 25 | @for subdir in libselinux libsemanage; do \ |
| 26 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 27 | done |
| 28 | |
| 29 | test: |
| 30 | @for subdir in $(SUBDIRS); do \ |
| 31 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 32 | done |
| 33 | |
| 34 | indent: |
| 35 | @for subdir in $(SUBDIRS); do \ |
| 36 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
| 37 | done |