source: git/kernel/Makefile.am @ 44a76c

spielwiese
Last change on this file since 44a76c was 44a76c, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
static and dynamic tests for libkernel/ ADD: more test variants: static & dynamic in addition to debug & release (kernel) CHG: minor cleanup (TODO: separate!!!)
  • Property mode set to 100644
File size: 4.5 KB
Line 
1# ACLOCAL_AMFLAGS = -I ${top_srcdir}/m4
2
3# PIPE = -pipe
4# ???
5#LD_DYN_FLAGS   = -ldl -rdynamic
6#SFLAGS         = -fpic -DPIC
7#SLDFLAGS       = -shared
8#LD_LIBC                = -lc
9#STATIC_LDFLAGS = -static
10
11
12CXXTEMPLFLAGS = --no-exceptions ## -fno-implicit-templates
13
14libkernel_LTLIBRARIES = libkernel.la libkernel_g.la
15libkerneldir = $(libdir)/singular
16
17libkernel_la_CFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE}
18libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE}
19## -pedantic
20
21libkernel_la_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
22libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
23# -fdiagnostics-show-option
24
25libkernel_la_CPPFLAGS   = -DNDEBUG -DOM_NDEBUG
26#libkernel_g_la_CPPFLAGS =
27
28INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) $(FACTORY_CFLAGS) $(NTL_CFLAGS)
29
30SOURCES = polys.cc febase.cc feread.cc \
31    hdegree.cc hilb.cc hutil.cc \
32    gr_kstd2.cc \
33    ideals.cc \
34    khstd.cc kstdfac.cc \
35    kstd1.cc kstd2.cc kutil.cc \
36    misc.cc \
37    fast_maps.cc \
38    fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
39    kspoly.cc kpolys.cc \
40    syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \
41    timer.cc \
42    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
43    walkProc.cc walkMain.cc walkSupport.cc \
44    eigenval.cc units.cc \
45    fast_mult.cc digitech.cc \
46    tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \
47    ratgring.cc shiftgb.cc gfan.cc \
48    linearAlgebra.cc nc.cc preimage.cc \
49    fegetopt.c mod2.h
50
51libkernel_la_SOURCES   = $(SOURCES)
52libkernel_g_la_SOURCES = $(SOURCES)
53
54KERNELHEADERS = polys.h hutil.h stairc.h ideals.h \
55        structs.h \
56        syz.h \
57        fast_maps.h \
58        febase.h \
59        walkProc.h walkMain.h walkSupport.h\
60        kstdfac.h kmatrix.h\
61        kutil.h \
62        khstd.h kstd1.h \
63        fglm.h fglmgauss.h fglmvec.h \
64        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \
65        eigenval.h units.h \
66        fegetopt.h \
67        ratgring.h shiftgb.h nc.h \
68        gfan.h bbcone.h bbfan.h \
69        preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \
70        digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \
71        linearAlgebra.h page.h \
72        f5c.h f5data.h f5gb.h f5lists.h
73
74libkernel_includedir  =${includedir}/singular/kernel/
75libkernel_include_HEADERS   = $(KERNELHEADERS)
76
77if ENABLE_FACTORY
78  USE_FACTORY = -L${top_builddir}/factory
79else
80  USE_FACTORY =
81endif
82
83AM_LDFLAGS = -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/resources -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc
84
85
86TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/tests/MOD:${abs_top_builddir}/libpolys/tests/gftables'
87TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
88
89TESTS = test-s-g test-s-r test-d-g test-d-r
90check_PROGRAMS = $(TESTS)
91
92test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
93test_s_g_CFLAGS = ${PIPE}
94
95test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
96test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
97
98testsources = test.cc
99test_s_r_SOURCES = $(testsources)
100test_s_g_SOURCES = $(testsources)
101
102test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
103test_s_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
104
105test_s_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
106#test_s_g_CPPFLAGS =
107
108test_s_r_LDFLAGS = -static
109test_s_g_LDFLAGS = -static
110
111
112test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
113test_d_g_CFLAGS = ${PIPE}
114
115test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
116test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
117
118test_d_r_SOURCES = $(testsources)
119test_d_g_SOURCES = $(testsources)
120
121test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
122test_d_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
123
124test_d_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
125#test_d_g_CPPFLAGS =
126
127
128CLEANFILES = $(TESTS)
129
130
131
Note: See TracBrowser for help on using the repository browser.