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