2016-11-18 18:11:13 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
2016-12-31 15:20:52 +00:00
|
|
|
CPPFLAGS_COMMON = \
|
2016-11-18 18:11:13 +00:00
|
|
|
-I$(abs_builddir) \
|
2016-12-31 15:20:52 +00:00
|
|
|
-I$(abs_builddir)/../lib \
|
2016-11-18 18:11:13 +00:00
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(abs_srcdir)/../lib \
|
2016-12-31 15:20:52 +00:00
|
|
|
-I$(includedir)
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
if WIN32
|
|
|
|
# you must adjust the value of DEFAULT_MODPOSTFIX according
|
|
|
|
# to the first number in -version-info above
|
2016-12-31 15:20:52 +00:00
|
|
|
CPPFLAGS_COMMON += -DSTIX_DEFAULT_MODPREFIX=\"libstix-\" -DSTIX_DEFAULT_MODPOSTFIX=\"-1\"
|
2016-11-18 18:11:13 +00:00
|
|
|
else
|
2016-12-31 15:20:52 +00:00
|
|
|
CPPFLAGS_COMMON += -DSTIX_DEFAULT_MODPREFIX=\"$(libdir)/libstix-\" -DSTIX_DEFAULT_MODPOSTFIX=\"\"
|
2016-11-18 18:11:13 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
2016-12-31 15:20:52 +00:00
|
|
|
|
|
|
|
noinst_LIBRARIES = libstix-stdio.a
|
|
|
|
|
|
|
|
libstix_stdio_a_SOURCES = stdio.c
|
|
|
|
libstix_stdio_a_CPPFLAGS = $(CPPFLAGS_COMMON)
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# DYNAMIC MODULES
|
|
|
|
##################################################
|
2016-12-31 15:20:52 +00:00
|
|
|
LDFLAGS_COMMON = -L$(abs_builddir)/../lib -L$(libdir) -version-info 1:0:0 -no-undefined
|
|
|
|
LIBADD_COMMON = -lstix
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
pkgmodexecdir = $(libdir)
|
|
|
|
|
2016-12-31 15:24:17 +00:00
|
|
|
pkgmodexec_LTLIBRARIES = libstix-stdio.la libstix-console.la
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2016-12-31 15:35:19 +00:00
|
|
|
libstix_stdio_la_SOURCES = stdio.c m-stdio.h
|
2016-12-31 15:20:52 +00:00
|
|
|
libstix_stdio_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libstix_stdio_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libstix_stdio_la_LIBADD = $(LIBADD_COMMON)
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
libstix_console_la_SOURCES = console.c console.h
|
2016-12-31 15:20:52 +00:00
|
|
|
libstix_console_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libstix_console_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libstix_console_la_LIBADD = $(LIBADD_COMMON) -ltermcap
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|