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