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