2012-01-27 19:00:34 +00:00
|
|
|
SUBDIRS = src include utils man
|
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
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
|
2012-11-20 15:27:55 +00:00
|
|
|
ifeq ($(DISABLE_RPM),y)
|
|
|
|
EMFLAGS+= -DDISABLE_RPM
|
|
|
|
endif
|
2008-08-19 19:30:36 +00:00
|
|
|
ifeq ($(DISABLE_SETRANS),y)
|
|
|
|
EMFLAGS+= -DDISABLE_SETRANS
|
|
|
|
endif
|
|
|
|
export DISABLE_AVC DISABLE_SETRANS DISABLE_RPM DISABLE_BOOL EMFLAGS
|
|
|
|
|
2016-09-15 16:14:33 +00:00
|
|
|
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
|
|
|
|
|
2012-01-27 19:00:34 +00:00
|
|
|
all install relabel clean distclean indent:
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
swigify: all
|
2012-01-27 19:00:34 +00:00
|
|
|
$(MAKE) -C src swigify $@
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
pywrap:
|
2012-01-27 19:00:34 +00:00
|
|
|
$(MAKE) -C src pywrap $@
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
rubywrap:
|
2012-01-27 19:00:34 +00:00
|
|
|
$(MAKE) -C src rubywrap $@
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
install-pywrap:
|
2012-01-27 19:00:34 +00:00
|
|
|
$(MAKE) -C src install-pywrap $@
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
install-rubywrap:
|
2012-01-27 19:00:34 +00:00
|
|
|
$(MAKE) -C src install-rubywrap $@
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
test:
|