2016-10-31 17:52:02 +00:00
|
|
|
OPT_SUBDIRS ?= dbus gui mcstrans python restorecond sandbox semodule-utils
|
2016-10-31 17:41:12 +00:00
|
|
|
SUBDIRS=libsepol libselinux libsemanage checkpolicy secilc policycoreutils $(OPT_SUBDIRS)
|
2008-08-19 19:30:36 +00:00
|
|
|
PYSUBDIRS=libselinux libsemanage
|
2016-09-28 21:40:32 +00:00
|
|
|
DISTCLEANSUBDIRS=libselinux libsemanage
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
|
|
|
|
export LDFLAGS = -g
|
|
|
|
endif
|
|
|
|
|
2017-04-24 17:59:58 +00:00
|
|
|
ifneq ($(DESTDIR),)
|
|
|
|
CFLAGS += -I$(DESTDIR)/usr/include
|
|
|
|
LDFLAGS += -L$(DESTDIR)/usr/lib
|
|
|
|
export CFLAGS
|
|
|
|
export LDFLAGS
|
|
|
|
endif
|
|
|
|
|
2011-08-12 03:36:14 +00:00
|
|
|
all install relabel clean test indent:
|
2008-08-19 19:30:36 +00:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2012-06-01 13:13:24 +00:00
|
|
|
install-pywrap install-rubywrap swigify:
|
2008-08-19 19:30:36 +00:00
|
|
|
@for subdir in $(PYSUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
distclean:
|
2011-08-12 03:36:14 +00:00
|
|
|
@for subdir in $(DISTCLEANSUBDIRS); do \
|
2008-08-19 19:30:36 +00:00
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|