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 \
|
2018-01-19 08:45:25 +00:00
|
|
|
-I$(includedir)
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
if ENABLE_STATIC_MODULE
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# STATIC MODULES BUILT INTO MAIN LIBRARY
|
|
|
|
##################################################
|
2020-12-04 09:41:32 +00:00
|
|
|
LDFLAGS_COMMON =-L$(libdir)
|
2017-01-09 13:41:11 +00:00
|
|
|
LIBADD_COMMON =
|
2016-12-31 15:20:52 +00:00
|
|
|
|
2017-10-18 16:15:51 +00:00
|
|
|
noinst_LTLIBRARIES =
|
2017-04-28 04:03:52 +00:00
|
|
|
|
2017-12-13 10:57:31 +00:00
|
|
|
if ENABLE_MOD_CON
|
|
|
|
noinst_LTLIBRARIES += libmoo-con.la
|
|
|
|
endif
|
2017-10-31 14:45:15 +00:00
|
|
|
|
2017-04-28 04:03:52 +00:00
|
|
|
if ENABLE_MOD_FFI
|
|
|
|
noinst_LTLIBRARIES += libmoo-ffi.la
|
|
|
|
endif
|
2017-10-18 16:15:51 +00:00
|
|
|
|
2019-10-24 09:37:47 +00:00
|
|
|
noinst_LTLIBRARIES += libmoo-io.la
|
|
|
|
|
2017-10-18 16:15:51 +00:00
|
|
|
if ENABLE_MOD_SCK
|
|
|
|
noinst_LTLIBRARIES += libmoo-sck.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libmoo-stdio.la
|
|
|
|
|
2017-04-28 04:03:52 +00:00
|
|
|
if ENABLE_MOD_X11
|
|
|
|
noinst_LTLIBRARIES += libmoo-x11.la
|
|
|
|
endif
|
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
|
2020-11-16 13:02:52 +00:00
|
|
|
LIBADD_COMMON = ../lib/libmoo.la
|
2016-11-18 18:11:13 +00:00
|
|
|
|
|
|
|
pkgmodexecdir = $(libdir)
|
2017-10-18 16:15:51 +00:00
|
|
|
pkgmodexec_LTLIBRARIES =
|
|
|
|
|
2017-12-13 10:57:31 +00:00
|
|
|
if ENABLE_MOD_CON
|
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-con.la
|
|
|
|
endif
|
2017-04-28 04:03:52 +00:00
|
|
|
|
|
|
|
if ENABLE_MOD_FFI
|
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-ffi.la
|
|
|
|
endif
|
2017-10-18 16:15:51 +00:00
|
|
|
|
2019-10-24 09:37:47 +00:00
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-io.la
|
|
|
|
|
2017-10-18 16:15:51 +00:00
|
|
|
if ENABLE_MOD_SCK
|
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-sck.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-stdio.la
|
|
|
|
|
2017-04-28 04:03:52 +00:00
|
|
|
if ENABLE_MOD_X11
|
|
|
|
pkgmodexec_LTLIBRARIES += libmoo-x11.la
|
|
|
|
endif
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2017-01-09 13:41:11 +00:00
|
|
|
endif
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2018-02-15 14:39:10 +00:00
|
|
|
if ENABLE_MOD_CON
|
2018-10-12 15:25:14 +00:00
|
|
|
libmoo_con_la_SOURCES = _con.c _con.h
|
2017-12-13 10:57:31 +00:00
|
|
|
libmoo_con_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_con_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libmoo_con_la_LIBADD = $(LIBADD_COMMON) $(TERMINAL_LIBS)
|
2018-02-21 09:35:59 +00:00
|
|
|
endif
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2017-04-28 04:03:52 +00:00
|
|
|
if ENABLE_MOD_FFI
|
2017-01-09 13:41:11 +00:00
|
|
|
libmoo_ffi_la_SOURCES = ffi.c _ffi.h
|
|
|
|
libmoo_ffi_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_ffi_la_LDFLAGS = $(LDFLAGS_COMMON)
|
2019-08-09 18:19:13 +00:00
|
|
|
libmoo_ffi_la_LIBADD = $(LIBADD_COMMON) $(DYNCALL_LIBS) $(FFI_LIBS)
|
2017-04-28 04:03:52 +00:00
|
|
|
endif
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2019-10-24 09:37:47 +00:00
|
|
|
libmoo_io_la_SOURCES = io.c io-file.c _io.h
|
|
|
|
libmoo_io_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_io_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libmoo_io_la_LIBADD = $(LIBADD_COMMON)
|
|
|
|
|
2017-10-18 16:15:51 +00:00
|
|
|
if ENABLE_MOD_SCK
|
2017-12-30 19:07:31 +00:00
|
|
|
libmoo_sck_la_SOURCES = sck.c sck-addr.c _sck.h
|
2017-10-18 16:15:51 +00:00
|
|
|
libmoo_sck_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_sck_la_LDFLAGS = $(LDFLAGS_COMMON)
|
2018-01-19 13:31:44 +00:00
|
|
|
libmoo_sck_la_LIBADD = $(LIBADD_COMMON) $(SOCKET_LIBS)
|
2017-10-18 16:15:51 +00:00
|
|
|
endif
|
|
|
|
|
2017-01-09 13:41:11 +00:00
|
|
|
libmoo_stdio_la_SOURCES = stdio.c _stdio.h
|
|
|
|
libmoo_stdio_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_stdio_la_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
libmoo_stdio_la_LIBADD = $(LIBADD_COMMON)
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2017-04-28 04:03:52 +00:00
|
|
|
if ENABLE_MOD_X11
|
2017-06-27 13:47:58 +00:00
|
|
|
libmoo_x11_la_SOURCES = x11.c _x11.h
|
2017-02-12 18:59:03 +00:00
|
|
|
libmoo_x11_la_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
libmoo_x11_la_LDFLAGS = $(LDFLAGS_COMMON)
|
2017-06-16 09:45:22 +00:00
|
|
|
libmoo_x11_la_LIBADD = $(LIBADD_COMMON) -lX11
|
2017-04-28 04:03:52 +00:00
|
|
|
endif
|