source: git/kernel/Makefile.am

spielwiese
Last change on this file was d459ab, checked in by Michael Orlitzky <michael@…>, 6 weeks ago
**/Makefile.am: links tests with RESOURCES_LIBS (#1211) Several test programs use functions from libsingular_resources, such as feInitResources(). Here we ensure that those test programs are actually linked with libsingular_resources by adding RESOURCES_LIBS to the corresponding LDADD lines. In the process, and for consistency, we have replaced some references to libomalloc.la with OMALLOC_LIBS.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3noinst_LTLIBRARIES = libkernelCommon.la libkernel.la
4
5AM_CPPFLAGS = \
6-I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
7$(FACTORY_INCLUDES) $(NTL_CXXFLAGS) ${NTL_CPPFLAGS} ${FLINT_CFLAGS} $(GMP_CPPFLAGS)
8
9SOURCES = polys.cc \
10    ideals.cc \
11    fast_mult.cc digitech.cc \
12    preimage.cc \
13    mod2.h
14
15libkernelCommon_la_SOURCES  = $(SOURCES)
16libkernelCommon_la_LIBADD   = ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} \
17${abs_top_builddir}/libpolys/polys/libpolys.la
18libkernelCommon_la_LDFLAGS = $(SINGULAR_LDFLAGS)
19
20###### libkerneldir = $(libdir)/singular
21
22KERNELHEADERS = mod2.h structs.h polys.h ideals.h \
23        preimage.h fast_mult.h digitech.h
24
25libkernel_la_SOURCES=$(KERNELHEADERS)
26libkernel_la_LDFLAGS = $(SINGULAR_LDFLAGS)
27
28libkernel_la_includedir=${includedir}/singular/kernel
29libkernel_la_include_HEADERS=$(KERNELHEADERS)
30
31SUBDIRS=numeric fglm groebner_walk combinatorics spectrum linear_algebra maps GBEngine oswrapper
32
33libkernel_la_LIBADD   = \
34${builddir}/numeric/libnumeric.la \
35${builddir}/fglm/libfglm.la \
36${builddir}/groebner_walk/libgroebner_walk.la \
37${builddir}/combinatorics/libcombinatorics.la \
38${builddir}/spectrum/libspectrum.la \
39${builddir}/linear_algebra/liblinear_algebra.la \
40${builddir}/maps/libmaps.la \
41${builddir}/GBEngine/libGBEngine.la \
42${builddir}/oswrapper/liboswrapper.la \
43${builddir}/libkernelCommon.la
44
45### TODO: the following has to be adapted...
46TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables'
47TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
48
49TESTS = test
50
51check_PROGRAMS = $(TESTS)
52
53test_SOURCES = test.cc
54test_LDADD   = libkernel.la $(OMALLOC_LIBS) ${builddir}/../Singular/libSingular.la $(RESOURCES_LIBS)
55
56# These files are built first
57# BUILT_SOURCES = MOD
58
59# MOD: ${top_builddir}/libpolys/tests/MOD
60#       ln -snf ${top_builddir}/libpolys/tests/MOD ${builddir}/MOD
61
62
63CLEANFILES = $(TESTS)
64# $(BUILT_SOURCES)
65
66
Note: See TracBrowser for help on using the repository browser.