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