mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
38 lines
748 B
Makefile
38 lines
748 B
Makefile
AM_CPPFLAGS=\
|
|
-I${top_srcdir}/common \
|
|
-I${top_srcdir}/libgnucash/gnc-module \
|
|
${GUILE_CFLAGS} \
|
|
${GLIB_CFLAGS}
|
|
|
|
PWD := $(shell pwd)
|
|
check_LTLIBRARIES=libfoo.la libgncmodfoo.la
|
|
|
|
libfoo_la_SOURCES = foo.c
|
|
libfoo_la_LDFLAGS = -rpath ${PWD}
|
|
|
|
# Make swig-foo.c for dist. It is an automatic dependency
|
|
# of gnc-mod-foo.c
|
|
noinst_HEADERS = \
|
|
foo.h \
|
|
swig-foo.c
|
|
|
|
libgncmodfoo_la_SOURCES = gnc-mod-foo.c
|
|
libgncmodfoo_la_LDFLAGS = -rpath ${PWD} -avoid-version
|
|
libgncmodfoo_la_LIBADD = \
|
|
libfoo.la \
|
|
$(GUILE_LIBS) \
|
|
$(GLIB_LIBS)
|
|
|
|
EXTRA_DIST = \
|
|
foo.i \
|
|
gnucash/foo.scm \
|
|
CMakeLists.txt
|
|
|
|
if BUILDING_FROM_VCS
|
|
swig-foo.c: foo.i
|
|
$(SWIG) -guile -Linkage module -o $@ $<
|
|
endif
|
|
|
|
BUILT_SOURCES = swig-foo.c
|
|
MAINTAINERCLEANFILES = swig-foo.c
|