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