|
Packit Service |
10cefc |
SUBDIRS = src include utils man
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
PKG_CONFIG ?= pkg-config
|
|
Packit Service |
10cefc |
DISABLE_SETRANS ?= n
|
|
Packit Service |
10cefc |
DISABLE_RPM ?= n
|
|
Packit Service |
10cefc |
ANDROID_HOST ?= n
|
|
Packit Service |
10cefc |
ifeq ($(ANDROID_HOST),y)
|
|
Packit Service |
10cefc |
override DISABLE_SETRANS=y
|
|
Packit Service |
10cefc |
override DISABLE_BOOL=y
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
ifeq ($(DISABLE_RPM),y)
|
|
Packit Service |
10cefc |
DISABLE_FLAGS+= -DDISABLE_RPM
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
ifeq ($(DISABLE_SETRANS),y)
|
|
Packit Service |
10cefc |
DISABLE_FLAGS+= -DDISABLE_SETRANS
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
ifeq ($(DISABLE_BOOL),y)
|
|
Packit Service |
10cefc |
DISABLE_FLAGS+= -DDISABLE_BOOL
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
export DISABLE_SETRANS DISABLE_RPM DISABLE_FLAGS ANDROID_HOST
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
USE_PCRE2 ?= n
|
|
Packit Service |
10cefc |
ifeq ($(USE_PCRE2),y)
|
|
Packit Service |
10cefc |
PCRE_MODULE := libpcre2-8
|
|
Packit Service |
10cefc |
PCRE_CFLAGS := -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8
|
|
Packit Service |
10cefc |
else
|
|
Packit Service |
10cefc |
PCRE_MODULE := libpcre
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
PCRE_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(PCRE_MODULE))
|
|
Packit Service |
10cefc |
PCRE_LDLIBS := $(shell $(PKG_CONFIG) --libs $(PCRE_MODULE))
|
|
Packit Service |
10cefc |
export PCRE_MODULE PCRE_CFLAGS PCRE_LDLIBS
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
OS := $(shell uname)
|
|
Packit Service |
10cefc |
export OS
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
ifeq ($(shell $(CC) -v 2>&1 | grep "clang"),)
|
|
Packit Service |
10cefc |
COMPILER := gcc
|
|
Packit Service |
10cefc |
else
|
|
Packit Service |
10cefc |
COMPILER := clang
|
|
Packit Service |
10cefc |
endif
|
|
Packit Service |
10cefc |
export COMPILER
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
all install relabel clean distclean indent:
|
|
Packit Service |
10cefc |
@for subdir in $(SUBDIRS); do \
|
|
Packit Service |
10cefc |
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
Packit Service |
10cefc |
done
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
swigify: all
|
|
Packit Service |
10cefc |
$(MAKE) -C src swigify $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
pywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src pywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
rubywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src rubywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
install-pywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src install-pywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
install-rubywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src install-rubywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
clean-pywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src clean-pywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
clean-rubywrap:
|
|
Packit Service |
10cefc |
$(MAKE) -C src clean-rubywrap $@
|
|
Packit Service |
10cefc |
|
|
Packit Service |
10cefc |
test:
|