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 | |
---|
13 | CXXTEMPLFLAGS = --no-exceptions ## -fno-implicit-templates |
---|
14 | |
---|
15 | |
---|
16 | lib_LIBRARIES = libkernel.a libkernel_g.a |
---|
17 | |
---|
18 | |
---|
19 | libkernel_a_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
20 | libkernel_g_a_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
21 | ## -pedantic |
---|
22 | |
---|
23 | libkernel_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
24 | libkernel_g_a_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
25 | # -fdiagnostics-show-option |
---|
26 | |
---|
27 | libkernel_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
28 | #libkernel_g_a_CPPFLAGS = |
---|
29 | |
---|
30 | INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) $(FACTORY_CFLAGS) $(NTL_CFLAGS) |
---|
31 | |
---|
32 | SOURCES = polys.cc febase.cc feread.cc \ |
---|
33 | hdegree.cc hilb.cc hutil.cc \ |
---|
34 | gr_kstd2.cc \ |
---|
35 | ideals.cc \ |
---|
36 | khstd.cc kstdfac.cc \ |
---|
37 | kstd1.cc kstd2.cc kutil.cc \ |
---|
38 | misc.cc \ |
---|
39 | fast_maps.cc \ |
---|
40 | fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \ |
---|
41 | kspoly.cc kpolys.cc \ |
---|
42 | semic.cc \ |
---|
43 | syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \ |
---|
44 | timer.cc \ |
---|
45 | GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \ |
---|
46 | walkProc.cc walkMain.cc walkSupport.cc \ |
---|
47 | eigenval.cc units.cc \ |
---|
48 | fast_mult.cc digitech.cc \ |
---|
49 | tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc \ |
---|
50 | f5c.cc ratgring.cc shiftgb.cc gfan.cc \ |
---|
51 | linearAlgebra.cc nc.cc preimage.cc \ |
---|
52 | fegetopt.c kInline.h |
---|
53 | |
---|
54 | libkernel_a_SOURCES = $(SOURCES) |
---|
55 | libkernel_g_a_SOURCES = $(SOURCES) |
---|
56 | |
---|
57 | libkernel_a_includedir =${includedir}/kernel/ |
---|
58 | libkernel_g_a_includedir=${includedir}/kernel/ |
---|
59 | |
---|
60 | KERNELHEADERS = 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 | fegetopt.h \ |
---|
73 | ratgring.h shiftgb.h nc.h \ |
---|
74 | gfan.h preimage.h |
---|
75 | |
---|
76 | libkernel_a_include_HEADERS = $(KERNELHEADERS) |
---|
77 | libkernel_g_a_include_HEADERS = $(KERNELHEADERS) |
---|
78 | |
---|
79 | |
---|
80 | if ENABLE_FACTORY |
---|
81 | USE_FACTORY = -L${top_builddir}/factory |
---|
82 | else |
---|
83 | USE_FACTORY = |
---|
84 | endif |
---|
85 | |
---|
86 | 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 |
---|
87 | |
---|
88 | |
---|
89 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests' |
---|
90 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
91 | |
---|
92 | TESTS = testg testr |
---|
93 | check_PROGRAMS = $(TESTS) |
---|
94 | |
---|
95 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
96 | testg_CFLAGS = ${PIPE} |
---|
97 | |
---|
98 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
99 | testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
100 | |
---|
101 | testr_SOURCES = test.cc |
---|
102 | testg_SOURCES = test.cc |
---|
103 | |
---|
104 | testr_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
105 | testg_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
106 | |
---|
107 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
108 | #testg_CPPFLAGS = |
---|
109 | |
---|
110 | CLEANFILES = $(TESTS) |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | # noinst_HEADERS = |
---|
115 | |
---|