[151a06] | 1 | # PIPE = -pipe |
---|
| 2 | # ??? |
---|
| 3 | #LD_DYN_FLAGS = -ldl -rdynamic |
---|
| 4 | #SFLAGS = -fpic -DPIC |
---|
| 5 | #SLDFLAGS = -shared |
---|
| 6 | #LD_LIBC = -lc |
---|
| 7 | #STATIC_LDFLAGS = -static |
---|
| 8 | |
---|
[dd156fc] | 9 | WARNCFLAGS = -Wunused-parameter |
---|
| 10 | # clang has also: -Wunneeded-internal-declaration |
---|
[151a06] | 11 | |
---|
[dd156fc] | 12 | NODEBUGCFLAGS = -O3 -w -fomit-frame-pointer $(WARNCFLAGS) |
---|
| 13 | NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer $(WARNCFLAGS) |
---|
[151a06] | 14 | NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG |
---|
| 15 | |
---|
[ebf138] | 16 | CXXTEMPLFLAGS = ## -fno-implicit-templates |
---|
[151a06] | 17 | |
---|
[286be1f] | 18 | AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/numeric -I${top_builddir}/numeric -I${top_srcdir}/kernel -I${top_builddir}/kernel -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) -I${top_srcdir}/factory/include -I${top_builddir}/factory/include $(FACTORY_CFLAGS) $(NTL_CFLAGS) $(FLINT_CFLAGS) |
---|
[151a06] | 19 | |
---|
[b9e11ba] | 20 | ########################### libSingular* ######################### |
---|
| 21 | |
---|
[6d672b4] | 22 | libSingular_LTLIBRARIES = libSingular.la libSingular_g.la |
---|
[c2eb2e] | 23 | libSingulardir = $(libdir)/singular |
---|
[151a06] | 24 | |
---|
[dd156fc] | 25 | libSingular_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(WARNCFLAGS) |
---|
| 26 | libSingular_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(WARNCFLAGS) |
---|
[151a06] | 27 | |
---|
[dd156fc] | 28 | libSingular_la_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
| 29 | libSingular_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
[151a06] | 30 | # -fdiagnostics-show-option |
---|
| 31 | |
---|
[1d3be3] | 32 | |
---|
[bd795d] | 33 | libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
| 34 | libSingular_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DLIBSINGULAR |
---|
[151a06] | 35 | |
---|
| 36 | SOURCES = Minor.cc\ |
---|
| 37 | MinorInterface.cc\ |
---|
| 38 | MinorProcessor.cc\ |
---|
| 39 | attrib.cc\ |
---|
| 40 | bbcone.cc\ |
---|
| 41 | bbfan.cc\ |
---|
| 42 | bigintm.cc\ |
---|
| 43 | blackbox.cc\ |
---|
| 44 | calcSVD.cc\ |
---|
| 45 | cntrlc.cc\ |
---|
| 46 | denom_list.cc\ |
---|
| 47 | eigenval_ip.cc\ |
---|
| 48 | extra.cc\ |
---|
| 49 | feOpt.cc\ |
---|
| 50 | fehelp.cc\ |
---|
| 51 | fevoices.cc\ |
---|
| 52 | fglm.cc\ |
---|
| 53 | gms.cc\ |
---|
| 54 | grammar.cc\ |
---|
| 55 | interpolation.cc\ |
---|
| 56 | iparith.cc\ |
---|
| 57 | ipassign.cc\ |
---|
| 58 | ipconv.cc\ |
---|
| 59 | ipid.cc\ |
---|
| 60 | iplib.cc\ |
---|
| 61 | ipprint.cc\ |
---|
| 62 | ipshell.cc\ |
---|
| 63 | janet.cc\ |
---|
| 64 | libparse.cc\ |
---|
| 65 | linearAlgebra_ip.cc\ |
---|
| 66 | lists.cc\ |
---|
| 67 | maps_ip.cc\ |
---|
| 68 | minpoly.cc\ |
---|
| 69 | misc_ip.cc\ |
---|
| 70 | ndbm.cc\ |
---|
| 71 | newstruct.cc\ |
---|
| 72 | pcv.cc\ |
---|
| 73 | pipeLink.cc\ |
---|
| 74 | scanner.cc\ |
---|
| 75 | sdb.cc\ |
---|
| 76 | silink.cc\ |
---|
| 77 | sing_dbm.cc\ |
---|
| 78 | sing_win.cc\ |
---|
| 79 | slInit_Static.cc\ |
---|
| 80 | ssiLink.cc\ |
---|
| 81 | subexpr.cc\ |
---|
| 82 | walk.cc\ |
---|
| 83 | walk_ip.cc\ |
---|
| 84 | wrapper.cc\ |
---|
[b9e11ba] | 85 | fereadl.c mmstd.c claptmpl.cc |
---|
[151a06] | 86 | |
---|
[b7cad8c] | 87 | # slInit_Dynamic.cc |
---|
[151a06] | 88 | |
---|
[bd795d] | 89 | libSingular_la_SOURCES = $(SOURCES) feOpt.inc |
---|
| 90 | libSingular_g_la_SOURCES = $(SOURCES) feOpt.inc |
---|
[151a06] | 91 | |
---|
| 92 | SingularHEADERS = Cache.h \ |
---|
| 93 | CacheImplementation.h \ |
---|
| 94 | Minor.h \ |
---|
| 95 | MinorInterface.h \ |
---|
| 96 | MinorProcessor.h \ |
---|
| 97 | attrib.h \ |
---|
| 98 | bigintm.h \ |
---|
| 99 | blackbox.h \ |
---|
| 100 | cntrlc.h \ |
---|
| 101 | dbm_sl.h \ |
---|
| 102 | distrib.h \ |
---|
| 103 | eigenval_ip.h \ |
---|
[c2eb2e] | 104 | feOpt.h feOptTab.h fehelp.h \ |
---|
[151a06] | 105 | fglm.h \ |
---|
| 106 | gms.h \ |
---|
| 107 | grammar.h \ |
---|
| 108 | interpolation.h \ |
---|
[c2eb2e] | 109 | idrec.h \ |
---|
[151a06] | 110 | ipconv.h \ |
---|
| 111 | ipid.h \ |
---|
| 112 | ipprint.h \ |
---|
| 113 | ipshell.h \ |
---|
| 114 | janet.h \ |
---|
| 115 | libparse.h \ |
---|
| 116 | libsingular.h \ |
---|
[c2eb2e] | 117 | linearAlgebra_ip.h\ |
---|
[151a06] | 118 | lists.h \ |
---|
| 119 | locals.h \ |
---|
| 120 | maps_ip.h \ |
---|
| 121 | minpoly.h \ |
---|
| 122 | misc_ip.h \ |
---|
| 123 | mmalloc.h \ |
---|
| 124 | omSingularConfig.h \ |
---|
| 125 | ndbm.h \ |
---|
| 126 | newstruct.h \ |
---|
| 127 | pcv.h \ |
---|
| 128 | pipeLink.h \ |
---|
| 129 | pyobject_setup.h \ |
---|
| 130 | run.h \ |
---|
| 131 | sdb.h \ |
---|
| 132 | silink.h \ |
---|
| 133 | sing_dbm.h \ |
---|
| 134 | sing_win.h \ |
---|
| 135 | slInit.h \ |
---|
| 136 | ssiLink.h \ |
---|
| 137 | static.h \ |
---|
| 138 | stype.h \ |
---|
| 139 | subexpr.h \ |
---|
| 140 | table.h \ |
---|
| 141 | tok.h \ |
---|
[bd795d] | 142 | walk.h |
---|
[dd5fa6] | 143 | |
---|
[28b503] | 144 | # plural_cmd.inc |
---|
[d828d63] | 145 | nodist_libSingular_la_SOURCES = iparith.inc |
---|
| 146 | nodist_libSingular_g_la_SOURCES = iparith.inc |
---|
[151a06] | 147 | |
---|
[772990] | 148 | noinst_HEADERS = version.h |
---|
| 149 | |
---|
| 150 | |
---|
[c2eb2e] | 151 | libSingular_includedir = ${includedir}/singular/Singular/ |
---|
[0ff203] | 152 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
[151a06] | 153 | |
---|
| 154 | if ENABLE_FACTORY |
---|
| 155 | USE_FACTORY = -L${top_builddir}/factory |
---|
| 156 | else |
---|
| 157 | USE_FACTORY = |
---|
| 158 | endif |
---|
| 159 | |
---|
| 160 | ######################################################### |
---|
| 161 | # handle all the generated *.inc |
---|
| 162 | |
---|
[bd795d] | 163 | noinst_PROGRAMS = gentable2 gentable1 feOptGen feOptES feOptTS |
---|
[151a06] | 164 | |
---|
| 165 | gentable2_SOURCES = gentable2.cc grammar.h tok.h table.h |
---|
| 166 | gentable2_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[ebf138] | 167 | gentable2_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 168 | gentable2_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
[151a06] | 169 | |
---|
| 170 | |
---|
| 171 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
| 172 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[ebf138] | 173 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 174 | gentable1_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
[151a06] | 175 | |
---|
[bd795d] | 176 | feOptGen_SOURCES = feOptGen.cc feOptGen.h |
---|
| 177 | feOptGen_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 178 | feOptGen_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
[151a06] | 179 | |
---|
[69ad7e] | 180 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
[ebf138] | 181 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 182 | feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR |
---|
[151a06] | 183 | |
---|
[69ad7e] | 184 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
[ebf138] | 185 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 186 | feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR |
---|
[151a06] | 187 | |
---|
| 188 | ########################### Singular* ######################### |
---|
| 189 | |
---|
[bd795d] | 190 | EXTRA_PROGRAMS = Singulard Singulardg libparse |
---|
[0ee865] | 191 | |
---|
[bd795d] | 192 | # the "optional_programs" variable should be defined in the configure |
---|
| 193 | # script, and listed in an AC_SUBST macro |
---|
| 194 | optional_Singular_programs = |
---|
| 195 | |
---|
| 196 | bin_PROGRAMS = Singular Singularg ESingular TSingular $(optional_Singular_programs) |
---|
[151a06] | 197 | |
---|
[3b8a6e] | 198 | AMLDFLAGS = -L${abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel -L${abs_top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec |
---|
| 199 | |
---|
[151a06] | 200 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[69ad7e] | 201 | Singularg_CFLAGS = -g ${PIPE} |
---|
[151a06] | 202 | |
---|
[ebf138] | 203 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[151a06] | 204 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 205 | |
---|
[383ba5e] | 206 | nodist_Singular_SOURCES = libSingular.la |
---|
| 207 | nodist_Singularg_SOURCES = libSingular_g.la |
---|
| 208 | |
---|
[bd795d] | 209 | Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
| 210 | Singularg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[151a06] | 211 | |
---|
[286be1f] | 212 | Singular_LDADD = libSingular.la ${abs_top_builddir}/numeric/libnumeric.la ${abs_top_builddir}/kernel/libkernel.la ${abs_top_builddir}/libpolys/polys/libpolys.la -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 213 | Singularg_LDADD = libSingular_g.la ${abs_top_builddir}/numeric/libnumeric_g.la ${abs_top_builddir}/kernel/libkernel_g.la ${abs_top_builddir}/libpolys/polys/libpolys_g.la -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[151a06] | 214 | |
---|
[bd795d] | 215 | Singular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 216 | Singularg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[151a06] | 217 | |
---|
[3b8a6e] | 218 | Singular_LDFLAGS = -static ${AMLDFLAGS} |
---|
| 219 | Singularg_LDFLAGS = -static ${AMLDFLAGS} |
---|
[8ccf01] | 220 | |
---|
| 221 | |
---|
| 222 | Singulard_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 223 | Singulardg_CFLAGS = -g ${PIPE} |
---|
| 224 | |
---|
[ebf138] | 225 | Singulard_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[8ccf01] | 226 | Singulardg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 227 | |
---|
[bd795d] | 228 | Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[8ccf01] | 229 | nodist_Singulard_SOURCES = libSingular.la |
---|
| 230 | |
---|
[bd795d] | 231 | Singulardg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[8ccf01] | 232 | nodist_Singulardg_SOURCES = libSingular_g.la |
---|
| 233 | |
---|
[286be1f] | 234 | Singulard_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 235 | Singulardg_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[8ccf01] | 236 | |
---|
[bd795d] | 237 | Singulard_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 238 | Singulardg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
| 239 | |
---|
[3b8a6e] | 240 | Singulard_LDFLAGS = ${AMLDFLAGS} |
---|
| 241 | Singulardg_LDFLAGS = ${AMLDFLAGS} |
---|
| 242 | |
---|
[bd795d] | 243 | |
---|
| 244 | #### ESingular |
---|
| 245 | |
---|
| 246 | ESingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 247 | ESingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 248 | ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR -DPROTO |
---|
[3b8a6e] | 249 | ESingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
[b4a676] | 250 | ESingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
[bd795d] | 251 | |
---|
| 252 | ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc |
---|
[8ccf01] | 253 | |
---|
[bd795d] | 254 | #### same for TSingular |
---|
| 255 | |
---|
| 256 | TSingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 257 | TSingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 258 | TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR -DPROTO |
---|
[3b8a6e] | 259 | TSingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
[b4a676] | 260 | TSingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
[bd795d] | 261 | |
---|
| 262 | TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc |
---|
| 263 | # utils.cc utils.h |
---|
| 264 | |
---|
| 265 | |
---|
| 266 | #### libparse |
---|
| 267 | libparse_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DSTANDALONE_PARSER |
---|
| 268 | libparse_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 269 | libparse_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 270 | |
---|
| 271 | libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
| 272 | # nodist_libparse_SOURCES = libSingular.la |
---|
| 273 | |
---|
| 274 | # # libSingular.la -lnumeric |
---|
| 275 | libparse_LDADD = -lomalloc |
---|
[3b8a6e] | 276 | libparse_LDFLAGS = -static ${AMLDFLAGS} |
---|
[bd795d] | 277 | # TODO for libparse: |
---|
| 278 | # multiple definition of `category_out': libparse.cc v.s. utils.cc |
---|
| 279 | # undefined reference to `iiInitSingularProcinfo(procinfo*, char const*, char const*, int, long, int)' |
---|
[ff7e14a] | 280 | |
---|
| 281 | ######################################################### |
---|
| 282 | # the Singular library (*.lib files) |
---|
| 283 | |
---|
| 284 | include ${srcdir}/singular-libs |
---|
| 285 | |
---|
| 286 | singularlibrarydir = ${datadir}/singular |
---|
[bebd746] | 287 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) |
---|
[4e855a7] | 288 | nobase_dist_singularlibrary_DATA = LIB/all.lib LIB/tst.lib LIB/help.cnf ${singularlibrary} |
---|
[444bcf] | 289 | EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs LIB/help.cnf |
---|
[ff7e14a] | 290 | |
---|
[bebd746] | 291 | # ${nobase_dist_singularlibrary_DATA} |
---|
[bd795d] | 292 | |
---|
[bebd746] | 293 | LIB/all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
[ff7e14a] | 294 | $(MKDIR_P) LIB |
---|
| 295 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
| 296 | |
---|
[bd795d] | 297 | # [ -d ${builddir}/LIB ] || ( $(MKDIR_P) LIB ; cp ${srcdir}/LIB/*.lib ${builddir}/LIB/ ) |
---|
| 298 | |
---|
[151a06] | 299 | ########################### TEST ######################### |
---|
| 300 | |
---|
[9840b5] | 301 | TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/Singular/LIB:${abs_top_srcdir}/Singular/LIB:${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables' |
---|
[99fc2eb] | 302 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}' |
---|
[151a06] | 303 | |
---|
[097c71] | 304 | TESTS=test-s-g test-s-r test-d-g test-d-r |
---|
[151a06] | 305 | check_PROGRAMS=$(TESTS) |
---|
| 306 | |
---|
[8ccf01] | 307 | # Static versions |
---|
| 308 | |
---|
[097c71] | 309 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 310 | test_s_g_CFLAGS = ${PIPE} |
---|
[151a06] | 311 | |
---|
[ebf138] | 312 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[097c71] | 313 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[151a06] | 314 | |
---|
[097c71] | 315 | test_s_r_SOURCES = test.cc |
---|
| 316 | test_s_g_SOURCES = test.cc |
---|
[151a06] | 317 | |
---|
[286be1f] | 318 | test_s_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 319 | test_s_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[151a06] | 320 | |
---|
[bd795d] | 321 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 322 | test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[151a06] | 323 | |
---|
[3b8a6e] | 324 | test_s_r_LDFLAGS = -static ${AMLDFLAGS} |
---|
| 325 | test_s_g_LDFLAGS = -static ${AMLDFLAGS} |
---|
[8ccf01] | 326 | |
---|
| 327 | |
---|
| 328 | # Dynamic versions |
---|
| 329 | |
---|
[097c71] | 330 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 331 | test_d_g_CFLAGS = ${PIPE} |
---|
[8ccf01] | 332 | |
---|
[ebf138] | 333 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[097c71] | 334 | test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[8ccf01] | 335 | |
---|
[097c71] | 336 | test_d_r_SOURCES = test.cc |
---|
| 337 | test_d_g_SOURCES = test.cc |
---|
[8ccf01] | 338 | |
---|
[286be1f] | 339 | test_d_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
| 340 | test_d_g_LDADD = libSingular_g.la -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} |
---|
[8ccf01] | 341 | |
---|
[bd795d] | 342 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 343 | test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[8ccf01] | 344 | |
---|
[3b8a6e] | 345 | test_d_r_LDFLAGS = ${AMLDFLAGS} |
---|
| 346 | test_d_g_LDFLAGS = ${AMLDFLAGS} |
---|
| 347 | |
---|
[151a06] | 348 | ######################################################### |
---|
| 349 | |
---|
[c2eb2e] | 350 | # These files are built first |
---|
[d828d63] | 351 | BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc LIB/all.lib plural_cmd.inc \ |
---|
[91ecf18] | 352 | gftables MOD |
---|
[151a06] | 353 | |
---|
[bd795d] | 354 | CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) |
---|
[151a06] | 355 | |
---|
[bd795d] | 356 | feOpt.inc: feOptGen |
---|
| 357 | ${abs_builddir}/feOptGen |
---|
[151a06] | 358 | |
---|
| 359 | feOptES.inc: feOptES |
---|
[7c5f743] | 360 | ${abs_builddir}/feOptES |
---|
[151a06] | 361 | |
---|
| 362 | feOptTS.inc: feOptTS |
---|
[7c5f743] | 363 | ${abs_builddir}/feOptTS |
---|
[151a06] | 364 | |
---|
[c2eb2e] | 365 | plural_cmd.inc iparith.inc: gentable1 |
---|
[7c5f743] | 366 | ${abs_builddir}/gentable1 |
---|
[151a06] | 367 | |
---|
[28b503] | 368 | # # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
| 369 | # plural_cmd.inc: iparith.inc |
---|
[c2eb2e] | 370 | |
---|
[91ecf18] | 371 | |
---|
| 372 | gftables: ${abs_top_srcdir}/factory/gftables |
---|
| 373 | ln -snf ${abs_top_srcdir}/factory/gftables ${abs_builddir}/gftables |
---|
| 374 | |
---|
| 375 | MOD: ${abs_top_builddir}/libpolys/polys/.libs |
---|
| 376 | ln -snf ${abs_top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD |
---|