2015-10-14 09:06:44 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
CPPFLAGS_ALL_COMMON = \
|
2015-10-14 13:25:36 +00:00
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_srcdir) \
|
2015-10-14 09:06:44 +00:00
|
|
|
-I$(includedir)
|
|
|
|
|
2015-10-14 13:25:36 +00:00
|
|
|
LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(libdir)
|
2015-10-14 09:06:44 +00:00
|
|
|
|
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
CPPFLAGS_LIB_COMMON = $(CPPFLAGS_ALL_COMMON) $(LTDLINCL)
|
2015-10-14 13:25:36 +00:00
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
2015-10-14 09:06:44 +00:00
|
|
|
LIBADD_LIB_COMMON = $(LIBM) $(LIBLTDL)
|
|
|
|
|
|
|
|
if WIN32
|
|
|
|
# you must adjust the value of DEFAULT_MODPOSTFIX according
|
|
|
|
# to the first number in -version-info above
|
|
|
|
CPPFLAGS_LIB_COMMON += -DSTIX_DEFAULT_MODPREFIX=\"libstix-\" -DSTIX_DEFAULT_MODPOSTFIX=\"-1\"
|
|
|
|
else
|
|
|
|
CPPFLAGS_LIB_COMMON += -DSTIX_DEFAULT_MODPREFIX=\"$(libdir)/libstix-\" -DSTIX_DEFAULT_MODPOSTFIX=\"\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
pkgincludedir = $(includedir)
|
|
|
|
pkglibdir = $(libdir)
|
|
|
|
|
|
|
|
pkginclude_HEADERS = \
|
|
|
|
stix-cfg.h \
|
|
|
|
stix-cmn.h \
|
|
|
|
stix-rbt.h \
|
2015-10-14 13:25:36 +00:00
|
|
|
stix-utl.h \
|
2015-10-14 09:06:44 +00:00
|
|
|
stix.h
|
|
|
|
|
2016-05-15 16:01:43 +00:00
|
|
|
noinst_HEADERS = stix-prv.h
|
|
|
|
|
2015-10-14 09:06:44 +00:00
|
|
|
pkglib_LTLIBRARIES = libstix.la
|
|
|
|
libstix_la_SOURCES = \
|
2016-05-15 16:01:43 +00:00
|
|
|
bigint.c \
|
|
|
|
comp.c \
|
|
|
|
debug.c \
|
2016-05-27 15:01:54 +00:00
|
|
|
decode.c \
|
2016-05-15 16:01:43 +00:00
|
|
|
dic.c \
|
2016-12-27 18:15:35 +00:00
|
|
|
err.c \
|
2016-05-15 16:01:43 +00:00
|
|
|
exec.c \
|
2016-06-03 15:46:01 +00:00
|
|
|
logfmtv.h \
|
|
|
|
logfmt.c \
|
2015-10-14 09:06:44 +00:00
|
|
|
gc.c \
|
2016-05-15 16:01:43 +00:00
|
|
|
heap.c \
|
2015-10-14 09:06:44 +00:00
|
|
|
obj.c \
|
2015-10-14 14:01:33 +00:00
|
|
|
proc.c \
|
2016-05-15 16:01:43 +00:00
|
|
|
rbt.c \
|
|
|
|
stix.c \
|
|
|
|
sym.c \
|
2015-10-14 09:06:44 +00:00
|
|
|
utf8.c \
|
2016-05-15 16:01:43 +00:00
|
|
|
utl.c
|
2015-10-14 09:06:44 +00:00
|
|
|
libstix_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libstix_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
libstix_la_LIBADD = $(LIBADD_LIB_COMMON)
|
|
|
|
|
2016-02-12 16:23:26 +00:00
|
|
|
bin_PROGRAMS = stix
|
2015-10-14 09:06:44 +00:00
|
|
|
stix_SOURCES = main.c
|
|
|
|
stix_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
stix_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
2016-02-12 16:23:26 +00:00
|
|
|
stix_LDADD = $(LIBADD_LIB_COMMON) -lstix #-ldyncall_s
|
2015-10-14 09:06:44 +00:00
|
|
|
|
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
#libstix_la_SOURCES += \
|
|
|
|
# mod-dir.c mod-dir.h \
|
|
|
|
#libstix_la_LIBADD +=
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
@echo "#ifndef _STIX_CFG_H_" > "$(DESTDIR)$(pkgincludedir)/stix-cfg.h"
|
|
|
|
@echo "#define _STIX_CFG_H_" >> "$(DESTDIR)$(pkgincludedir)/stix-cfg.h"
|
|
|
|
@$(EGREP) "#define[ ]+STIX_" "$(abs_builddir)/stix-cfg.h" >> "$(DESTDIR)$(pkgincludedir)/stix-cfg.h"
|
|
|
|
@echo "#endif" >> "$(DESTDIR)$(pkgincludedir)/stix-cfg.h"
|
2016-05-07 02:41:29 +00:00
|
|
|
@rm -f "$(DESTDIR)$(pkgincludedir)/stix-cfg.h.in"
|
2015-10-14 09:06:44 +00:00
|
|
|
@$(SED) 's|/\*#define STIX_HAVE_CFG_H\*/|#define STIX_HAVE_CFG_H|' "$(srcdir)/stix-cmn.h" > "$(DESTDIR)$(pkgincludedir)/stix-cmn.h"
|
|
|
|
|
|
|
|
uninstall-hook:
|
2016-05-07 02:41:29 +00:00
|
|
|
@rm -f "$(DESTDIR)$(pkgincludedir)/stix-cfg.h"
|
2015-10-14 09:06:44 +00:00
|
|
|
|