1 | ACLOCAL_AMFLAGS = -I ../m4 |
---|
2 | # TODO: use ${top_srcdir} instead of .. in the above? |
---|
3 | |
---|
4 | # PIPE = -pipe |
---|
5 | # ??? |
---|
6 | #LD_DYN_FLAGS = -ldl -rdynamic |
---|
7 | #SFLAGS = -fpic -DPIC |
---|
8 | #SLDFLAGS = -shared |
---|
9 | #LD_LIBC = -lc |
---|
10 | #STATIC_LDFLAGS = -static |
---|
11 | |
---|
12 | |
---|
13 | # CXXTEMPLFLAGS =-ftrapv ## -fno-implicit-templates |
---|
14 | # |
---|
15 | # if WANT_DEBUG |
---|
16 | # LIB_G=libkernel_g.la |
---|
17 | # else |
---|
18 | # LIB_G= |
---|
19 | # endif |
---|
20 | |
---|
21 | libkernel_LTLIBRARIES = libkernel.la |
---|
22 | # ${LIB_G} |
---|
23 | libkerneldir = $(libdir)/singular |
---|
24 | |
---|
25 | #libkernel_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
26 | #libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
27 | ## -pedantic |
---|
28 | |
---|
29 | #libkernel_la_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
30 | #libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
31 | # -fdiagnostics-show-option |
---|
32 | |
---|
33 | AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) -I${top_srcdir}/factory/include -I${top_builddir}/factory/include $(FACTORY_CFLAGS) $(NTL_CFLAGS) -DHAVE_CONFIG_H |
---|
34 | |
---|
35 | # libkernel_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
36 | # libkernel_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
37 | |
---|
38 | ### libkernel_la_LDFLAGS = -release ${PACKAGE_VERSION} |
---|
39 | |
---|
40 | |
---|
41 | SOURCES = polys.cc febase.cc feread.cc \ |
---|
42 | hdegree.cc hilb.cc hutil.cc \ |
---|
43 | ideals.cc \ |
---|
44 | khstd.cc kstdfac.cc \ |
---|
45 | kstd1.cc kstd2.cc kutil.cc \ |
---|
46 | nc.cc sca.cc gr_kstd2.cc \ |
---|
47 | misc.cc \ |
---|
48 | fast_maps.cc \ |
---|
49 | fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \ |
---|
50 | kspoly.cc kpolys.cc \ |
---|
51 | syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \ |
---|
52 | timer.cc \ |
---|
53 | GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \ |
---|
54 | walkProc.cc walkMain.cc walkSupport.cc \ |
---|
55 | eigenval.cc units.cc \ |
---|
56 | fast_mult.cc digitech.cc \ |
---|
57 | tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \ |
---|
58 | ratgring.cc shiftgb.cc \ |
---|
59 | linearAlgebra.cc preimage.cc \ |
---|
60 | mod2.h |
---|
61 | |
---|
62 | libkernel_la_SOURCES = $(SOURCES) |
---|
63 | # libkernel_g_la_SOURCES = $(SOURCES) |
---|
64 | |
---|
65 | KERNELHEADERS = mod2.h polys.h hutil.h stairc.h ideals.h \ |
---|
66 | structs.h \ |
---|
67 | syz.h \ |
---|
68 | fast_maps.h \ |
---|
69 | febase.h \ |
---|
70 | walkProc.h walkMain.h walkSupport.h\ |
---|
71 | kstdfac.h kmatrix.h\ |
---|
72 | kutil.h \ |
---|
73 | khstd.h kstd1.h \ |
---|
74 | fglm.h fglmgauss.h fglmvec.h \ |
---|
75 | GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \ |
---|
76 | eigenval.h units.h \ |
---|
77 | ratgring.h shiftgb.h nc.h \ |
---|
78 | preimage.h timer.h kInline.h fast_mult.h \ |
---|
79 | digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \ |
---|
80 | linearAlgebra.h \ |
---|
81 | f5c.h f5data.h f5gb.h f5lists.h |
---|
82 | |
---|
83 | libkernel_includedir =${includedir}/singular/kernel/ |
---|
84 | libkernel_include_HEADERS = $(KERNELHEADERS) |
---|
85 | |
---|
86 | if ENABLE_FACTORY |
---|
87 | USE_FACTORY = -L${top_builddir}/factory |
---|
88 | else |
---|
89 | USE_FACTORY = |
---|
90 | endif |
---|
91 | |
---|
92 | AM_LDFLAGS = -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/resources |
---|
93 | |
---|
94 | |
---|
95 | ### TODO: the following has to be addapted... |
---|
96 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables' |
---|
97 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
98 | |
---|
99 | # if WANT_DEBUG |
---|
100 | # TESTS = test-s-g test-s-r test-d-g test-d-r |
---|
101 | # else |
---|
102 | TESTS = test-s-r test-d-r |
---|
103 | # endif |
---|
104 | check_PROGRAMS = $(TESTS) |
---|
105 | |
---|
106 | # test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
107 | # test_s_g_CFLAGS = ${PIPE} |
---|
108 | # |
---|
109 | # test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
110 | # test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
111 | |
---|
112 | testsources = test.cc |
---|
113 | test_s_r_SOURCES = $(testsources) |
---|
114 | # test_s_g_SOURCES = $(testsources) |
---|
115 | |
---|
116 | test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lresources $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
117 | # test_s_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lresources_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
118 | |
---|
119 | # test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
120 | # test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
121 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} |
---|
122 | |
---|
123 | test_s_r_LDFLAGS = -static ${AM_LDFLAGS} |
---|
124 | # test_s_g_LDFLAGS = -static ${AM_LDFLAGS} |
---|
125 | |
---|
126 | |
---|
127 | # test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
128 | # test_d_g_CFLAGS = ${PIPE} |
---|
129 | # |
---|
130 | # test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
131 | # test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
132 | |
---|
133 | test_d_r_SOURCES = $(testsources) |
---|
134 | # test_d_g_SOURCES = $(testsources) |
---|
135 | |
---|
136 | test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lresources $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
137 | # test_d_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lresources_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
138 | |
---|
139 | # test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
140 | # test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
141 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} |
---|
142 | |
---|
143 | test_d_r_LDFLAGS = ${AM_LDFLAGS} |
---|
144 | # test_d_g_LDFLAGS = ${AM_LDFLAGS} |
---|
145 | |
---|
146 | # These files are built first |
---|
147 | # BUILT_SOURCES = MOD |
---|
148 | |
---|
149 | # MOD: ${top_builddir}/libpolys/tests/MOD |
---|
150 | # ln -snf ${top_builddir}/libpolys/tests/MOD ${builddir}/MOD |
---|
151 | |
---|
152 | |
---|
153 | CLEANFILES = $(TESTS) |
---|
154 | # $(BUILT_SOURCES) |
---|