2008-10-25 20:30:47 +00:00
|
|
|
AM_CPPFLAGS = \
|
2017-08-10 13:56:00 +02:00
|
|
|
-I${top_srcdir}/common \
|
|
|
|
|
-I${top_srcdir}/libgnucash/gnc-module \
|
2013-11-13 15:51:24 +00:00
|
|
|
${GUILE_CFLAGS} \
|
2001-10-10 23:27:01 +00:00
|
|
|
${GLIB_CFLAGS}
|
2001-08-08 11:11:54 +00:00
|
|
|
|
2003-08-10 19:28:42 +00:00
|
|
|
PWD := $(shell pwd)
|
2006-12-27 02:51:03 +00:00
|
|
|
check_LTLIBRARIES = libbar.la libgncmodbar.la
|
2001-08-07 23:29:04 +00:00
|
|
|
|
|
|
|
|
libbar_la_SOURCES = bar.c
|
2006-12-27 02:51:03 +00:00
|
|
|
libbar_la_LDFLAGS = -rpath ${PWD}
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
# Make swig-bar.c for dist. It is an automatic dependency
|
|
|
|
|
# of gnc-mod-bar.c
|
2003-01-20 17:11:50 +00:00
|
|
|
noinst_HEADERS = \
|
2006-10-15 19:02:05 +00:00
|
|
|
bar.h \
|
|
|
|
|
swig-bar.c
|
2001-08-21 09:54:17 +00:00
|
|
|
|
2006-07-25 13:25:26 +00:00
|
|
|
libgncmodbar_la_SOURCES=gnc-mod-bar.c
|
2008-01-05 14:05:04 +00:00
|
|
|
libgncmodbar_la_LDFLAGS=-rpath ${PWD} -avoid-version
|
2006-03-13 15:20:02 +00:00
|
|
|
libgncmodbar_la_LIBADD=libbar.la \
|
2006-10-18 18:15:32 +00:00
|
|
|
$(GUILE_LIBS) \
|
2006-03-13 15:20:02 +00:00
|
|
|
$(GLIB_LIBS)
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2015-03-30 22:13:41 +02:00
|
|
|
if BUILDING_FROM_VCS
|
2006-10-15 19:02:05 +00:00
|
|
|
swig-bar.c: bar.i
|
2013-12-14 16:40:42 +00:00
|
|
|
$(SWIG) -guile $(SWIG_ARGS) -Linkage module -o $@ $<
|
2014-01-22 15:48:15 +00:00
|
|
|
if ! OS_WIN32
|
2014-01-23 21:20:37 +00:00
|
|
|
if ! SWIG_DIST_FAIL
|
2013-12-13 20:22:01 +00:00
|
|
|
if ! `grep "define scm_from_utf8_string" $@ > /dev/null 2>&1`; then \
|
2017-08-10 13:56:00 +02:00
|
|
|
patch $@ $(top_srcdir)/common/swig-utf8.patch; \
|
2013-12-13 20:22:01 +00:00
|
|
|
fi
|
2006-10-15 19:02:05 +00:00
|
|
|
endif
|
2014-01-22 15:48:15 +00:00
|
|
|
endif
|
2014-01-23 21:20:37 +00:00
|
|
|
endif
|
2006-10-15 19:02:05 +00:00
|
|
|
|
2001-08-23 21:17:32 +00:00
|
|
|
EXTRA_DIST = \
|
2006-10-15 19:02:05 +00:00
|
|
|
bar.i \
|
2017-07-10 20:06:31 +02:00
|
|
|
gnucash/bar.scm \
|
|
|
|
|
CMakeLists.txt
|
2001-08-21 09:54:17 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
BUILT_SOURCES = swig-bar.c
|
|
|
|
|
MAINTAINERCLEANFILES = swig-bar.c
|