gnucash/lib/libqof/qof/Makefile.am
Christian Stimming 9285d7b575 Fix missing correct CPPFLAGS when compiling qofmath test program.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17722 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:40:02 +00:00

113 lines
2.4 KiB
Makefile

lib_LTLIBRARIES = libgnc-qof.la
libgnc_qof_la_LDFLAGS= -version-info $(LIBQOF_LIBRARY_VERSION)
libgnc_qof_la_LIBADD= \
$(GLIB_LIBS) \
$(REGEX_LIBS) \
$(top_builddir)/lib/libc/libc-missing.la
AM_CPPFLAGS = \
-I$(top_srcdir)/lib/libc \
$(GLIB_CFLAGS)
libgnc_qof_la_SOURCES = \
gnc-date.c \
gnc-numeric.c \
guid.c \
kvp_frame.c \
kvp-util.c \
md5.c \
qofbackend.c \
qofclass.c \
qofchoice.c \
qofid.c \
qofinstance.c \
qofquery.c \
qofbook.c \
qofevent.c \
qoflog.c \
qofobject.c \
qofquerycore.c \
qofreference.c \
qofutil.c \
qofsession.c \
qofbookmerge.c
qofincludedir = ${pkgincludedir}
qofinclude_HEADERS = \
gnc-date.h \
gnc-date-p.h \
gnc-numeric.h \
guid.h \
kvp_frame.h \
kvp-util.h \
kvp-util-p.h \
qof.h \
qofbackend.h \
qofbackend-p.h \
qofclass.h \
qofchoice.h \
qofevent.h \
qofgobj.h \
qofid.h \
qofid-p.h \
qofinstance-p.h \
qofinstance.h \
qofquery.h \
qofbook.h \
qoflog.h \
qofobject.h \
qofquerycore.h \
qofreference.h \
qofsession.h \
qofsql.h \
qofutil.h \
qofbookmerge.h \
qof-gobject.h
nodist_qofinclude_HEADERS = \
qofla-dir.h
noinst_HEADERS = \
md5.h \
qofclass-p.h \
qofmath128.h \
qofquery-p.h \
qofquery-deserial.h \
qofquery-serialize.h \
qofbook-p.h \
qofevent-p.h \
qofobject-p.h \
qofquerycore-p.h \
qofsession-p.h
EXTRA_DIST = \
qofla-dir.h.in \
qofmath128.c
if OS_WIN32
libgnc_qof_la_SOURCES += qof-win32.c
else
EXTRA_DIST += qof-win32.c
endif
qofla-dir.h: $(srcdir)/qofla-dir.h.in Makefile
rm -f $@.tmp
sed < $< > $@.tmp \
-e 's#@-libdir-@#${QOF_LIB_DIR}#g'
mv $@.tmp $@
BUILT_SOURCES = qofla-dir.h
CLEANFILES = $(BUILT_SOURCES)
## For testing the qofmath128 routines
# run "make check" (to build the test program) and then run test-qofmath
check_PROGRAMS = test-qofmath
test_qofmath_SOURCES=gnc-numeric.c
test_qofmath_CPPFLAGS=$(AM_CPPFLAGS) -DTEST_128_BIT_MULT
test_qofmath_LDFLAGS=$(libgnc_qof_la_LDFLAGS)
test_qofmath_LDADD=$(libgnc_qof_la_LIBADD)
INCLUDES = -DG_LOG_DOMAIN=\"qof\"