2018-02-15 15:36:15 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
|
|
|
|
CPPFLAGS_COMMON = \
|
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_builddir)/../lib \
|
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(abs_srcdir)/../lib \
|
|
|
|
-I$(includedir)
|
|
|
|
|
2020-11-15 09:56:06 +00:00
|
|
|
CFLAGS_COMMON =
|
|
|
|
|
2018-02-15 15:36:15 +00:00
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
2021-01-09 16:53:35 +00:00
|
|
|
LDFLAGS_COMMON =-L$(libdir)
|
2018-02-15 15:36:15 +00:00
|
|
|
LIBADD_COMMON =
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libhcl-arr.la
|
|
|
|
noinst_LTLIBRARIES += libhcl-dic.la
|
|
|
|
noinst_LTLIBRARIES += libhcl-str.la
|
2019-04-17 03:46:39 +00:00
|
|
|
noinst_LTLIBRARIES += libhcl-sys.la
|
2018-02-15 15:36:15 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# DYNAMIC MODULES
|
|
|
|
##################################################
|
|
|
|
LDFLAGS_COMMON = -L$(abs_builddir)/../lib -L$(libdir) -version-info 1:0:0 -no-undefined
|
|
|
|
LIBADD_COMMON = -lhcl
|
|
|
|
|
|
|
|
pkgmodexecdir = $(libdir)
|
|
|
|
pkgmodexec_LTLIBRARIES =
|
|
|
|
|
|
|
|
pkgmodexec_LTLIBRARIES += libhcl-arr.la
|
|
|
|
pkgmodexec_LTLIBRARIES += libhcl-dic.la
|
|
|
|
pkgmodexec_LTLIBRARIES += libhcl-str.la
|
2019-04-17 03:46:39 +00:00
|
|
|
pkgmodexec_LTLIBRARIES += libhcl-sys.la
|
2018-02-15 15:36:15 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
libhcl_arr_la_SOURCES = arr.c _arr.h
|
|
|
|
libhcl_arr_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
2020-11-15 09:56:06 +00:00
|
|
|
libhcl_arr_la_CFLAGS = $(CFLAGS_COMMON)
|
2018-02-15 15:36:15 +00:00
|
|
|
libhcl_arr_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libhcl_arr_la_LIBADD = $(LIBADD_COMMON)
|
|
|
|
|
|
|
|
libhcl_dic_la_SOURCES = dic.c _dic.h
|
|
|
|
libhcl_dic_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
2020-11-15 09:56:06 +00:00
|
|
|
libhcl_dic_la_CFLAGS = $(CFLAGS_COMMON)
|
2018-02-15 15:36:15 +00:00
|
|
|
libhcl_dic_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libhcl_dic_la_LIBADD = $(LIBADD_COMMON)
|
|
|
|
|
|
|
|
libhcl_str_la_SOURCES = str.c _str.h
|
|
|
|
libhcl_str_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
2020-11-15 09:56:06 +00:00
|
|
|
libhcl_str_la_CFLAGS = $(CFLAGS_COMMON)
|
2018-02-15 15:36:15 +00:00
|
|
|
libhcl_str_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libhcl_str_la_LIBADD = $(LIBADD_COMMON)
|
2019-04-17 03:46:39 +00:00
|
|
|
|
|
|
|
libhcl_sys_la_SOURCES = sys.c _sys.h
|
|
|
|
libhcl_sys_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
2020-11-15 09:56:06 +00:00
|
|
|
libhcl_sys_la_CFLAGS = $(CFLAGS_COMMON)
|
2019-04-17 03:46:39 +00:00
|
|
|
libhcl_sys_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libhcl_sys_la_LIBADD = $(LIBADD_COMMON)
|