From 56e191652350ccd7bdf89c6fee95f5809756bbf4 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 28 Nov 2001 22:24:48 +0000 Subject: [PATCH] * src/core-utils/Makefile.am: accomodate new g-wrappers. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6096 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/core-utils/Makefile.am | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/src/core-utils/Makefile.am b/src/core-utils/Makefile.am index 241f10eed3..b1710b44a0 100644 --- a/src/core-utils/Makefile.am +++ b/src/core-utils/Makefile.am @@ -1,12 +1,35 @@ -lib_LTLIBRARIES = libcore-utils.la +lib_LTLIBRARIES = libcore-utils.la libgw-core-utils.la + +gwmoddir = ${GNC_GWRAP_LIBDIR} +gwmod_DATA = gw-core-utils-spec.scm gw-core-utils.scm -libcore_utils_la_LDFLAGS = -module -libcore_utils_la_LIBADD = libcore_utils_la_SOURCES = core-utils.c +libcore_utils_la_LDFLAGS = -module ${GLIB_LIBS} +libcore_utils_la_LIBADD = -noinst_HEADERS = core-utils.h +libgw_core_utils_la_SOURCES = gw-core-utils.c +libgw_core_utils_la_LDFLAGS = -module ${G_WRAP_LINK_ARGS} ${GUILE_LIBS} +libgw_core_utils_la_LIBADD = libcore-utils.la + +noinst_HEADERS = core-utils.h gw-core-utils.h EXTRA_DIST = .cvsignore -AM_CFLAGS = ${GLIB_CFLAGS} +AM_CFLAGS = ${G_WRAP_COMPILE_ARGS} ${GLIB_CFLAGS} ${GUILE_INCS} + +.scm-links: + rm -f gnucash g-wrapped + ln -sf . gnucash + ln -sf . g-wrapped + touch .scm-links +DISTCLEANFILES = .scm-links gnucash g-wrapped + +gw-core-utils.scm gw-core-utils.h gw-core-utils.c gw-core-utils.html: \ + gw-core-utils-spec.scm .scm-links + FLAVOR=gnome guile -c \ + "(set! %load-path (cons \"${G_WRAP_MODULE_DIR}\" %load-path)) \ + (primitive-load \"./gw-core-utils-spec.scm\") \ + (gw:generate-module \"gw-core-utils\")" +BUILT_SOURCES = gw-core-utils.scm gw-core-utils.h gw-core-utils.c +CLEANFILES = gw-core-utils.scm gw-core-utils.h gw-core-utils.c