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 = --no-exceptions ## -fno-implicit-templates |
---|
13 | |
---|
14 | libkernel_LTLIBRARIES = libkernel.la libkernel_g.la |
---|
15 | libkerneldir = $(libdir)/singular |
---|
16 | |
---|
17 | libkernel_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
18 | libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
19 | ## -pedantic |
---|
20 | |
---|
21 | libkernel_la_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
22 | libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
23 | # -fdiagnostics-show-option |
---|
24 | |
---|
25 | libkernel_la_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
26 | libkernel_g_la_CPPFLAGS = -DHAVE_CONFIG_H |
---|
27 | |
---|
28 | INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) $(FACTORY_CFLAGS) $(NTL_CFLAGS) |
---|
29 | |
---|
30 | SOURCES = 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 | |
---|
51 | libkernel_la_SOURCES = $(SOURCES) |
---|
52 | libkernel_g_la_SOURCES = $(SOURCES) |
---|
53 | |
---|
54 | KERNELHEADERS = 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 | |
---|
74 | libkernel_includedir =${includedir}/singular/kernel/ |
---|
75 | libkernel_include_HEADERS = $(KERNELHEADERS) |
---|
76 | |
---|
77 | if ENABLE_FACTORY |
---|
78 | USE_FACTORY = -L${top_builddir}/factory |
---|
79 | else |
---|
80 | USE_FACTORY = |
---|
81 | endif |
---|
82 | |
---|
83 | 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/resources -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc |
---|
84 | |
---|
85 | |
---|
86 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/tests/MOD:${abs_top_builddir}/libpolys/tests/gftables' |
---|
87 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
88 | |
---|
89 | TESTS = test-s-g test-s-r test-d-g test-d-r |
---|
90 | check_PROGRAMS = $(TESTS) |
---|
91 | |
---|
92 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
93 | test_s_g_CFLAGS = ${PIPE} |
---|
94 | |
---|
95 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
96 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
97 | |
---|
98 | testsources = test.cc |
---|
99 | test_s_r_SOURCES = $(testsources) |
---|
100 | test_s_g_SOURCES = $(testsources) |
---|
101 | |
---|
102 | test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
103 | test_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 | |
---|
105 | test_s_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
106 | test_s_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|
107 | |
---|
108 | test_s_r_LDFLAGS = -static |
---|
109 | test_s_g_LDFLAGS = -static |
---|
110 | |
---|
111 | |
---|
112 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
113 | test_d_g_CFLAGS = ${PIPE} |
---|
114 | |
---|
115 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
116 | test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
117 | |
---|
118 | test_d_r_SOURCES = $(testsources) |
---|
119 | test_d_g_SOURCES = $(testsources) |
---|
120 | |
---|
121 | test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
122 | test_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 | |
---|
124 | test_d_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
125 | test_d_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|
126 | |
---|
127 | |
---|
128 | CLEANFILES = $(TESTS) |
---|
129 | |
---|
130 | |
---|
131 | |
---|