[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 | |
---|
[8e7e6d4] | 16 | CXXTEMPLFLAGS =-ftrapv ## -fno-implicit-templates |
---|
[151a06] | 17 | |
---|
[c1e7a6] | 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) ${EMBED_PYOBJECT_CFLAGS} |
---|
[151a06] | 19 | |
---|
[b9e11ba] | 20 | ########################### libSingular* ######################### |
---|
| 21 | |
---|
[2b43ac] | 22 | if WANT_DEBUG |
---|
| 23 | LIB_G=libSingular_g.la |
---|
| 24 | else |
---|
| 25 | LIB_G= |
---|
| 26 | endif |
---|
| 27 | |
---|
| 28 | libSingular_LTLIBRARIES = libSingular.la ${LIB_G} |
---|
[c2eb2e] | 29 | libSingulardir = $(libdir)/singular |
---|
[151a06] | 30 | |
---|
[5e28ea] | 31 | libSingular_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(WARNCFLAGS) |
---|
| 32 | libSingular_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(WARNCFLAGS) |
---|
[151a06] | 33 | |
---|
[5e28ea] | 34 | libSingular_la_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
| 35 | libSingular_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) $(WARNCFLAGS) |
---|
[151a06] | 36 | # -fdiagnostics-show-option |
---|
| 37 | |
---|
[1d3be3] | 38 | |
---|
[bd795d] | 39 | libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR |
---|
| 40 | libSingular_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DLIBSINGULAR |
---|
[151a06] | 41 | |
---|
| 42 | SOURCES = Minor.cc\ |
---|
| 43 | MinorInterface.cc\ |
---|
| 44 | MinorProcessor.cc\ |
---|
[4da485] | 45 | links/asciiLink.cc\ |
---|
[151a06] | 46 | attrib.cc\ |
---|
| 47 | bbcone.cc\ |
---|
| 48 | bbfan.cc\ |
---|
| 49 | bigintm.cc\ |
---|
| 50 | blackbox.cc\ |
---|
| 51 | calcSVD.cc\ |
---|
| 52 | cntrlc.cc\ |
---|
[ee1465] | 53 | countedref.cc\ |
---|
[151a06] | 54 | denom_list.cc\ |
---|
| 55 | eigenval_ip.cc\ |
---|
| 56 | extra.cc\ |
---|
| 57 | feOpt.cc\ |
---|
| 58 | fehelp.cc\ |
---|
| 59 | fevoices.cc\ |
---|
| 60 | fglm.cc\ |
---|
| 61 | gms.cc\ |
---|
| 62 | grammar.cc\ |
---|
| 63 | interpolation.cc\ |
---|
| 64 | iparith.cc\ |
---|
| 65 | ipassign.cc\ |
---|
| 66 | ipconv.cc\ |
---|
| 67 | ipid.cc\ |
---|
| 68 | iplib.cc\ |
---|
| 69 | ipprint.cc\ |
---|
| 70 | ipshell.cc\ |
---|
| 71 | janet.cc\ |
---|
| 72 | libparse.cc\ |
---|
| 73 | linearAlgebra_ip.cc\ |
---|
| 74 | lists.cc\ |
---|
| 75 | maps_ip.cc\ |
---|
| 76 | minpoly.cc\ |
---|
| 77 | misc_ip.cc\ |
---|
[47367fd] | 78 | links/ndbm.cc\ |
---|
[151a06] | 79 | newstruct.cc\ |
---|
| 80 | pcv.cc\ |
---|
[47367fd] | 81 | links/pipeLink.cc\ |
---|
[151a06] | 82 | scanner.cc\ |
---|
| 83 | sdb.cc\ |
---|
[00e336] | 84 | links/s_buff.cc\ |
---|
[47367fd] | 85 | links/silink.cc\ |
---|
| 86 | links/sing_dbm.cc\ |
---|
[151a06] | 87 | sing_win.cc\ |
---|
[44ca2f] | 88 | links/slInit_Static.cc\ |
---|
[47367fd] | 89 | links/ssiLink.cc\ |
---|
[281e8e] | 90 | links/semaphore.c\ |
---|
[151a06] | 91 | subexpr.cc\ |
---|
[b36460] | 92 | pyobject_setup.cc\ |
---|
[151a06] | 93 | walk.cc\ |
---|
| 94 | walk_ip.cc\ |
---|
| 95 | wrapper.cc\ |
---|
[281e8e] | 96 | fereadl.c mmstd.c claptmpl.cc |
---|
[151a06] | 97 | |
---|
[44ca2f] | 98 | # links/slInit_Dynamic.cc |
---|
[151a06] | 99 | |
---|
[bd795d] | 100 | libSingular_la_SOURCES = $(SOURCES) feOpt.inc |
---|
| 101 | libSingular_g_la_SOURCES = $(SOURCES) feOpt.inc |
---|
[151a06] | 102 | |
---|
| 103 | SingularHEADERS = Cache.h \ |
---|
| 104 | CacheImplementation.h \ |
---|
| 105 | Minor.h \ |
---|
| 106 | MinorInterface.h \ |
---|
| 107 | MinorProcessor.h \ |
---|
| 108 | attrib.h \ |
---|
| 109 | bigintm.h \ |
---|
| 110 | blackbox.h \ |
---|
| 111 | cntrlc.h \ |
---|
[ee1465] | 112 | countedref.h \ |
---|
[47367fd] | 113 | links/dbm_sl.h \ |
---|
[151a06] | 114 | distrib.h \ |
---|
| 115 | eigenval_ip.h \ |
---|
[c2eb2e] | 116 | feOpt.h feOptTab.h fehelp.h \ |
---|
[151a06] | 117 | fglm.h \ |
---|
| 118 | gms.h \ |
---|
| 119 | grammar.h \ |
---|
| 120 | interpolation.h \ |
---|
[c2eb2e] | 121 | idrec.h \ |
---|
[151a06] | 122 | ipconv.h \ |
---|
| 123 | ipid.h \ |
---|
| 124 | ipprint.h \ |
---|
| 125 | ipshell.h \ |
---|
| 126 | janet.h \ |
---|
| 127 | libparse.h \ |
---|
| 128 | libsingular.h \ |
---|
[c2eb2e] | 129 | linearAlgebra_ip.h\ |
---|
[151a06] | 130 | lists.h \ |
---|
| 131 | locals.h \ |
---|
| 132 | maps_ip.h \ |
---|
| 133 | minpoly.h \ |
---|
| 134 | misc_ip.h \ |
---|
| 135 | mmalloc.h \ |
---|
| 136 | omSingularConfig.h \ |
---|
[47367fd] | 137 | links/ndbm.h \ |
---|
[151a06] | 138 | newstruct.h \ |
---|
| 139 | pcv.h \ |
---|
[47367fd] | 140 | links/pipeLink.h \ |
---|
[151a06] | 141 | pyobject_setup.h \ |
---|
| 142 | run.h \ |
---|
| 143 | sdb.h \ |
---|
[44ca2f] | 144 | links/silink.h \ |
---|
[00e336] | 145 | links/s_buff.h \ |
---|
[47367fd] | 146 | links/sing_dbm.h \ |
---|
[151a06] | 147 | sing_win.h \ |
---|
[44ca2f] | 148 | links/slInit.h \ |
---|
[47367fd] | 149 | links/ssiLink.h \ |
---|
[281e8e] | 150 | links/simpleipc.h \ |
---|
[151a06] | 151 | stype.h \ |
---|
| 152 | subexpr.h \ |
---|
| 153 | table.h \ |
---|
| 154 | tok.h \ |
---|
[bd795d] | 155 | walk.h |
---|
[dd5fa6] | 156 | |
---|
[28b503] | 157 | # plural_cmd.inc |
---|
[d828d63] | 158 | nodist_libSingular_la_SOURCES = iparith.inc |
---|
| 159 | nodist_libSingular_g_la_SOURCES = iparith.inc |
---|
[151a06] | 160 | |
---|
[772990] | 161 | noinst_HEADERS = version.h |
---|
| 162 | |
---|
| 163 | |
---|
[c2eb2e] | 164 | libSingular_includedir = ${includedir}/singular/Singular/ |
---|
[0ff203] | 165 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
[151a06] | 166 | |
---|
| 167 | if ENABLE_FACTORY |
---|
| 168 | USE_FACTORY = -L${top_builddir}/factory |
---|
| 169 | else |
---|
| 170 | USE_FACTORY = |
---|
| 171 | endif |
---|
| 172 | |
---|
| 173 | ######################################################### |
---|
| 174 | # handle all the generated *.inc |
---|
| 175 | |
---|
[0419ab] | 176 | noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS |
---|
[151a06] | 177 | |
---|
| 178 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
| 179 | gentable1_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[5e28ea] | 180 | gentable1_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 181 | gentable1_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
[151a06] | 182 | |
---|
[bd795d] | 183 | feOptGen_SOURCES = feOptGen.cc feOptGen.h |
---|
[5e28ea] | 184 | feOptGen_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 185 | feOptGen_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
[151a06] | 186 | |
---|
[69ad7e] | 187 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
[5e28ea] | 188 | feOptES_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 189 | feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR |
---|
[151a06] | 190 | |
---|
[69ad7e] | 191 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
[5e28ea] | 192 | feOptTS_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 193 | feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR |
---|
[151a06] | 194 | |
---|
| 195 | ########################### Singular* ######################### |
---|
| 196 | |
---|
[0d59f94] | 197 | EXTRA_PROGRAMS = Singulard libparse |
---|
[0ee865] | 198 | |
---|
[bd795d] | 199 | # the "optional_programs" variable should be defined in the configure |
---|
| 200 | # script, and listed in an AC_SUBST macro |
---|
| 201 | optional_Singular_programs = |
---|
| 202 | |
---|
[0d59f94] | 203 | bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs) |
---|
| 204 | |
---|
[2b43ac] | 205 | if WANT_DEBUG |
---|
[0d59f94] | 206 | bin_PROGRAMS += Singularg |
---|
| 207 | EXTRA_PROGRAMS += Singulardg |
---|
[2b43ac] | 208 | endif |
---|
[151a06] | 209 | |
---|
[b773c0] | 210 | Singular Singularg ESingular TSingular $(optional_Singular_programs): ${abs_builddir}/LIB |
---|
| 211 | |
---|
[240fe3] | 212 | AMLDFLAGS = -L${top_builddir}/Singular -L${top_builddir}/numeric -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 |
---|
[3b8a6e] | 213 | |
---|
[151a06] | 214 | Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[69ad7e] | 215 | Singularg_CFLAGS = -g ${PIPE} |
---|
[151a06] | 216 | |
---|
[5e28ea] | 217 | Singular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 218 | Singularg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[151a06] | 219 | |
---|
[383ba5e] | 220 | nodist_Singular_SOURCES = libSingular.la |
---|
| 221 | nodist_Singularg_SOURCES = libSingular_g.la |
---|
| 222 | |
---|
[bd795d] | 223 | Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
| 224 | Singularg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[151a06] | 225 | |
---|
[c1e7a6] | 226 | Singular_LDADD = libSingular.la ${top_builddir}/numeric/libnumeric.la ${top_builddir}/kernel/libkernel.la ${top_builddir}/libpolys/polys/libpolys.la -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${EMBED_PYOBJECT_LDFLAGS} |
---|
| 227 | Singularg_LDADD = libSingular_g.la ${top_builddir}/numeric/libnumeric_g.la ${top_builddir}/kernel/libkernel_g.la ${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} ${EMBED_PYOBJECT_LDFLAGS} |
---|
[151a06] | 228 | |
---|
[bd795d] | 229 | Singular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 230 | Singularg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[151a06] | 231 | |
---|
[3b8a6e] | 232 | Singular_LDFLAGS = -static ${AMLDFLAGS} |
---|
| 233 | Singularg_LDFLAGS = -static ${AMLDFLAGS} |
---|
[8ccf01] | 234 | |
---|
| 235 | |
---|
| 236 | Singulard_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 237 | Singulardg_CFLAGS = -g ${PIPE} |
---|
| 238 | |
---|
[5e28ea] | 239 | Singulard_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 240 | Singulardg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[8ccf01] | 241 | |
---|
[bd795d] | 242 | Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[8ccf01] | 243 | nodist_Singulard_SOURCES = libSingular.la |
---|
| 244 | |
---|
[bd795d] | 245 | Singulardg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[8ccf01] | 246 | nodist_Singulardg_SOURCES = libSingular_g.la |
---|
| 247 | |
---|
[c1e7a6] | 248 | Singulard_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${EMBED_PYOBJECT_LDFLAGS} |
---|
| 249 | 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} ${EMBED_PYOBJECT_LDFLAGS} |
---|
[8ccf01] | 250 | |
---|
[bd795d] | 251 | Singulard_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 252 | Singulardg_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
| 253 | |
---|
[3b8a6e] | 254 | Singulard_LDFLAGS = ${AMLDFLAGS} |
---|
| 255 | Singulardg_LDFLAGS = ${AMLDFLAGS} |
---|
| 256 | |
---|
[bd795d] | 257 | |
---|
| 258 | #### ESingular |
---|
| 259 | |
---|
| 260 | ESingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[5e28ea] | 261 | ESingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 262 | ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DESINGULAR -DPROTO |
---|
[3b8a6e] | 263 | ESingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
[b4a676] | 264 | ESingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
[bd795d] | 265 | |
---|
| 266 | ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc |
---|
[8ccf01] | 267 | |
---|
[bd795d] | 268 | #### same for TSingular |
---|
| 269 | |
---|
| 270 | TSingular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[5e28ea] | 271 | TSingular_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 272 | TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DTSINGULAR -DPROTO |
---|
[3b8a6e] | 273 | TSingular_LDFLAGS = -static ${AMLDFLAGS} |
---|
[b4a676] | 274 | TSingular_LDADD = -lreporter -lmisc -lomalloc -lfindexec |
---|
[bd795d] | 275 | |
---|
| 276 | TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc |
---|
| 277 | # utils.cc utils.h |
---|
| 278 | |
---|
| 279 | |
---|
| 280 | #### libparse |
---|
| 281 | libparse_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DSTANDALONE_PARSER |
---|
| 282 | libparse_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
[5e28ea] | 283 | libparse_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
[bd795d] | 284 | |
---|
| 285 | libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
| 286 | # nodist_libparse_SOURCES = libSingular.la |
---|
| 287 | |
---|
| 288 | # # libSingular.la -lnumeric |
---|
| 289 | libparse_LDADD = -lomalloc |
---|
[3b8a6e] | 290 | libparse_LDFLAGS = -static ${AMLDFLAGS} |
---|
[bd795d] | 291 | # TODO for libparse: |
---|
| 292 | # multiple definition of `category_out': libparse.cc v.s. utils.cc |
---|
| 293 | # undefined reference to `iiInitSingularProcinfo(procinfo*, char const*, char const*, int, long, int)' |
---|
[ff7e14a] | 294 | |
---|
| 295 | ######################################################### |
---|
| 296 | # the Singular library (*.lib files) |
---|
| 297 | |
---|
| 298 | include ${srcdir}/singular-libs |
---|
| 299 | |
---|
| 300 | singularlibrarydir = ${datadir}/singular |
---|
[bebd746] | 301 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) |
---|
[b773c0] | 302 | nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary} |
---|
[281e8e] | 303 | EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs \ |
---|
| 304 | LIB/help.cnf links/slInit_Dynamic.cc |
---|
[ff7e14a] | 305 | |
---|
[bebd746] | 306 | # ${nobase_dist_singularlibrary_DATA} |
---|
[bd795d] | 307 | |
---|
[b773c0] | 308 | singularalllibrarydir = ${datadir}/singular/LIB |
---|
| 309 | singularalllibrary = all.lib |
---|
| 310 | nobase_dist_singularalllibrary_DATA = all.lib |
---|
[ff7e14a] | 311 | |
---|
[b773c0] | 312 | all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
| 313 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
[bd795d] | 314 | |
---|
[151a06] | 315 | ########################### TEST ######################### |
---|
| 316 | |
---|
[240fe3] | 317 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables' |
---|
| 318 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
[151a06] | 319 | |
---|
[17228e] | 320 | TESTS=test-s-r test-d-r |
---|
[0d59f94] | 321 | |
---|
| 322 | if WANT_DEBUG |
---|
| 323 | TESTS += test-s-g test-d-g |
---|
[17228e] | 324 | endif |
---|
[0d59f94] | 325 | |
---|
[151a06] | 326 | check_PROGRAMS=$(TESTS) |
---|
| 327 | |
---|
[8ccf01] | 328 | # Static versions |
---|
| 329 | |
---|
[097c71] | 330 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 331 | test_s_g_CFLAGS = ${PIPE} |
---|
[151a06] | 332 | |
---|
[5e28ea] | 333 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 334 | test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[151a06] | 335 | |
---|
[097c71] | 336 | test_s_r_SOURCES = test.cc |
---|
| 337 | test_s_g_SOURCES = test.cc |
---|
[151a06] | 338 | |
---|
[c1e7a6] | 339 | test_s_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${EMBED_PYOBJECT_LDFLAGS} |
---|
| 340 | 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} ${EMBED_PYOBJECT_LDFLAGS} |
---|
[151a06] | 341 | |
---|
[bd795d] | 342 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 343 | test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[151a06] | 344 | |
---|
[3b8a6e] | 345 | test_s_r_LDFLAGS = -static ${AMLDFLAGS} |
---|
| 346 | test_s_g_LDFLAGS = -static ${AMLDFLAGS} |
---|
[8ccf01] | 347 | |
---|
| 348 | |
---|
| 349 | # Dynamic versions |
---|
| 350 | |
---|
[097c71] | 351 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 352 | test_d_g_CFLAGS = ${PIPE} |
---|
[8ccf01] | 353 | |
---|
[5e28ea] | 354 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS) |
---|
| 355 | test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS) |
---|
[8ccf01] | 356 | |
---|
[097c71] | 357 | test_d_r_SOURCES = test.cc |
---|
| 358 | test_d_g_SOURCES = test.cc |
---|
[8ccf01] | 359 | |
---|
[c1e7a6] | 360 | test_d_r_LDADD = libSingular.la -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${EMBED_PYOBJECT_LDFLAGS} |
---|
| 361 | 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} ${EMBED_PYOBJECT_LDFLAGS} |
---|
[8ccf01] | 362 | |
---|
[bd795d] | 363 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 364 | test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[8ccf01] | 365 | |
---|
[3b8a6e] | 366 | test_d_r_LDFLAGS = ${AMLDFLAGS} |
---|
| 367 | test_d_g_LDFLAGS = ${AMLDFLAGS} |
---|
| 368 | |
---|
[151a06] | 369 | ######################################################### |
---|
| 370 | |
---|
[c2eb2e] | 371 | # These files are built first |
---|
[b773c0] | 372 | BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib plural_cmd.inc \ |
---|
| 373 | gftables MOD |
---|
[151a06] | 374 | |
---|
[bd795d] | 375 | CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) |
---|
[151a06] | 376 | |
---|
[b773c0] | 377 | clean-local: |
---|
[4255b3] | 378 | if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \ |
---|
[8b57f5] | 379 | if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \ |
---|
[4255b3] | 380 | fi |
---|
| 381 | |
---|
[bd795d] | 382 | feOpt.inc: feOptGen |
---|
[240fe3] | 383 | ${builddir}/feOptGen |
---|
[151a06] | 384 | |
---|
| 385 | feOptES.inc: feOptES |
---|
[240fe3] | 386 | ${builddir}/feOptES |
---|
[151a06] | 387 | |
---|
| 388 | feOptTS.inc: feOptTS |
---|
[240fe3] | 389 | ${builddir}/feOptTS |
---|
[151a06] | 390 | |
---|
[c2eb2e] | 391 | plural_cmd.inc iparith.inc: gentable1 |
---|
[240fe3] | 392 | ${builddir}/gentable1 |
---|
[151a06] | 393 | |
---|
[28b503] | 394 | # # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
| 395 | # plural_cmd.inc: iparith.inc |
---|
[c2eb2e] | 396 | |
---|
[91ecf18] | 397 | |
---|
[240fe3] | 398 | gftables: ${top_srcdir}/factory/gftables |
---|
| 399 | ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables |
---|
[b3cd39] | 400 | |
---|
[b773c0] | 401 | ${abs_builddir}/LIB: ${srcdir}/LIB |
---|
[4255b3] | 402 | if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \ |
---|
[8b57f5] | 403 | ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \ |
---|
[4255b3] | 404 | fi |
---|
[b773c0] | 405 | |
---|
[240fe3] | 406 | MOD: ${top_builddir}/libpolys/polys/.libs |
---|
| 407 | ln -snf ${top_builddir}/libpolys/polys/.libs/ ${builddir}/MOD |
---|
[b3cd39] | 408 | |
---|
[f4cb99a] | 409 | moduledir = $(libexecdir)/singular/MOD |
---|
[f28640] | 410 | |
---|
| 411 | module_LTLIBRARIES = |
---|
[24bfd7] | 412 | |
---|
[c1e7a6] | 413 | if PYTHON_MODULE |
---|
[f28640] | 414 | module_LTLIBRARIES += pyobject.la |
---|
[0d59f94] | 415 | endif |
---|
| 416 | |
---|
[24bfd7] | 417 | pyobject_la_SOURCES = pyobject.cc |
---|
[f28640] | 418 | pyobject_la_CPPFLAGS = ${AM_CPPFLAGS} ${NODEBUGDEFS} |
---|
| 419 | pyobject_g_la_CPPFLAGS = ${AM_CPPFLAGS} |
---|
[b3cd39] | 420 | |
---|
[f28640] | 421 | pyobject_la_CXXFLAGS = ${NODEBUGCXXFLAGS} @PYTHON_CSPEC@ |
---|
| 422 | pyobject_g_la_CXXFLAGS = ${DEBUGCXXFLAGS} @PYTHON_CSPEC@ |
---|
[b3cd39] | 423 | |
---|
[f28640] | 424 | pyobject_la_LDFLAGS = -export-dynamic -shared -module -avoid-version \ |
---|
| 425 | ${AMLDFLAGS} @PYTHON_LSPEC@ |
---|