2008-06-20 03:44:45 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
2008-06-16 08:28:09 +00:00
|
|
|
|
2019-05-09 14:08:14 +00:00
|
|
|
##AM_CFLAGS = $(PTHREAD_CFLAGS)
|
2019-05-09 07:25:27 +00:00
|
|
|
|
2013-02-01 08:31:42 +00:00
|
|
|
CPPFLAGS_ALL_COMMON = \
|
2011-01-23 04:32:11 +00:00
|
|
|
-I$(top_builddir)/include \
|
2013-02-26 18:31:38 +00:00
|
|
|
-I$(top_srcdir)/include
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2019-05-09 07:25:27 +00:00
|
|
|
if ENABLE_STATIC_MODULE
|
2019-05-09 07:35:33 +00:00
|
|
|
LDFLAGS_ALL_COMMON = -L../awkmod -L../cmn -L../si
|
2019-05-09 07:25:27 +00:00
|
|
|
else
|
|
|
|
LDFLAGS_ALL_COMMON = -L. -L../cmn -L../si
|
|
|
|
endif
|
2013-02-01 08:31:42 +00:00
|
|
|
|
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
CPPFLAGS_LIB_COMMON = $(CPPFLAGS_ALL_COMMON) $(LTDLINCL)
|
2019-05-09 07:25:27 +00:00
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
2018-06-26 08:30:02 +00:00
|
|
|
LIBADD_LIB_COMMON = -lqsecmn -lqsesi $(LIBM)
|
2019-06-30 11:50:36 +00:00
|
|
|
DEPENDENCIES_LIB_COMMON = ../../lib/cmn/libqsecmn.la ../../lib/si/libqsesi.la
|
2018-06-26 08:30:02 +00:00
|
|
|
|
|
|
|
if ENABLE_LIBLTDL
|
|
|
|
LIBADD_LIB_COMMON += $(LTDL_LIBS)
|
|
|
|
else
|
|
|
|
LIBADD_LIB_COMMON += $(DL_LIBS)
|
|
|
|
endif
|
2012-11-02 14:08:46 +00:00
|
|
|
|
|
|
|
if WIN32
|
2013-02-01 14:30:25 +00:00
|
|
|
# you must adjust the value of DEFAULT_MODPOSTFIX according
|
|
|
|
# to the first number in -version-info above
|
2013-02-01 08:31:42 +00:00
|
|
|
CPPFLAGS_LIB_COMMON += -DQSE_AWK_DEFAULT_MODPREFIX=\"libqseawk-\" -DQSE_AWK_DEFAULT_MODPOSTFIX=\"-1\"
|
2012-11-02 14:08:46 +00:00
|
|
|
else
|
2013-02-01 08:31:42 +00:00
|
|
|
CPPFLAGS_LIB_COMMON += -DQSE_AWK_DEFAULT_MODPREFIX=\"$(libdir)/libqseawk-\" -DQSE_AWK_DEFAULT_MODPOSTFIX=\"\"
|
2012-11-02 14:08:46 +00:00
|
|
|
endif
|
2008-06-15 02:15:37 +00:00
|
|
|
|
2016-04-29 03:55:42 +00:00
|
|
|
noinst_HEADERS = awk-prv.h err.h rio.h val.h fnc.h misc.h parse.h run.h tree.h std.h
|
|
|
|
|
2008-12-21 22:04:18 +00:00
|
|
|
lib_LTLIBRARIES = libqseawk.la
|
2019-05-13 16:35:33 +00:00
|
|
|
libqseawk_la_SOURCES = awk.c err.c tree.c parse.c run.c rec.c val.c val-imp.h fnc.c imap-imp.h misc.c misc-imp.h rio.c std.c
|
2013-02-01 08:31:42 +00:00
|
|
|
libqseawk_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libqseawk_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
libqseawk_la_LIBADD = $(LIBADD_LIB_COMMON)
|
2019-06-30 11:50:36 +00:00
|
|
|
libqseawk_la_DEPENDENCIES = $(DEPENDENCIES_LIB_COMMON)
|
2008-06-15 02:15:37 +00:00
|
|
|
|
2008-07-20 01:29:52 +00:00
|
|
|
if ENABLE_CXX
|
2020-08-06 11:42:39 +00:00
|
|
|
libqseawk_la_SOURCES += Awk.cpp StdAwk.cpp
|
2008-07-19 08:04:49 +00:00
|
|
|
endif
|
2012-08-10 16:05:55 +00:00
|
|
|
|
2013-02-01 14:30:25 +00:00
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
2013-02-01 08:31:42 +00:00
|
|
|
##################################################
|
2013-02-01 14:30:25 +00:00
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
libqseawk_la_SOURCES += \
|
|
|
|
mod-dir.c mod-dir.h \
|
2014-06-08 12:46:04 +00:00
|
|
|
mod-math.c mod-math.h \
|
2013-02-01 14:30:25 +00:00
|
|
|
mod-str.c mod-str.h \
|
|
|
|
mod-sys.c mod-sys.h
|
2019-05-09 07:25:27 +00:00
|
|
|
##libqseawk_la_LIBADD +=
|
|
|
|
|
|
|
|
if ENABLE_AWKMOD_MPI
|
|
|
|
libqseawk_la_LIBADD += -lqseawk-mpi
|
2019-05-09 07:35:33 +00:00
|
|
|
libqseawk_la_DEPENDENCIES += ../awkmod/libqseawk-mpi.la
|
2019-05-09 07:25:27 +00:00
|
|
|
endif
|
2013-02-01 14:30:25 +00:00
|
|
|
|
2019-05-09 08:29:00 +00:00
|
|
|
if ENABLE_AWKMOD_MYSQL
|
|
|
|
libqseawk_la_LIBADD += -lqseawk-mysql
|
|
|
|
libqseawk_la_DEPENDENCIES += ../awkmod/libqseawk-mysql.la
|
|
|
|
endif
|
|
|
|
|
2019-05-09 07:25:27 +00:00
|
|
|
if ENABLE_AWKMOD_SED
|
|
|
|
libqseawk_la_LIBADD += -lqseawk-sed
|
2019-05-09 07:35:33 +00:00
|
|
|
libqseawk_la_DEPENDENCIES += ../awkmod/libqseawk-sed.la
|
2013-02-01 14:30:25 +00:00
|
|
|
endif
|
|
|
|
|
2019-05-09 07:25:27 +00:00
|
|
|
if ENABLE_AWKMOD_UCI
|
|
|
|
libqseawk_la_LIBADD += -lqseawk-uci
|
2019-05-09 07:35:33 +00:00
|
|
|
libqseawk_la_DEPENDENCIES += ../awkmod/libqseawk-uci.la
|
2013-02-01 14:30:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
|
|
|
##################################################
|
|
|
|
# DYNAMIC MODULES
|
2013-02-01 08:31:42 +00:00
|
|
|
##################################################
|
|
|
|
|
|
|
|
CPPFLAGS_MOD_COMMON = $(CPPFLAGS_ALL_COMMON)
|
|
|
|
LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON)
|
|
|
|
LIBADD_MOD_COMMON = -lqseawk -lqsecmn
|
2019-06-30 11:50:36 +00:00
|
|
|
DEPENDENCIES_MOD_COMMON = libqseawk.la ../../lib/cmn/libqsecmn.la
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2013-02-28 17:49:12 +00:00
|
|
|
modexecdir = $(libdir)
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2013-02-28 17:49:12 +00:00
|
|
|
modexec_LTLIBRARIES = libqseawk-dir.la
|
2013-02-01 14:30:25 +00:00
|
|
|
libqseawk_dir_la_SOURCES = mod-dir.c mod-dir.h
|
2013-02-01 08:31:42 +00:00
|
|
|
libqseawk_dir_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
2016-04-29 03:55:42 +00:00
|
|
|
libqseawk_dir_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) -L../si
|
|
|
|
libqseawk_dir_la_LIBADD = $(LIBADD_MOD_COMMON) -lqsesi
|
2019-06-30 11:28:33 +00:00
|
|
|
libqseawk_dir_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON) ../../lib/si/libqsesi.la
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2014-06-08 12:46:04 +00:00
|
|
|
modexec_LTLIBRARIES += libqseawk-math.la
|
|
|
|
libqseawk_math_la_SOURCES = mod-math.c mod-math.h
|
|
|
|
libqseawk_math_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
libqseawk_math_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
|
|
|
|
libqseawk_math_la_LIBADD = $(LIBADD_MOD_COMMON)
|
2019-06-30 11:28:33 +00:00
|
|
|
libqseawk_math_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON)
|
2014-06-08 12:46:04 +00:00
|
|
|
|
2013-02-28 17:49:12 +00:00
|
|
|
modexec_LTLIBRARIES += libqseawk-str.la
|
2013-02-01 14:30:25 +00:00
|
|
|
libqseawk_str_la_SOURCES = mod-str.c mod-str.h
|
2013-02-01 08:31:42 +00:00
|
|
|
libqseawk_str_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
libqseawk_str_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
|
|
|
|
libqseawk_str_la_LIBADD = $(LIBADD_MOD_COMMON)
|
2019-06-30 11:28:33 +00:00
|
|
|
libqseawk_str_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON)
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2013-02-28 17:49:12 +00:00
|
|
|
modexec_LTLIBRARIES += libqseawk-sys.la
|
2013-02-01 14:30:25 +00:00
|
|
|
libqseawk_sys_la_SOURCES = mod-sys.c mod-sys.h
|
2013-02-01 08:31:42 +00:00
|
|
|
libqseawk_sys_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
2016-04-28 15:29:28 +00:00
|
|
|
libqseawk_sys_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) -L../si
|
|
|
|
libqseawk_sys_la_LIBADD = $(LIBADD_MOD_COMMON) -lqsesi
|
2019-06-30 11:50:36 +00:00
|
|
|
libqseawk_sys_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON) ../../lib/si/libqsesi.la
|
2013-02-01 08:31:42 +00:00
|
|
|
|
2013-02-01 14:30:25 +00:00
|
|
|
endif
|