[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 | |
---|
[ebf138] | 12 | CXXTEMPLFLAGS = ## -fno-implicit-templates |
---|
[3aea08] | 13 | |
---|
[6d672b4] | 14 | libkernel_LTLIBRARIES = libkernel.la libkernel_g.la |
---|
[c2eb2e] | 15 | libkerneldir = $(libdir)/singular |
---|
[3aea08] | 16 | |
---|
[6d672b4] | 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} |
---|
[3aea08] | 19 | ## -pedantic |
---|
| 20 | |
---|
[ebf138] | 21 | libkernel_la_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[6d672b4] | 22 | libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[3aea08] | 23 | # -fdiagnostics-show-option |
---|
| 24 | |
---|
[1d3be3] | 25 | libkernel_la_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 26 | libkernel_g_la_CPPFLAGS = -DHAVE_CONFIG_H |
---|
[3aea08] | 27 | |
---|
[b7d64b] | 28 | INCLUDES = -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) |
---|
[3aea08] | 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 \ |
---|
[44a76c] | 46 | tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \ |
---|
| 47 | ratgring.cc shiftgb.cc gfan.cc \ |
---|
[3aea08] | 48 | linearAlgebra.cc nc.cc preimage.cc \ |
---|
[bd795d] | 49 | mod2.h |
---|
[3aea08] | 50 | |
---|
[6d672b4] | 51 | libkernel_la_SOURCES = $(SOURCES) |
---|
| 52 | libkernel_g_la_SOURCES = $(SOURCES) |
---|
[3aea08] | 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 \ |
---|
[d44785] | 64 | GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \ |
---|
[3aea08] | 65 | eigenval.h units.h \ |
---|
| 66 | ratgring.h shiftgb.h nc.h \ |
---|
[50831b] | 67 | gfan.h bbcone.h bbfan.h \ |
---|
| 68 | preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \ |
---|
[c2eb2e] | 69 | digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \ |
---|
[44a76c] | 70 | linearAlgebra.h page.h \ |
---|
| 71 | f5c.h f5data.h f5gb.h f5lists.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 | |
---|
[8fee84] | 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 -L${top_builddir}/findexec |
---|
[3aea08] | 83 | |
---|
| 84 | |
---|
[9840b5] | 85 | ### TODO: the following has to be addapted... |
---|
| 86 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables' |
---|
| 87 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
[3aea08] | 88 | |
---|
[44a76c] | 89 | TESTS = test-s-g test-s-r test-d-g test-d-r |
---|
[3aea08] | 90 | check_PROGRAMS = $(TESTS) |
---|
| 91 | |
---|
[44a76c] | 92 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 93 | test_s_g_CFLAGS = ${PIPE} |
---|
[3aea08] | 94 | |
---|
[ebf138] | 95 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[44a76c] | 96 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[3aea08] | 97 | |
---|
[44a76c] | 98 | testsources = test.cc |
---|
| 99 | test_s_r_SOURCES = $(testsources) |
---|
| 100 | test_s_g_SOURCES = $(testsources) |
---|
[3aea08] | 101 | |
---|
[8fee84] | 102 | test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(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 -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[44a76c] | 104 | |
---|
[1d3be3] | 105 | test_s_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 106 | test_s_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|
[44a76c] | 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 | |
---|
[ebf138] | 115 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[44a76c] | 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 | |
---|
[8fee84] | 121 | test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(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 -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[44a76c] | 123 | |
---|
[1d3be3] | 124 | test_d_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 125 | test_d_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|
[3aea08] | 126 | |
---|
| 127 | |
---|
[48afda] | 128 | |
---|
| 129 | # These files are built first |
---|
[9840b5] | 130 | # BUILT_SOURCES = MOD |
---|
[3aea08] | 131 | |
---|
[9840b5] | 132 | # MOD: ${top_builddir}/libpolys/tests/MOD |
---|
| 133 | # ln -snf ${top_builddir}/libpolys/tests/MOD ${builddir}/MOD |
---|
[3aea08] | 134 | |
---|
| 135 | |
---|
[9840b5] | 136 | CLEANFILES = $(TESTS) |
---|
| 137 | # $(BUILT_SOURCES) |
---|