mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-30 15:00:22 +00:00
00be13634a
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
30 lines
778 B
Makefile
30 lines
778 B
Makefile
SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy secilc policycoreutils gui
|
|
PYSUBDIRS=libselinux libsemanage
|
|
DISTCLEANSUBDIRS=libselinux libsemanage
|
|
|
|
INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
|
|
|
|
ifeq (${INOTIFYH}, /usr/include/sys/inotify.h)
|
|
SUBDIRS += restorecond
|
|
endif
|
|
|
|
ifeq ($(DEBUG),1)
|
|
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
|
|
export LDFLAGS = -g
|
|
endif
|
|
|
|
all install relabel clean test indent:
|
|
@for subdir in $(SUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
install-pywrap install-rubywrap swigify:
|
|
@for subdir in $(PYSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
distclean:
|
|
@for subdir in $(DISTCLEANSUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|