mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-15 18:44:40 +00:00
a2737333c7
This new function allows a process to invoke helper programs with a new execution context based on the filename, this is initially intended for package managers so that they can easily execute package scriptlets or maintainer scripts. Base rpm_execcon() off this new function. Signed-off-by: Guillem Jover <guillem@debian.org>
48 lines
891 B
Makefile
48 lines
891 B
Makefile
SUBDIRS = src include utils man
|
|
|
|
DISABLE_AVC ?= n
|
|
DISABLE_SETRANS ?= n
|
|
DISABLE_RPM ?= n
|
|
DISABLE_BOOL ?= n
|
|
ifeq ($(EMBEDDED),y)
|
|
override DISABLE_AVC=y
|
|
override DISABLE_SETRANS=y
|
|
override DISABLE_RPM=y
|
|
override DISABLE_BOOL=y
|
|
endif
|
|
ifeq ($(DISABLE_AVC),y)
|
|
EMFLAGS+= -DDISABLE_AVC
|
|
endif
|
|
ifeq ($(DISABLE_BOOL),y)
|
|
EMFLAGS+= -DDISABLE_BOOL
|
|
endif
|
|
ifeq ($(DISABLE_RPM),y)
|
|
EMFLAGS+= -DDISABLE_RPM
|
|
endif
|
|
ifeq ($(DISABLE_SETRANS),y)
|
|
EMFLAGS+= -DDISABLE_SETRANS
|
|
endif
|
|
export DISABLE_AVC DISABLE_SETRANS DISABLE_RPM DISABLE_BOOL EMFLAGS
|
|
|
|
all install relabel clean distclean indent:
|
|
@for subdir in $(SUBDIRS); do \
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
done
|
|
|
|
swigify: all
|
|
$(MAKE) -C src swigify $@
|
|
|
|
pywrap:
|
|
$(MAKE) -C src pywrap $@
|
|
|
|
rubywrap:
|
|
$(MAKE) -C src rubywrap $@
|
|
|
|
install-pywrap:
|
|
$(MAKE) -C src install-pywrap $@
|
|
|
|
install-rubywrap:
|
|
$(MAKE) -C src install-rubywrap $@
|
|
|
|
test:
|