2019-12-13 04:29:58 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
##AM_CFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
|
|
|
|
CPPFLAGS_ALL_COMMON = \
|
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(includedir)
|
|
|
|
|
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
LDFLAGS_ALL_COMMON = -L../mod
|
|
|
|
else
|
|
|
|
LDFLAGS_ALL_COMMON = -L.
|
|
|
|
endif
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
CPPFLAGS_LIB_COMMON = $(CPPFLAGS_ALL_COMMON) $(LTDLINCL)
|
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
|
|
|
LIBADD_LIB_COMMON = $(LIBM)
|
|
|
|
DEPENDENCIES_LIB_COMMON =
|
|
|
|
|
|
|
|
if ENABLE_LIBLTDL
|
|
|
|
LIBADD_LIB_COMMON += $(LTDL_LIBS)
|
|
|
|
else
|
|
|
|
LIBADD_LIB_COMMON += $(DL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if WIN32
|
|
|
|
# you must adjust the value of DEFAULT_MODPOSTFIX according
|
|
|
|
# to the first number in -version-info above
|
|
|
|
CPPFLAGS_PFMOD = -DHAWK_DEFAULT_MODPREFIX=\"libhawk-\" -DHAWK_DEFAULT_MODPOSTFIX=\"-1.dll\"
|
|
|
|
else
|
|
|
|
CPPFLAGS_PFMOD = -DHAWK_DEFAULT_MODPREFIX=\"$(libdir)/libhawk-\"
|
|
|
|
if MACOSX
|
|
|
|
CPPFLAGS_PFMOD += -DHAWK_DEFAULT_MODPOSTFIX=\".dylib\"
|
|
|
|
else
|
|
|
|
CPPFLAGS_PFMOD += -DHAWK_DEFAULT_MODPOSTFIX=\".so\"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# include files to deploy
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
pkgincludedir = $(includedir)
|
|
|
|
|
|
|
|
pkginclude_HEADERS = \
|
|
|
|
hawk.h \
|
|
|
|
hawk-chr.h \
|
|
|
|
hawk-cmn.h \
|
2019-12-20 14:55:10 +00:00
|
|
|
hawk-dir.h \
|
2019-12-13 04:29:58 +00:00
|
|
|
hawk-ecs.h \
|
|
|
|
hawk-fmt.h \
|
2019-12-13 08:26:54 +00:00
|
|
|
hawk-gem.h \
|
2019-12-13 04:29:58 +00:00
|
|
|
hawk-htb.h \
|
|
|
|
hawk-rbt.h \
|
|
|
|
hawk-pack1.h \
|
|
|
|
hawk-utl.h \
|
|
|
|
hawk-std.h \
|
|
|
|
hawk-tre.h \
|
|
|
|
hawk-unpack.h
|
|
|
|
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# libraries to deploy
|
|
|
|
##################################################
|
|
|
|
pkglibdir = $(libdir)
|
|
|
|
pkglib_LTLIBRARIES = libhawk.la
|
|
|
|
|
|
|
|
libhawk_la_SOURCES = \
|
|
|
|
$(pkginclude_HEADERS) \
|
|
|
|
arr.c \
|
|
|
|
chr.c \
|
2019-12-20 14:55:10 +00:00
|
|
|
dir.c \
|
2019-12-13 04:29:58 +00:00
|
|
|
ecs-imp.h \
|
|
|
|
ecs.c \
|
|
|
|
err-prv.h \
|
|
|
|
err.c \
|
2020-01-01 05:20:28 +00:00
|
|
|
err-sys.c \
|
2019-12-13 04:29:58 +00:00
|
|
|
fmt-imp.h \
|
|
|
|
fmt.c \
|
|
|
|
fnc-prv.h \
|
|
|
|
fnc.c \
|
|
|
|
htb.c \
|
2019-12-13 08:26:54 +00:00
|
|
|
gem.c \
|
2019-12-25 16:01:43 +00:00
|
|
|
gem-skad.c \
|
2019-12-27 08:21:27 +00:00
|
|
|
gem-nwif.c \
|
2019-12-29 16:54:12 +00:00
|
|
|
gem-nwif2.c \
|
2019-12-13 04:29:58 +00:00
|
|
|
hawk-prv.h \
|
|
|
|
hawk.c \
|
|
|
|
mb8.c \
|
|
|
|
misc-prv.h \
|
|
|
|
misc.c \
|
|
|
|
parse-prv.h \
|
|
|
|
parse.c \
|
|
|
|
rbt.c \
|
|
|
|
rec.c \
|
|
|
|
rio-prv.h \
|
|
|
|
rio.c \
|
|
|
|
run-prv.h \
|
|
|
|
run.c \
|
|
|
|
tre-prv.h \
|
|
|
|
tre-ast.c \
|
|
|
|
tre-ast.h \
|
|
|
|
tre-compile.c \
|
|
|
|
tre-compile.h \
|
|
|
|
tre-match-bt.c \
|
|
|
|
tre-match-pa.c \
|
|
|
|
tre-match-ut.h \
|
2019-12-20 03:15:03 +00:00
|
|
|
tre-mem.c \
|
|
|
|
tre-mem.h \
|
2019-12-13 04:29:58 +00:00
|
|
|
tre-parse.c \
|
|
|
|
tre-parse.h \
|
|
|
|
tre-stack.c \
|
|
|
|
tre-stack.h \
|
|
|
|
tre.c \
|
|
|
|
tree-prv.h \
|
|
|
|
tree.c \
|
|
|
|
utf16.c \
|
|
|
|
utf8.c \
|
2019-12-21 16:59:00 +00:00
|
|
|
utl-ass.c \
|
2019-12-24 16:26:18 +00:00
|
|
|
utl-skad.c \
|
2019-12-25 16:01:43 +00:00
|
|
|
utl-skad.h \
|
2019-12-13 04:29:58 +00:00
|
|
|
utl-sort.c \
|
|
|
|
utl-str.c \
|
|
|
|
utl-sys.c \
|
|
|
|
utl.c \
|
|
|
|
val-prv.h \
|
|
|
|
val.c
|
|
|
|
|
|
|
|
libhawk_la_SOURCES += \
|
|
|
|
hawk-cli.h \
|
|
|
|
hawk-fio.h \
|
|
|
|
hawk-mtx.h \
|
|
|
|
hawk-pio.h \
|
|
|
|
hawk-sio.h \
|
|
|
|
hawk-tio.h \
|
|
|
|
cli.c \
|
|
|
|
fio.c \
|
|
|
|
mtx.c \
|
|
|
|
pio.c \
|
|
|
|
sio.c \
|
|
|
|
syscall.h \
|
|
|
|
tio.c \
|
|
|
|
std-prv.h \
|
|
|
|
std.c
|
|
|
|
|
|
|
|
libhawk_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libhawk_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
libhawk_la_LIBADD = $(LIBADD_LIB_COMMON)
|
|
|
|
libhawk_la_DEPENDENCIES = $(DEPENDENCIES_LIB_COMMON)
|
|
|
|
|
|
|
|
if ENABLE_CXX
|
|
|
|
pkglib_LTLIBRARIES += libhawkxx.la
|
|
|
|
libhawkxx_la_SOURCES = Hawk.cpp StdHawk.cpp
|
|
|
|
libhawkxx_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libhawkxx_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
libhawkxx_la_LIBADD = -lhawk $(LIBADD_LIB_COMMON)
|
|
|
|
libhawkxx_la_DEPENDENCIES = libhawk.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
libhawk_la_SOURCES += \
|
|
|
|
imap-imp.h \
|
|
|
|
mod-math.c mod-math.h \
|
2019-12-20 14:55:10 +00:00
|
|
|
mod-str.c mod-str.h \
|
|
|
|
mod-sys.c mod-sys.h
|
2019-12-16 08:57:43 +00:00
|
|
|
libhawk_la_LIBADD +=
|
2019-12-13 04:29:58 +00:00
|
|
|
|
|
|
|
### mod-dir.c mod-dir.h
|
|
|
|
|
|
|
|
if ENABLE_MOD_MYSQL
|
|
|
|
libhawk_la_LIBADD += -lhawk-mysql
|
|
|
|
libhawk_la_DEPENDENCIES += ../mod/libhawk-mysql.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_MOD_UCI
|
|
|
|
libhawk_la_LIBADD += -lhawk-uci
|
|
|
|
libhawk_la_DEPENDENCIES += ../mod/libhawk-uci.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
|
|
|
##################################################
|
|
|
|
# DYNAMIC MODULES
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
CPPFLAGS_MOD_COMMON = $(CPPFLAGS_ALL_COMMON)
|
|
|
|
LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON)
|
|
|
|
LIBADD_MOD_COMMON = -lhawk
|
|
|
|
DEPENDENCIES_MOD_COMMON = libhawk.la
|
|
|
|
|
|
|
|
#modexecdir = $(libdir)
|
|
|
|
#
|
|
|
|
#modexec_LTLIBRARIES = libhawk-dir.la
|
|
|
|
#libhawk_dir_la_SOURCES = mod-dir.c mod-dir.h
|
|
|
|
#libhawk_dir_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_dir_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) -L../si
|
|
|
|
#libhawk_dir_la_LIBADD = $(LIBADD_MOD_COMMON) -lqsesi
|
|
|
|
#libhawk_dir_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON) ../../lib/si/libqsesi.la
|
|
|
|
#
|
|
|
|
#modexec_LTLIBRARIES += libhawk-math.la
|
|
|
|
#libhawk_math_la_SOURCES = mod-math.c mod-math.h
|
|
|
|
#libhawk_math_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_math_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_math_la_LIBADD = $(LIBADD_MOD_COMMON)
|
|
|
|
#libhawk_math_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON)
|
|
|
|
#
|
|
|
|
#modexec_LTLIBRARIES += libhawk-str.la
|
|
|
|
#libhawk_str_la_SOURCES = mod-str.c mod-str.h
|
|
|
|
#libhawk_str_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_str_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_str_la_LIBADD = $(LIBADD_MOD_COMMON)
|
|
|
|
#libhawk_str_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON)
|
|
|
|
#
|
|
|
|
#modexec_LTLIBRARIES += libhawk-sys.la
|
|
|
|
#libhawk_sys_la_SOURCES = mod-sys.c mod-sys.h
|
|
|
|
#libhawk_sys_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
|
|
|
|
#libhawk_sys_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) -L../si
|
|
|
|
#libhawk_sys_la_LIBADD = $(LIBADD_MOD_COMMON) -lqsesi
|
|
|
|
#libhawk_sys_la_DEPENDENCIES = $(DEPENDENCIES_MOD_COMMON) ../../lib/si/libqsesi.la
|
|
|
|
|
|
|
|
endif
|