moo/mod/Makefile.am

110 lines
2.5 KiB
Makefile
Raw Permalink Normal View History

AUTOMAKE_OPTIONS = nostdinc
2016-12-31 15:20:52 +00:00
CPPFLAGS_COMMON = \
-I$(abs_builddir) \
2016-12-31 15:20:52 +00:00
-I$(abs_builddir)/../lib \
-I$(abs_srcdir) \
-I$(abs_srcdir)/../lib \
-I$(includedir)
if ENABLE_STATIC_MODULE
##################################################
# STATIC MODULES BUILT INTO MAIN LIBRARY
##################################################
2020-12-04 09:41:32 +00:00
LDFLAGS_COMMON =-L$(libdir)
LIBADD_COMMON =
2016-12-31 15:20:52 +00:00
noinst_LTLIBRARIES =
if ENABLE_MOD_CON
noinst_LTLIBRARIES += libmoo-con.la
endif
if ENABLE_MOD_FFI
noinst_LTLIBRARIES += libmoo-ffi.la
endif
2019-10-24 09:37:47 +00:00
noinst_LTLIBRARIES += libmoo-io.la
if ENABLE_MOD_SCK
noinst_LTLIBRARIES += libmoo-sck.la
endif
noinst_LTLIBRARIES += libmoo-stdio.la
if ENABLE_MOD_X11
noinst_LTLIBRARIES += libmoo-x11.la
endif
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 = ../lib/libmoo.la
pkgmodexecdir = $(libdir)
pkgmodexec_LTLIBRARIES =
if ENABLE_MOD_CON
pkgmodexec_LTLIBRARIES += libmoo-con.la
endif
if ENABLE_MOD_FFI
pkgmodexec_LTLIBRARIES += libmoo-ffi.la
endif
2019-10-24 09:37:47 +00:00
pkgmodexec_LTLIBRARIES += libmoo-io.la
if ENABLE_MOD_SCK
pkgmodexec_LTLIBRARIES += libmoo-sck.la
endif
pkgmodexec_LTLIBRARIES += libmoo-stdio.la
if ENABLE_MOD_X11
pkgmodexec_LTLIBRARIES += libmoo-x11.la
endif
endif
2018-02-15 14:39:10 +00:00
if ENABLE_MOD_CON
libmoo_con_la_SOURCES = _con.c _con.h
libmoo_con_la_CPPFLAGS = $(CPPFLAGS_COMMON)
libmoo_con_la_LDFLAGS = $(LDFLAGS_COMMON)
libmoo_con_la_LIBADD = $(LIBADD_COMMON) $(TERMINAL_LIBS)
endif
if ENABLE_MOD_FFI
libmoo_ffi_la_SOURCES = ffi.c _ffi.h
libmoo_ffi_la_CPPFLAGS = $(CPPFLAGS_COMMON)
libmoo_ffi_la_LDFLAGS = $(LDFLAGS_COMMON)
libmoo_ffi_la_LIBADD = $(LIBADD_COMMON) $(DYNCALL_LIBS) $(FFI_LIBS)
endif
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)
if ENABLE_MOD_SCK
libmoo_sck_la_SOURCES = sck.c sck-addr.c _sck.h
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)
endif
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)
if ENABLE_MOD_X11
libmoo_x11_la_SOURCES = x11.c _x11.h
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
endif