mc/lib/Makefile.am
Andrew Borodin 49624e473b Ticket #4450: support PCRE2 in the search engine.
* m4.include/ax_path_lib_pcre.m4: replace by recent version from GNU
Autoconf Archive.
  * m4.include/ax_check_pcre2.m4: get grom GNU Autoconf Archive.
  * m4.include/mc-check-search-type.m4: support both PCRE versions.
  * */*/Makefile.am: remove @CHECK_CFLAGS@ and @PCRE_LIBS@ ads they are
added via AX_PATH_LIB_PCRE and AX_CHECK_PCRE2.
  * lib/search.h, lib/search/: add support of PCRE2. Thanks broly <gagan@hotmail.com>
for the initial patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-03-25 10:07:41 +03:00

76 lines
1.4 KiB
Makefile

SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .
if ENABLE_MCLIB
LIB_VERSION=`echo $(LIBMC_VERSION) | \
tr '.' ' '| \
while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`
AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)
lib_LTLIBRARIES = libmc.la
else
noinst_LTLIBRARIES = libmc.la
endif
SUBLIB_includes = \
event.h event-types.h \
filehighlight.h \
mcconfig.h \
search.h \
skin.h \
strescape.h \
strutil.h \
widget.h
SRC_mc_utils = \
utilunix.c utilunix.h \
unixcompat.h \
util.c util.h
libmc_la_SOURCES = \
$(SUBLIB_includes) \
$(SRC_mc_utils) \
file-entry.h \
fileloc.h \
fs.h \
hook.c hook.h \
glibcompat.c glibcompat.h \
global.c global.h \
keybind.c keybind.h \
lock.c lock.h \
serialize.c serialize.h \
shell.c shell.h \
stat-size.h \
timefmt.c timefmt.h
if USE_MAINTAINER_MODE
libmc_la_SOURCES += logging.c logging.h
endif
if CHARSET
libmc_la_SOURCES += charsets.c charsets.h
endif
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
libmc_la_LIBADD = \
event/libmcevent.la \
filehighlight/libmcfilehighlight.la \
mcconfig/libmcconfig.la \
search/libsearch.la \
strutil/libmcstrutil.la \
skin/libmcskin.la \
tty/libmctty.la \
vfs/libmcvfs.la \
widget/libmcwidget.la
libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
if HAVE_GMODULE
libmc_la_LIBADD += $(GMODULE_LIBS)
else
libmc_la_LIBADD += $(GLIB_LIBS)
endif