mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
It is split into - /libgnucash (for the non-gui bits) - /gnucash (for the gui) - /common (misc source files used by both) - /bindings (currently only holds python bindings) This is the first step in restructuring the code. It will need much more fine tuning later on.
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
AM_CPPFLAGS = \
|
|
-I${top_srcdir}/common \
|
|
-I${top_srcdir}/libgnucash/gnc-module \
|
|
-I${top_srcdir}/libgnucash/gnc-module/test/mod-foo \
|
|
${GLIB_CFLAGS} \
|
|
${GUILE_CFLAGS}
|
|
|
|
PWD := $(shell pwd)
|
|
check_LTLIBRARIES = libbaz.la libgncmodbaz.la
|
|
|
|
libbaz_la_SOURCES = baz.c
|
|
libbaz_la_LDFLAGS = -rpath ${PWD}
|
|
libbaz_la_LIBADD = ../mod-foo/libfoo.la
|
|
|
|
# Make swig-baz.c for dist. It is an automatic dependency
|
|
# of gnc-mod-baz.c
|
|
noinst_HEADERS = \
|
|
baz.h \
|
|
swig-baz.c
|
|
|
|
libgncmodbaz_la_SOURCES = gnc-mod-baz.c
|
|
libgncmodbaz_la_LDFLAGS = -rpath ${PWD} -avoid-version
|
|
libgncmodbaz_la_LIBADD = \
|
|
libbaz.la \
|
|
../../libgnc-module.la \
|
|
$(GUILE_LIBS) \
|
|
$(GLIB_LIBS)
|
|
|
|
if BUILDING_FROM_VCS
|
|
swig-baz.c: baz.i
|
|
$(SWIG) -guile $(SWIG_ARGS) -Linkage module -o $@ $<
|
|
if ! OS_WIN32
|
|
if ! SWIG_DIST_FAIL
|
|
if ! `grep "define scm_from_utf8_string" $@ > /dev/null 2>&1`; then \
|
|
patch $@ $(top_srcdir)/common/swig-utf8.patch; \
|
|
fi
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
EXTRA_DIST = \
|
|
baz.i \
|
|
gnucash/baz.scm \
|
|
CMakeLists.txt
|
|
|
|
BUILT_SOURCES = swig-baz.c
|
|
MAINTAINERCLEANFILES = swig-baz.c
|