mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 06:52:12 +00:00
640edd601b
Add clean targets to just clean the python and ruby wrapper objects Also clean $(SWIGRUBYSO) and $(AUDIT2WHYLOBJ) objects Signed-off-by: Laurent Bigonville <bigon@bigon.be>
67 lines
1.2 KiB
Makefile
67 lines
1.2 KiB
Makefile
SUBDIRS = src include utils man
|
|
|
|
DISABLE_SETRANS ?= n
|
|
DISABLE_RPM ?= n
|
|
ANDROID_HOST ?= n
|
|
ifeq ($(ANDROID_HOST),y)
|
|
override DISABLE_SETRANS=y
|
|
override DISABLE_BOOL=y
|
|
endif
|
|
ifeq ($(DISABLE_RPM),y)
|
|
DISABLE_FLAGS+= -DDISABLE_RPM
|
|
endif
|
|
ifeq ($(DISABLE_SETRANS),y)
|
|
DISABLE_FLAGS+= -DDISABLE_SETRANS
|
|
endif
|
|
ifeq ($(DISABLE_BOOL),y)
|
|
DISABLE_FLAGS+= -DDISABLE_BOOL
|
|
endif
|
|
export DISABLE_SETRANS DISABLE_RPM DISABLE_FLAGS ANDROID_HOST
|
|
|
|
USE_PCRE2 ?= n
|
|
ifeq ($(USE_PCRE2),y)
|
|
PCRE_CFLAGS := -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8
|
|
PCRE_LDFLAGS := -lpcre2-8
|
|
else
|
|
PCRE_LDFLAGS := -lpcre
|
|
endif
|
|
export PCRE_CFLAGS PCRE_LDFLAGS
|
|
|
|
OS := $(shell uname)
|
|
export OS
|
|
|
|
ifeq ($(shell $(CC) -v 2>&1 | grep "clang"),)
|
|
COMPILER := gcc
|
|
else
|
|
COMPILER := clang
|
|
endif
|
|
export COMPILER
|
|
|
|
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 $@
|
|
|
|
clean-pywrap:
|
|
$(MAKE) -C src clean-pywrap $@
|
|
|
|
clean-rubywrap:
|
|
$(MAKE) -C src clean-rubywrap $@
|
|
|
|
test:
|