[868a38] | 1 | # ACLOCAL_AMFLAGS = -I ${top_srcdir}/m4 |
---|
| 2 | |
---|
[3aea08] | 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 | |
---|
[c2eb2e] | 14 | libkernel_LIBRARIES = libkernel.a libkernel_g.a |
---|
| 15 | libkerneldir = $(libdir)/singular |
---|
[3aea08] | 16 | |
---|
| 17 | libkernel_a_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} |
---|
| 18 | libkernel_g_a_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} |
---|
| 19 | ## -pedantic |
---|
| 20 | |
---|
| 21 | libkernel_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 22 | libkernel_g_a_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 23 | # -fdiagnostics-show-option |
---|
| 24 | |
---|
[d44785] | 25 | libkernel_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
| 26 | #libkernel_g_a_CPPFLAGS = |
---|
[3aea08] | 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 | semic.cc \ |
---|
| 41 | syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \ |
---|
| 42 | timer.cc \ |
---|
| 43 | GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \ |
---|
| 44 | walkProc.cc walkMain.cc walkSupport.cc \ |
---|
| 45 | eigenval.cc units.cc \ |
---|
| 46 | fast_mult.cc digitech.cc \ |
---|
| 47 | tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc \ |
---|
| 48 | f5c.cc ratgring.cc shiftgb.cc gfan.cc \ |
---|
| 49 | linearAlgebra.cc nc.cc preimage.cc \ |
---|
[0ff203] | 50 | fegetopt.c mod2.h |
---|
[3aea08] | 51 | |
---|
| 52 | libkernel_a_SOURCES = $(SOURCES) |
---|
| 53 | libkernel_g_a_SOURCES = $(SOURCES) |
---|
| 54 | |
---|
| 55 | KERNELHEADERS = polys.h hutil.h stairc.h ideals.h \ |
---|
| 56 | structs.h \ |
---|
| 57 | syz.h \ |
---|
| 58 | fast_maps.h \ |
---|
| 59 | febase.h \ |
---|
| 60 | walkProc.h walkMain.h walkSupport.h\ |
---|
| 61 | kstdfac.h kmatrix.h\ |
---|
| 62 | kutil.h \ |
---|
| 63 | khstd.h kstd1.h \ |
---|
| 64 | fglm.h fglmgauss.h fglmvec.h \ |
---|
[d44785] | 65 | GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \ |
---|
[3aea08] | 66 | eigenval.h units.h \ |
---|
| 67 | fegetopt.h \ |
---|
| 68 | ratgring.h shiftgb.h nc.h \ |
---|
[0ff203] | 69 | gfan.h preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \ |
---|
[c2eb2e] | 70 | digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \ |
---|
| 71 | linearAlgebra.h page.h |
---|
[3aea08] | 72 | |
---|
[c2eb2e] | 73 | libkernel_includedir =${includedir}/singular/kernel/ |
---|
| 74 | libkernel_include_HEADERS = $(KERNELHEADERS) |
---|
[3aea08] | 75 | |
---|
| 76 | if ENABLE_FACTORY |
---|
| 77 | USE_FACTORY = -L${top_builddir}/factory |
---|
| 78 | else |
---|
| 79 | USE_FACTORY = |
---|
| 80 | endif |
---|
| 81 | |
---|
| 82 | 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 |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests' |
---|
| 86 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
| 87 | |
---|
| 88 | TESTS = testg testr |
---|
| 89 | check_PROGRAMS = $(TESTS) |
---|
| 90 | |
---|
| 91 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 92 | testg_CFLAGS = ${PIPE} |
---|
| 93 | |
---|
| 94 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 95 | testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 96 | |
---|
[c2eb2e] | 97 | testsources = test.cc f5c.h f5data.h f5gb.h f5lists.h |
---|
| 98 | testr_SOURCES = $(testsources) |
---|
| 99 | testg_SOURCES = $(testsources) |
---|
[3aea08] | 100 | |
---|
| 101 | testr_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 102 | testg_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 103 | |
---|
[d44785] | 104 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
| 105 | #testg_CPPFLAGS = |
---|
[3aea08] | 106 | |
---|
| 107 | CLEANFILES = $(TESTS) |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | |
---|