platform_external_selinux/mcstrans/Makefile
Christian Göttsche 647909cb90 mcstrans: port to new PCRE2 from end-of-life PCRE
Quoting pcre.org:

    There are two major versions of the PCRE library. The current
    version, PCRE2, released in 2015, is now at version 10.39.

    The older, but still widely deployed PCRE library, originally
    released in 1997, is at version 8.45. This version of PCRE is now at
    end of life, and is no longer being actively maintained. Version
    8.45 is expected to be the final release of the older PCRE library,
    and new projects should use PCRE2 instead.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>

Acked-by: Petr Lautrbach <plautrba@redhat.com>
2021-12-09 11:06:41 -05:00

24 lines
477 B
Makefile

PKG_CONFIG ?= pkg-config
PCRE_MODULE := libpcre2-8
PCRE_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PCRE_MODULE)) -DPCRE2_CODE_UNIT_WIDTH=8
PCRE_LDLIBS := $(shell $(PKG_CONFIG) --libs $(PCRE_MODULE))
export PCRE_MODULE PCRE_CFLAGS PCRE_LDLIBS
all:
$(MAKE) -C src
$(MAKE) -C utils
install:
$(MAKE) -C src install
# $(MAKE) -C utils install
$(MAKE) -C man install
clean:
rm -f *~ \#*
$(MAKE) -C src clean
$(MAKE) -C utils clean
$(MAKE) -C man clean
relabel:
test: