2014-02-20 20:17:05 +01:00
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
2014-02-20 20:17:05 +01:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2014-08-10 18:09:24 +02:00
|
|
|
AM_CPPFLAGS = -I$(builddir)/src -I$(srcdir)/src
|
2014-03-07 18:28:52 +01:00
|
|
|
|
|
|
|
## Specify the documentation files that are distributed.
|
|
|
|
|
2014-09-19 20:26:32 +02:00
|
|
|
dist_doc_DATA = \
|
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
ChangeLog \
|
|
|
|
LICENCE \
|
2014-09-28 19:39:28 +02:00
|
|
|
NEWS \
|
|
|
|
README \
|
|
|
|
doc/pcre2.txt \
|
|
|
|
doc/pcre2-config.txt \
|
|
|
|
doc/pcre2grep.txt \
|
|
|
|
doc/pcre2test.txt
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
# FIXME
|
2014-09-28 19:39:28 +02:00
|
|
|
dist_html_DATA = \
|
|
|
|
doc/html/NON-AUTOTOOLS-BUILD.txt \
|
|
|
|
doc/html/README.txt \
|
|
|
|
doc/html/index.html \
|
|
|
|
doc/html/pcre2-config.html \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/html/pcre2.html \
|
2014-09-28 19:39:28 +02:00
|
|
|
doc/html/pcre2api.html \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/html/pcre2build.html \
|
2014-09-28 19:39:28 +02:00
|
|
|
doc/html/pcre2callout.html \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/html/pcre2compat.html \
|
2014-09-28 19:39:28 +02:00
|
|
|
doc/html/pcre2demo.html \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/html/pcre2grep.html \
|
|
|
|
doc/html/pcre2jit.html \
|
|
|
|
doc/html/pcre2limits.html \
|
|
|
|
doc/html/pcre2matching.html \
|
2014-09-28 19:39:28 +02:00
|
|
|
doc/html/pcre2test.html \
|
|
|
|
doc/html/pcre2unicode.html
|
|
|
|
|
2014-09-29 18:45:37 +02:00
|
|
|
# doc/html/pcre2_assign_jit_stack.html \
|
|
|
|
# doc/html/pcre2_compile.html \
|
|
|
|
# doc/html/pcre2_compile2.html \
|
|
|
|
# doc/html/pcre2_config.html \
|
|
|
|
# doc/html/pcre2_copy_named_substring.html \
|
|
|
|
# doc/html/pcre2_copy_substring.html \
|
|
|
|
# doc/html/pcre2_dfa_match.html \
|
|
|
|
# doc/html/pcre2_match.html \
|
|
|
|
# doc/html/pcre2_free_study.html \
|
|
|
|
# doc/html/pcre2_free_substring.html \
|
|
|
|
# doc/html/pcre2_free_substring_list.html \
|
|
|
|
# doc/html/pcre2_fullinfo.html \
|
|
|
|
# doc/html/pcre2_get_named_substring.html \
|
|
|
|
# doc/html/pcre2_get_stringnumber.html \
|
|
|
|
# doc/html/pcre2_get_stringtable_entries.html \
|
|
|
|
# doc/html/pcre2_get_substring.html \
|
|
|
|
# doc/html/pcre2_get_substring_list.html \
|
|
|
|
# doc/html/pcre2_jit_match.html \
|
|
|
|
# doc/html/pcre2_jit_stack_alloc.html \
|
|
|
|
# doc/html/pcre2_jit_stack_free.html \
|
|
|
|
# doc/html/pcre2_maketables.html \
|
|
|
|
# doc/html/pcre2_pattern_to_host_byte_order.html \
|
|
|
|
# doc/html/pcre2_refcount.html \
|
|
|
|
# doc/html/pcre2_study.html \
|
|
|
|
# doc/html/pcre2_utf16_to_host_byte_order.html \
|
|
|
|
# doc/html/pcre2_utf32_to_host_byte_order.html \
|
|
|
|
# doc/html/pcre2_version.html \
|
|
|
|
# doc/html/pcre2partial.html \
|
|
|
|
# doc/html/pcre2pattern.html \
|
|
|
|
# doc/html/pcre2perform.html \
|
|
|
|
# doc/html/pcre2posix.html \
|
|
|
|
# doc/html/pcre2precompile.html \
|
|
|
|
# doc/html/pcre2sample.html \
|
|
|
|
# doc/html/pcre2stack.html \
|
|
|
|
# doc/html/pcre2syntax.html
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
# FIXME
|
2014-09-19 09:43:39 +02:00
|
|
|
dist_man_MANS = \
|
2014-09-28 19:39:28 +02:00
|
|
|
doc/pcre2-config.1 \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/pcre2.3 \
|
2014-09-19 20:26:32 +02:00
|
|
|
doc/pcre2api.3 \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/pcre2build.3 \
|
2014-09-19 20:26:32 +02:00
|
|
|
doc/pcre2callout.3 \
|
2014-09-29 18:45:37 +02:00
|
|
|
doc/pcre2compat.3 \
|
|
|
|
doc/pcre2demo.3 \
|
|
|
|
doc/pcre2grep.1 \
|
|
|
|
doc/pcre2jit.3 \
|
|
|
|
doc/pcre2limits.3 \
|
|
|
|
doc/pcre2matching.3 \
|
2014-09-19 20:26:32 +02:00
|
|
|
doc/pcre2test.1 \
|
|
|
|
doc/pcre2unicode.3
|
2014-09-19 09:43:39 +02:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
# doc/pcre2-16.3 \
|
|
|
|
# doc/pcre2-32.3 \
|
|
|
|
# doc/pcre2_assign_jit_stack.3 \
|
|
|
|
# doc/pcre2_compile.3 \
|
|
|
|
# doc/pcre2_compile2.3 \
|
|
|
|
# doc/pcre2_config.3 \
|
|
|
|
# doc/pcre2_copy_named_substring.3 \
|
|
|
|
# doc/pcre2_copy_substring.3 \
|
2014-04-18 17:37:56 +02:00
|
|
|
# doc/pcre2_dfa_match.3 \
|
|
|
|
# doc/pcre2_match.3 \
|
2014-03-07 18:28:52 +01:00
|
|
|
# doc/pcre2_free_study.3 \
|
|
|
|
# doc/pcre2_free_substring.3 \
|
|
|
|
# doc/pcre2_free_substring_list.3 \
|
|
|
|
# doc/pcre2_fullinfo.3 \
|
|
|
|
# doc/pcre2_get_named_substring.3 \
|
|
|
|
# doc/pcre2_get_stringnumber.3 \
|
|
|
|
# doc/pcre2_get_stringtable_entries.3 \
|
|
|
|
# doc/pcre2_get_substring.3 \
|
|
|
|
# doc/pcre2_get_substring_list.3 \
|
2014-04-18 17:37:56 +02:00
|
|
|
# doc/pcre2_jit_match.3 \
|
2014-03-07 18:28:52 +01:00
|
|
|
# doc/pcre2_jit_stack_alloc.3 \
|
|
|
|
# doc/pcre2_jit_stack_free.3 \
|
|
|
|
# doc/pcre2_maketables.3 \
|
|
|
|
# doc/pcre2_pattern_to_host_byte_order.3 \
|
|
|
|
# doc/pcre2_refcount.3 \
|
|
|
|
# doc/pcre2_study.3 \
|
|
|
|
# doc/pcre2_utf16_to_host_byte_order.3 \
|
|
|
|
# doc/pcre2_utf32_to_host_byte_order.3 \
|
|
|
|
# doc/pcre2_version.3 \
|
|
|
|
# doc/pcre2partial.3 \
|
|
|
|
# doc/pcre2pattern.3 \
|
|
|
|
# doc/pcre2perform.3 \
|
|
|
|
# doc/pcre2posix.3 \
|
|
|
|
# doc/pcre2precompile.3 \
|
|
|
|
# doc/pcre2sample.3 \
|
|
|
|
# doc/pcre2stack.3 \
|
2014-09-26 11:44:49 +02:00
|
|
|
# doc/pcre2syntax.3
|
2014-03-07 18:28:52 +01:00
|
|
|
|
2014-02-20 20:17:05 +01:00
|
|
|
# The Libtool libraries to install. We'll add to this later.
|
|
|
|
|
|
|
|
lib_LTLIBRARIES =
|
|
|
|
|
|
|
|
# Unit tests you want to run when people type 'make check'.
|
|
|
|
# TESTS is for binary unit tests, check_SCRIPTS for script-based tests
|
|
|
|
|
|
|
|
TESTS =
|
|
|
|
check_SCRIPTS =
|
|
|
|
dist_noinst_SCRIPTS =
|
|
|
|
|
|
|
|
# Some of the binaries we make are to be installed, and others are
|
|
|
|
# (non-user-visible) helper programs needed to build the libraries.
|
|
|
|
|
|
|
|
bin_PROGRAMS =
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
2014-08-30 16:57:12 +02:00
|
|
|
# Additional files to delete on 'make clean', 'make distclean',
|
|
|
|
# and 'make maintainer-clean'.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
CLEANFILES =
|
2014-08-30 16:57:12 +02:00
|
|
|
DISTCLEANFILES = src/config.h.in~
|
2014-02-20 20:17:05 +01:00
|
|
|
MAINTAINERCLEANFILES =
|
|
|
|
|
|
|
|
# Additional files to bundle with the distribution, over and above what
|
|
|
|
# the Autotools include by default.
|
|
|
|
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
|
|
|
# These files contain additional m4 macros that are used by autoconf.
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
m4/ax_pthread.m4 m4/pcre_visibility.m4
|
|
|
|
|
|
|
|
# These files contain maintenance information
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
doc/perltest.txt \
|
|
|
|
NON-AUTOTOOLS-BUILD \
|
|
|
|
HACKING
|
|
|
|
|
|
|
|
# These files are used in the preparation of a release
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
PrepareRelease \
|
|
|
|
CheckMan \
|
|
|
|
CleanTxt \
|
|
|
|
Detrail \
|
|
|
|
132html \
|
|
|
|
doc/index.html.src
|
|
|
|
|
|
|
|
# These files are usable versions of pcre2.h and config.h that are distributed
|
|
|
|
# for the benefit of people who are building PCRE manually, without the
|
|
|
|
# Autotools support.
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2014-02-28 10:40:55 +01:00
|
|
|
src/pcre2.h.generic \
|
|
|
|
src/config.h.generic
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
# The only difference between pcre2.h.in and pcre2.h is the setting of the PCRE
|
|
|
|
# version number. Therefore, we can create the generic version just by copying.
|
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
src/pcre2.h.generic: src/pcre2.h.in configure.ac
|
2014-02-20 20:17:05 +01:00
|
|
|
rm -f $@
|
2014-02-28 10:40:55 +01:00
|
|
|
cp -p src/pcre2.h $@
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
# It is more complicated for config.h.generic. We need the version that results
|
|
|
|
# from a default configuration so as to get all the default values for PCRE
|
|
|
|
# configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
|
|
|
|
# doing a configure in a temporary directory. However, some trickery is needed,
|
|
|
|
# because the source directory may already be configured. If you just try
|
|
|
|
# running configure in a new directory, it complains. For this reason, we move
|
|
|
|
# config.status out of the way while doing the default configuration. The
|
|
|
|
# resulting config.h is munged by perl to put #ifdefs round any #defines for
|
|
|
|
# macros with values, and to #undef all boolean macros such as HAVE_xxx and
|
|
|
|
# SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
|
2014-03-07 18:28:52 +01:00
|
|
|
# sure that PCRE2_EXP_DEFN is unset (in case it has visibility settings).
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
src/config.h.generic: configure.ac
|
2014-02-20 20:17:05 +01:00
|
|
|
rm -rf $@ _generic
|
|
|
|
mkdir _generic
|
|
|
|
cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
|
|
|
|
cd _generic && $(abs_top_srcdir)/configure || :
|
|
|
|
cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
|
2014-02-28 10:40:55 +01:00
|
|
|
test -f _generic/src/config.h
|
2014-02-20 20:17:05 +01:00
|
|
|
perl -n \
|
|
|
|
-e 'BEGIN{$$blank=0;}' \
|
|
|
|
-e 'if(/PCRE2_EXP_DEFN/){print"/* #undef PCRE2_EXP_DEFN */\n";$$blank=0;next;}' \
|
|
|
|
-e 'if(/to make a symbol visible/){next;}' \
|
|
|
|
-e 'if(/__attribute__ \(\(visibility/){next;}' \
|
|
|
|
-e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
|
|
|
|
-e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
|
|
|
|
-e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
|
|
|
|
-e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
|
2014-02-28 10:40:55 +01:00
|
|
|
_generic/src/config.h >$@
|
2014-02-20 20:17:05 +01:00
|
|
|
rm -rf _generic
|
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
MAINTAINERCLEANFILES += src/pcre2.h.generic src/config.h.generic
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
# These are the header files we'll install. We do not distribute pcre2.h
|
|
|
|
# because it is generated from pcre2.h.in.
|
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
nodist_include_HEADERS = src/pcre2.h
|
|
|
|
include_HEADERS = src/pcre2posix.h
|
2014-02-28 10:40:55 +01:00
|
|
|
|
|
|
|
# This is the "config" script.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
bin_SCRIPTS = pcre2-config
|
|
|
|
|
|
|
|
## ---------------------------------------------------------------
|
|
|
|
## The dftables program is used to rebuild character tables before compiling
|
2014-08-10 18:09:24 +02:00
|
|
|
## PCRE2, if --enable-rebuild-chartables is specified. It is not a user-visible
|
2014-02-20 20:17:05 +01:00
|
|
|
## program. The default (when --enable-rebuild-chartables is not specified) is
|
|
|
|
## to copy a distributed set of tables that are defined for ASCII code. In this
|
|
|
|
## case, dftables is not needed.
|
|
|
|
|
|
|
|
if WITH_REBUILD_CHARTABLES
|
|
|
|
noinst_PROGRAMS += dftables
|
2014-08-10 18:09:24 +02:00
|
|
|
dftables_SOURCES = src/dftables.c
|
2014-02-28 10:40:55 +01:00
|
|
|
src/pcre2_chartables.c: dftables$(EXEEXT)
|
2014-08-10 18:09:24 +02:00
|
|
|
rm -f $@
|
2014-02-20 20:17:05 +01:00
|
|
|
./dftables$(EXEEXT) $@
|
|
|
|
else
|
2014-02-28 10:40:55 +01:00
|
|
|
src/pcre2_chartables.c: $(srcdir)/src/pcre2_chartables.c.dist
|
2014-02-20 20:17:05 +01:00
|
|
|
rm -f $@
|
2014-08-10 18:09:24 +02:00
|
|
|
$(LN_S) $(abs_srcdir)/src/pcre2_chartables.c.dist $(abs_builddir)/src/pcre2_chartables.c
|
2014-02-20 20:17:05 +01:00
|
|
|
endif # WITH_REBUILD_CHARTABLES
|
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
BUILT_SOURCES = src/pcre2_chartables.c
|
|
|
|
NODIST_SOURCES = src/pcre2_chartables.c
|
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
## Define the list of common sources, then arrange to build whichever of the
|
|
|
|
## 8-, 16-, or 32-bit libraries are configured.
|
2014-02-28 10:40:55 +01:00
|
|
|
|
|
|
|
COMMON_SOURCES = \
|
2014-06-21 14:39:48 +02:00
|
|
|
src/pcre2_auto_possess.c \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_compile.c \
|
|
|
|
src/pcre2_config.c \
|
|
|
|
src/pcre2_context.c \
|
2014-04-18 17:37:56 +02:00
|
|
|
src/pcre2_dfa_match.c \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_error.c \
|
2014-02-28 10:40:55 +01:00
|
|
|
src/pcre2_internal.h \
|
2014-05-13 13:20:03 +02:00
|
|
|
src/pcre2_intmodedep.h \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_jit_compile.c \
|
|
|
|
src/pcre2_maketables.c \
|
2014-08-30 16:57:12 +02:00
|
|
|
src/pcre2_match.c \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_match_data.c \
|
2014-06-14 20:29:51 +02:00
|
|
|
src/pcre2_newline.c \
|
|
|
|
src/pcre2_ord2utf.c \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_pattern_info.c \
|
2014-05-13 13:20:03 +02:00
|
|
|
src/pcre2_string_utils.c \
|
2014-06-21 14:39:48 +02:00
|
|
|
src/pcre2_study.c \
|
2014-03-07 18:28:52 +01:00
|
|
|
src/pcre2_substring.c \
|
2014-05-13 13:20:03 +02:00
|
|
|
src/pcre2_tables.c \
|
|
|
|
src/pcre2_ucd.c \
|
|
|
|
src/pcre2_ucp.h \
|
2014-06-14 20:29:51 +02:00
|
|
|
src/pcre2_valid_utf.c \
|
2014-06-21 14:39:48 +02:00
|
|
|
src/pcre2_xclass.c
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
if WITH_PCRE8
|
|
|
|
lib_LTLIBRARIES += libpcre2-8.la
|
|
|
|
libpcre2_8_la_SOURCES = \
|
2014-02-28 10:40:55 +01:00
|
|
|
$(COMMON_SOURCES)
|
|
|
|
nodist_libpcre2_8_la_SOURCES = \
|
|
|
|
$(NODIST_SOURCES)
|
2014-02-20 20:17:05 +01:00
|
|
|
libpcre2_8_la_CFLAGS = \
|
2014-03-07 18:28:52 +01:00
|
|
|
-DPCRE2_CODE_UNIT_WIDTH=8 \
|
2014-02-20 20:17:05 +01:00
|
|
|
$(VISIBILITY_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
libpcre2_8_la_LIBADD =
|
|
|
|
endif # WITH_PCRE8
|
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
lib_LTLIBRARIES += libpcre2-16.la
|
|
|
|
libpcre2_16_la_SOURCES = \
|
|
|
|
$(COMMON_SOURCES)
|
|
|
|
nodist_libpcre2_16_la_SOURCES = \
|
|
|
|
$(NODIST_SOURCES)
|
|
|
|
libpcre2_16_la_CFLAGS = \
|
2014-03-07 18:28:52 +01:00
|
|
|
-DPCRE2_CODE_UNIT_WIDTH=16 \
|
2014-02-28 10:40:55 +01:00
|
|
|
$(VISIBILITY_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
libpcre2_16_la_LIBADD =
|
|
|
|
endif # WITH_PCRE16
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE32
|
|
|
|
lib_LTLIBRARIES += libpcre2-32.la
|
|
|
|
libpcre2_32_la_SOURCES = \
|
|
|
|
$(COMMON_SOURCES)
|
|
|
|
nodist_libpcre2_32_la_SOURCES = \
|
|
|
|
$(NODIST_SOURCES)
|
|
|
|
libpcre2_32_la_CFLAGS = \
|
2014-03-07 18:28:52 +01:00
|
|
|
-DPCRE2_CODE_UNIT_WIDTH=32 \
|
2014-02-28 10:40:55 +01:00
|
|
|
$(VISIBILITY_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
libpcre2_32_la_LIBADD =
|
|
|
|
endif # WITH_PCRE32
|
|
|
|
|
|
|
|
# The pcre2_chartables.c.dist file is the default version of
|
|
|
|
# pcre2_chartables.c, used unless --enable-rebuild-chartables is specified.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
EXTRA_DIST += src/pcre2_chartables.c.dist
|
2014-03-07 18:28:52 +01:00
|
|
|
CLEANFILES += src/pcre2_chartables.c
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
# The JIT compiler lives in a separate directory, but its files are #included
|
|
|
|
# when pcre2_jit_compile.c is processed, so they must be distributed.
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
sljit/sljitConfig.h \
|
|
|
|
sljit/sljitConfigInternal.h \
|
|
|
|
sljit/sljitExecAllocator.c \
|
|
|
|
sljit/sljitLir.c \
|
|
|
|
sljit/sljitLir.h \
|
|
|
|
sljit/sljitNativeARM_64.c \
|
|
|
|
sljit/sljitNativeARM_Thumb2.c \
|
|
|
|
sljit/sljitNativeARM_v5.c \
|
|
|
|
sljit/sljitNativeMIPS_32.c \
|
|
|
|
sljit/sljitNativeMIPS_common.c \
|
|
|
|
sljit/sljitNativePPC_32.c \
|
|
|
|
sljit/sljitNativePPC_64.c \
|
|
|
|
sljit/sljitNativePPC_common.c \
|
|
|
|
sljit/sljitNativeSPARC_32.c \
|
|
|
|
sljit/sljitNativeSPARC_common.c \
|
|
|
|
sljit/sljitNativeTILEGX.c \
|
|
|
|
sljit/sljitNativeTILEGX-encoder.c \
|
|
|
|
sljit/sljitNativeX86_32.c \
|
|
|
|
sljit/sljitNativeX86_64.c \
|
|
|
|
sljit/sljitNativeX86_common.c \
|
|
|
|
sljit/sljitUtils.c
|
|
|
|
|
|
|
|
if WITH_PCRE8
|
|
|
|
libpcre2_8_la_LDFLAGS = $(EXTRA_LIBPCRE2_8_LDFLAGS)
|
|
|
|
endif # WITH_PCRE8
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
libpcre2_16_la_LDFLAGS = $(EXTRA_LIBPCRE2_16_LDFLAGS)
|
|
|
|
endif # WITH_PCRE16
|
|
|
|
if WITH_PCRE32
|
|
|
|
libpcre2_32_la_LDFLAGS = $(EXTRA_LIBPCRE2_32_LDFLAGS)
|
|
|
|
endif # WITH_PCRE32
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
if WITH_VALGRIND
|
|
|
|
if WITH_PCRE8
|
|
|
|
libpcre2_8_la_CFLAGS += $(VALGRIND_CFLAGS)
|
|
|
|
endif # WITH_PCRE8
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
libpcre2_16_la_CFLAGS += $(VALGRIND_CFLAGS)
|
|
|
|
endif # WITH_PCRE16
|
|
|
|
if WITH_PCRE32
|
|
|
|
libpcre2_32_la_CFLAGS += $(VALGRIND_CFLAGS)
|
|
|
|
endif # WITH_PCRE32
|
2014-02-20 20:17:05 +01:00
|
|
|
endif # WITH_VALGRIND
|
|
|
|
|
|
|
|
if WITH_GCOV
|
|
|
|
if WITH_PCRE8
|
|
|
|
libpcre2_8_la_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
endif # WITH_PCRE8
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
libpcre2_16_la_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
endif # WITH_PCRE16
|
|
|
|
if WITH_PCRE32
|
|
|
|
libpcre2_32_la_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
endif # WITH_PCRE32
|
2014-02-20 20:17:05 +01:00
|
|
|
endif # WITH_GCOV
|
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
## A version of the 8-bit library that has a POSIX API.
|
|
|
|
|
|
|
|
if WITH_PCRE8
|
|
|
|
lib_LTLIBRARIES += libpcre2-posix.la
|
|
|
|
libpcre2_posix_la_SOURCES = src/pcre2posix.c
|
|
|
|
libpcre2_posix_la_CFLAGS = \
|
|
|
|
-DPCRE2_CODE_UNIT_WIDTH=8 \
|
|
|
|
$(VISIBILITY_CFLAGS) $(AM_CFLAGS)
|
|
|
|
libpcre2_posix_la_LDFLAGS = $(EXTRA_LIBPCRE2_POSIX_LDFLAGS)
|
|
|
|
libpcre2_posix_la_LIBADD = libpcre2-8.la
|
|
|
|
if WITH_GCOV
|
|
|
|
libpcre2_posix_la_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
endif # WITH_GCOV
|
|
|
|
endif # WITH_PCRE8
|
|
|
|
|
|
|
|
## Build pcre2grep if the 8-bit library is enabled
|
|
|
|
|
|
|
|
if WITH_PCRE8
|
|
|
|
bin_PROGRAMS += pcre2grep
|
|
|
|
pcre2grep_SOURCES = src/pcre2grep.c
|
|
|
|
pcre2grep_CFLAGS = $(AM_CFLAGS)
|
|
|
|
pcre2grep_LDADD = $(LIBZ) $(LIBBZ2)
|
|
|
|
pcre2grep_LDADD += libpcre2-8.la
|
|
|
|
if WITH_GCOV
|
|
|
|
pcre2grep_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
pcre2grep_LDADD += $(GCOV_LIBS)
|
|
|
|
endif # WITH_GCOV
|
|
|
|
endif # WITH_PCRE8
|
|
|
|
|
|
|
|
## -------- Testing ----------
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
## If JIT support is enabled, arrange for the JIT test program to run.
|
|
|
|
|
|
|
|
if WITH_JIT
|
|
|
|
TESTS += pcre2_jit_test
|
|
|
|
noinst_PROGRAMS += pcre2_jit_test
|
2014-08-16 11:46:58 +02:00
|
|
|
pcre2_jit_test_SOURCES = src/pcre2_jit_test.c
|
2014-02-20 20:17:05 +01:00
|
|
|
pcre2_jit_test_CFLAGS = $(AM_CFLAGS)
|
|
|
|
pcre2_jit_test_LDADD =
|
|
|
|
if WITH_PCRE8
|
|
|
|
pcre2_jit_test_LDADD += libpcre2-8.la
|
|
|
|
endif # WITH_PCRE8
|
|
|
|
if WITH_PCRE16
|
|
|
|
pcre2_jit_test_LDADD += libpcre2-16.la
|
|
|
|
endif # WITH_PCRE16
|
|
|
|
if WITH_PCRE32
|
|
|
|
pcre2_jit_test_LDADD += libpcre2-32.la
|
|
|
|
endif # WITH_PCRE32
|
|
|
|
if WITH_GCOV
|
|
|
|
pcre2_jit_test_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
pcre2_jit_test_LDADD += $(GCOV_LIBS)
|
|
|
|
endif # WITH_GCOV
|
|
|
|
endif # WITH_JIT
|
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
# Build the general pcre2test program. The file src/pcre2_printint.c is
|
2014-05-13 13:20:03 +02:00
|
|
|
# #included by pcre2test as many times as needed, at different code unit
|
2014-03-07 18:28:52 +01:00
|
|
|
# widths.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
bin_PROGRAMS += pcre2test
|
|
|
|
EXTRA_DIST += src/pcre2_printint.c
|
|
|
|
pcre2test_SOURCES = src/pcre2test.c
|
|
|
|
pcre2test_CFLAGS = $(AM_CFLAGS)
|
|
|
|
pcre2test_LDADD = $(LIBREADLINE)
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
if WITH_PCRE8
|
|
|
|
pcre2test_LDADD += libpcre2-8.la libpcre2-posix.la
|
|
|
|
endif # WITH_PCRE8
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
pcre2test_LDADD += libpcre2-16.la
|
|
|
|
endif # WITH_PCRE16
|
|
|
|
|
|
|
|
if WITH_PCRE32
|
|
|
|
pcre2test_LDADD += libpcre2-32.la
|
|
|
|
endif # WITH_PCRE32
|
|
|
|
|
|
|
|
if WITH_VALGRIND
|
|
|
|
pcre2test_CFLAGS += $(VALGRIND_CFLAGS)
|
|
|
|
endif # WITH_VALGRIND
|
|
|
|
|
|
|
|
if WITH_GCOV
|
|
|
|
pcre2test_CFLAGS += $(GCOV_CFLAGS)
|
|
|
|
pcre2test_LDADD += $(GCOV_LIBS)
|
|
|
|
endif # WITH_GCOV
|
|
|
|
|
|
|
|
## The main library tests. Each test is a binary plus a script that runs that
|
|
|
|
## binary in various ways. We install these test binaries in case folks find it
|
|
|
|
## helpful.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-08-11 20:30:24 +02:00
|
|
|
TESTS += RunTest
|
|
|
|
dist_noinst_SCRIPTS += RunTest
|
|
|
|
|
2014-02-20 20:17:05 +01:00
|
|
|
# FIXME
|
2014-02-28 10:40:55 +01:00
|
|
|
#EXTRA_DIST += RunTest.bat
|
2014-03-07 18:28:52 +01:00
|
|
|
|
|
|
|
## When the 8-bit library is configured, pcre2grep will have been built.
|
|
|
|
|
2014-07-15 10:49:45 +02:00
|
|
|
if WITH_PCRE8
|
|
|
|
TESTS += RunGrepTest
|
|
|
|
dist_noinst_SCRIPTS += RunGrepTest
|
|
|
|
endif # WITH_PCRE8
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
## Distribute all the test data files
|
|
|
|
|
2014-02-20 20:17:05 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
testdata/grepbinary \
|
|
|
|
testdata/grepfilelist \
|
|
|
|
testdata/grepinput \
|
|
|
|
testdata/grepinput3 \
|
|
|
|
testdata/grepinput8 \
|
|
|
|
testdata/grepinputv \
|
|
|
|
testdata/grepinputx \
|
|
|
|
testdata/greplist \
|
|
|
|
testdata/grepoutput \
|
|
|
|
testdata/grepoutput8 \
|
|
|
|
testdata/grepoutputN \
|
|
|
|
testdata/greppatN4 \
|
|
|
|
testdata/saved16 \
|
|
|
|
testdata/saved16BE-1 \
|
|
|
|
testdata/saved16BE-2 \
|
|
|
|
testdata/saved16LE-1 \
|
|
|
|
testdata/saved16LE-2 \
|
|
|
|
testdata/saved32 \
|
|
|
|
testdata/saved32BE-1 \
|
|
|
|
testdata/saved32BE-2 \
|
|
|
|
testdata/saved32LE-1 \
|
|
|
|
testdata/saved32LE-2 \
|
|
|
|
testdata/saved8 \
|
|
|
|
testdata/testinput1 \
|
|
|
|
testdata/testinput2 \
|
|
|
|
testdata/testinput3 \
|
|
|
|
testdata/testinput4 \
|
|
|
|
testdata/testinput5 \
|
|
|
|
testdata/testinput6 \
|
|
|
|
testdata/testinput7 \
|
|
|
|
testdata/testinput8 \
|
|
|
|
testdata/testinput9 \
|
|
|
|
testdata/testinput10 \
|
|
|
|
testdata/testinput11 \
|
|
|
|
testdata/testinput12 \
|
|
|
|
testdata/testinput13 \
|
|
|
|
testdata/testinput14 \
|
|
|
|
testdata/testinput15 \
|
|
|
|
testdata/testinput16 \
|
|
|
|
testdata/testinput17 \
|
|
|
|
testdata/testinput18 \
|
|
|
|
testdata/testinput19 \
|
|
|
|
testdata/testinput20 \
|
|
|
|
testdata/testinput21 \
|
|
|
|
testdata/testinput22 \
|
|
|
|
testdata/testinput23 \
|
|
|
|
testdata/testinput24 \
|
|
|
|
testdata/testinput25 \
|
|
|
|
testdata/testinput26 \
|
|
|
|
testdata/testinputEBC \
|
|
|
|
testdata/testoutput1 \
|
|
|
|
testdata/testoutput2 \
|
|
|
|
testdata/testoutput3 \
|
|
|
|
testdata/testoutput3A \
|
|
|
|
testdata/testoutput3B \
|
|
|
|
testdata/testoutput4 \
|
|
|
|
testdata/testoutput5 \
|
|
|
|
testdata/testoutput6 \
|
|
|
|
testdata/testoutput7 \
|
|
|
|
testdata/testoutput8 \
|
|
|
|
testdata/testoutput9 \
|
|
|
|
testdata/testoutput10 \
|
|
|
|
testdata/testoutput11-8 \
|
|
|
|
testdata/testoutput11-16 \
|
|
|
|
testdata/testoutput11-32 \
|
|
|
|
testdata/testoutput12 \
|
|
|
|
testdata/testoutput13 \
|
|
|
|
testdata/testoutput14 \
|
|
|
|
testdata/testoutput15 \
|
|
|
|
testdata/testoutput16 \
|
|
|
|
testdata/testoutput17 \
|
|
|
|
testdata/testoutput18-16 \
|
|
|
|
testdata/testoutput18-32 \
|
|
|
|
testdata/testoutput19 \
|
|
|
|
testdata/testoutput20 \
|
|
|
|
testdata/testoutput21-16 \
|
|
|
|
testdata/testoutput21-32 \
|
|
|
|
testdata/testoutput22-16 \
|
|
|
|
testdata/testoutput22-32 \
|
|
|
|
testdata/testoutput23 \
|
|
|
|
testdata/testoutput24 \
|
|
|
|
testdata/testoutput25 \
|
|
|
|
testdata/testoutput26 \
|
|
|
|
testdata/testoutputEBC \
|
|
|
|
testdata/wintestinput3 \
|
|
|
|
testdata/wintestoutput3 \
|
|
|
|
perltest.pl
|
|
|
|
|
|
|
|
CLEANFILES += \
|
|
|
|
testsavedregex \
|
|
|
|
teststderr \
|
2014-08-30 16:57:12 +02:00
|
|
|
teststderrgrep \
|
2014-02-20 20:17:05 +01:00
|
|
|
testtemp* \
|
|
|
|
testtry \
|
2014-08-30 16:57:12 +02:00
|
|
|
testtrygrep \
|
|
|
|
testNinput \
|
|
|
|
testNinputgrep
|
2014-05-13 13:20:03 +02:00
|
|
|
|
|
|
|
## ------------ End of testing -------------
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
|
2014-03-07 18:28:52 +01:00
|
|
|
# PCRE demonstration program. Not built automatcally. The point is that the
|
|
|
|
# users should build it themselves. So just distribute the source.
|
2014-02-20 20:17:05 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
EXTRA_DIST += src/pcre2demo.c
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
# We have .pc files for pkg-config users.
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA =
|
|
|
|
|
|
|
|
if WITH_PCRE8
|
2014-03-07 18:28:52 +01:00
|
|
|
pkgconfig_DATA += libpcre2-8.pc libpcre2-posix.pc
|
2014-02-20 20:17:05 +01:00
|
|
|
endif
|
2014-03-07 18:28:52 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE16
|
|
|
|
pkgconfig_DATA += libpcre2-16.pc
|
|
|
|
endif
|
2014-03-07 18:28:52 +01:00
|
|
|
|
2014-02-28 10:40:55 +01:00
|
|
|
if WITH_PCRE32
|
|
|
|
pkgconfig_DATA += libpcre2-32.pc
|
|
|
|
endif
|
2014-02-20 20:17:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
# gcov/lcov code coverage reporting
|
|
|
|
#
|
|
|
|
# Coverage reporting targets:
|
|
|
|
#
|
|
|
|
# coverage: Create a coverage report from 'make check'
|
|
|
|
# coverage-baseline: Capture baseline coverage information
|
|
|
|
# coverage-reset: This zeros the coverage counters only
|
|
|
|
# coverage-report: This creates the coverage report only
|
|
|
|
# coverage-clean-report: This removes the generated coverage report
|
|
|
|
# without cleaning the coverage data itself
|
|
|
|
# coverage-clean-data: This removes the captured coverage data without
|
|
|
|
# removing the coverage files created at compile time (*.gcno)
|
|
|
|
# coverage-clean: This cleans all coverage data including the generated
|
|
|
|
# coverage report.
|
|
|
|
|
|
|
|
if WITH_GCOV
|
|
|
|
COVERAGE_TEST_NAME = $(PACKAGE)
|
|
|
|
COVERAGE_NAME = $(PACKAGE)-$(VERSION)
|
|
|
|
COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
|
|
|
|
COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
|
|
|
|
COVERAGE_LCOV_EXTRA_FLAGS =
|
|
|
|
COVERAGE_GENHTML_EXTRA_FLAGS =
|
|
|
|
|
|
|
|
coverage_quiet = $(coverage_quiet_$(V))
|
|
|
|
coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
|
|
|
|
coverage_quiet_0 = --quiet
|
|
|
|
|
|
|
|
coverage-check: all
|
|
|
|
-$(MAKE) $(AM_MAKEFLAGS) -k check
|
|
|
|
|
|
|
|
coverage-baseline:
|
|
|
|
$(LCOV) $(coverage_quiet) \
|
|
|
|
--directory $(top_builddir) \
|
|
|
|
--output-file "$(COVERAGE_OUTPUT_FILE)" \
|
|
|
|
--capture \
|
|
|
|
--initial
|
|
|
|
|
|
|
|
coverage-report:
|
|
|
|
$(LCOV) $(coverage_quiet) \
|
|
|
|
--directory $(top_builddir) \
|
|
|
|
--capture \
|
|
|
|
--output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
|
|
|
|
--test-name "$(COVERAGE_TEST_NAME)" \
|
|
|
|
--no-checksum \
|
|
|
|
--compat-libtool \
|
|
|
|
$(COVERAGE_LCOV_EXTRA_FLAGS)
|
|
|
|
$(LCOV) $(coverage_quiet) \
|
|
|
|
--directory $(top_builddir) \
|
|
|
|
--output-file "$(COVERAGE_OUTPUT_FILE)" \
|
|
|
|
--remove "$(COVERAGE_OUTPUT_FILE).tmp" \
|
|
|
|
"/tmp/*" \
|
|
|
|
"/usr/include/*" \
|
|
|
|
"$(includedir)/*"
|
|
|
|
-@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
|
|
|
|
LANG=C $(GENHTML) $(coverage_quiet) \
|
|
|
|
--prefix $(top_builddir) \
|
|
|
|
--output-directory "$(COVERAGE_OUTPUT_DIR)" \
|
|
|
|
--title "$(PACKAGE) $(VERSION) Code Coverage Report" \
|
|
|
|
--show-details "$(COVERAGE_OUTPUT_FILE)" \
|
|
|
|
--legend \
|
|
|
|
$(COVERAGE_GENHTML_EXTRA_FLAGS)
|
|
|
|
@echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
|
|
|
|
|
|
|
|
coverage-reset:
|
|
|
|
-$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
|
|
|
|
|
|
|
|
coverage-clean-report:
|
|
|
|
-rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
|
|
|
|
-rm -rf "$(COVERAGE_OUTPUT_DIR)"
|
|
|
|
|
|
|
|
coverage-clean-data:
|
|
|
|
-find $(top_builddir) -name "*.gcda" -delete
|
|
|
|
|
|
|
|
coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
|
|
|
|
-find $(top_builddir) -name "*.gcno" -delete
|
|
|
|
|
|
|
|
coverage-distclean: coverage-clean
|
|
|
|
|
|
|
|
coverage: coverage-reset coverage-baseline coverage-check coverage-report
|
|
|
|
clean-local: coverage-clean
|
|
|
|
distclean-local: coverage-distclean
|
|
|
|
|
|
|
|
.PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
|
|
|
|
|
2014-08-30 16:57:12 +02:00
|
|
|
# Without coverage support, still arrange for 'make distclean' to get rid of
|
|
|
|
# any coverage files that may have been left from a different configuration.
|
|
|
|
|
2014-02-20 20:17:05 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
@echo "Configuring with --enable-coverage is required to generate code coverage report."
|
2014-08-30 16:57:12 +02:00
|
|
|
|
2014-09-28 19:39:28 +02:00
|
|
|
DISTCLEANFILES += src/*.gcda src/*.gcno
|
2014-08-30 16:57:12 +02:00
|
|
|
|
2014-09-28 19:39:28 +02:00
|
|
|
distclean-local:
|
2014-08-30 16:57:12 +02:00
|
|
|
rm -rf $(PACKAGE)-$(VERSION)-coverage*
|
|
|
|
|
2014-02-20 20:17:05 +01:00
|
|
|
endif # WITH_GCOV
|
|
|
|
|
|
|
|
## CMake support
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
cmake/COPYING-CMAKE-SCRIPTS \
|
|
|
|
cmake/FindPackageHandleStandardArgs.cmake \
|
|
|
|
cmake/FindReadline.cmake \
|
|
|
|
cmake/FindEditline.cmake \
|
|
|
|
CMakeLists.txt \
|
|
|
|
config-cmake.h.in
|
|
|
|
|
|
|
|
## end Makefile.am
|