[96b5cde] | 1 | ACLOCAL_AMFLAGS = -I../m4 |
---|
[9ba92b] | 2 | |
---|
[574cee] | 3 | GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version) |
---|
[99b54a] | 4 | |
---|
[1095e9] | 5 | AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/kernel -I${top_builddir}/kernel -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(FACTORY_INCLUDES) $(GMP_CPPFLAGS) $(NTL_CPPFLAGS) $(FLINT_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"' |
---|
[1684c3] | 6 | |
---|
[e089d2] | 7 | all-local: feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD ${abs_builddir}/LIB Singular$(EXEEXT) ESingular$(EXEEXT) TSingular$(EXEEXT) |
---|
[76178c] | 8 | |
---|
[f6e134] | 9 | if SING_WIN |
---|
| 10 | SUBDIRS = ${BUILTIN_MODULES} . dyn_modules |
---|
| 11 | else |
---|
| 12 | SUBDIRS = dyn_modules . |
---|
| 13 | endif |
---|
[f476eb] | 14 | |
---|
[af87fd] | 15 | ########################### Possible builtin modules... ######################### |
---|
| 16 | BUILTIN_FLAGS = ${BUILTIN_LIBS} |
---|
| 17 | |
---|
[989d6b] | 18 | ########################### libSingular* ######################### |
---|
[2b43ac] | 19 | |
---|
[75f460] | 20 | libSingular_LTLIBRARIES = libSingular.la |
---|
[453510f] | 21 | libSingulardir = $(libdir) |
---|
[151a06] | 22 | |
---|
[feb3c9] | 23 | libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS} |
---|
[151a06] | 24 | |
---|
[07058c] | 25 | SOURCES = \ |
---|
[4da485] | 26 | links/asciiLink.cc\ |
---|
[151a06] | 27 | attrib.cc\ |
---|
| 28 | blackbox.cc\ |
---|
| 29 | calcSVD.cc\ |
---|
| 30 | cntrlc.cc\ |
---|
[ee1465] | 31 | countedref.cc\ |
---|
[151a06] | 32 | denom_list.cc\ |
---|
| 33 | eigenval_ip.cc\ |
---|
| 34 | extra.cc\ |
---|
| 35 | feOpt.cc\ |
---|
| 36 | fehelp.cc\ |
---|
| 37 | fevoices.cc\ |
---|
| 38 | fglm.cc\ |
---|
| 39 | gms.cc\ |
---|
| 40 | grammar.cc\ |
---|
| 41 | iparith.cc\ |
---|
| 42 | ipassign.cc\ |
---|
| 43 | ipconv.cc\ |
---|
| 44 | ipid.cc\ |
---|
| 45 | iplib.cc\ |
---|
| 46 | ipprint.cc\ |
---|
| 47 | ipshell.cc\ |
---|
| 48 | libparse.cc\ |
---|
| 49 | linearAlgebra_ip.cc\ |
---|
| 50 | lists.cc\ |
---|
| 51 | maps_ip.cc\ |
---|
| 52 | misc_ip.cc\ |
---|
[adc0a4] | 53 | mod_lib.cc\ |
---|
[47367fd] | 54 | links/ndbm.cc\ |
---|
[151a06] | 55 | newstruct.cc\ |
---|
[9b12fce] | 56 | number2.cc\ |
---|
[151a06] | 57 | pcv.cc\ |
---|
[47367fd] | 58 | links/pipeLink.cc\ |
---|
[151a06] | 59 | scanner.cc\ |
---|
| 60 | sdb.cc\ |
---|
[47367fd] | 61 | links/silink.cc\ |
---|
| 62 | links/sing_dbm.cc\ |
---|
[44ca2f] | 63 | links/slInit_Static.cc\ |
---|
[47367fd] | 64 | links/ssiLink.cc\ |
---|
[281e8e] | 65 | links/semaphore.c\ |
---|
[151a06] | 66 | subexpr.cc\ |
---|
[b36460] | 67 | pyobject_setup.cc\ |
---|
[151a06] | 68 | walk.cc\ |
---|
| 69 | walk_ip.cc\ |
---|
| 70 | wrapper.cc\ |
---|
[ff3617] | 71 | mmstd.c claptmpl.cc\ |
---|
[7fb70f] | 72 | febase.cc \ |
---|
| 73 | svd/libs/amp.cpp \ |
---|
| 74 | svd/libs/ap.cpp |
---|
[151a06] | 75 | |
---|
[44ca2f] | 76 | # links/slInit_Dynamic.cc |
---|
[151a06] | 77 | |
---|
[99b54a] | 78 | libSingular_la_SOURCES = $(SOURCES) |
---|
[151a06] | 79 | |
---|
[07058c] | 80 | SingularHEADERS = \ |
---|
[151a06] | 81 | attrib.h \ |
---|
| 82 | blackbox.h \ |
---|
| 83 | cntrlc.h \ |
---|
[ee1465] | 84 | countedref.h \ |
---|
[47367fd] | 85 | links/dbm_sl.h \ |
---|
[151a06] | 86 | distrib.h \ |
---|
| 87 | eigenval_ip.h \ |
---|
[c2eb2e] | 88 | feOpt.h feOptTab.h fehelp.h \ |
---|
[151a06] | 89 | fglm.h \ |
---|
| 90 | gms.h \ |
---|
| 91 | grammar.h \ |
---|
[c2eb2e] | 92 | idrec.h \ |
---|
[151a06] | 93 | ipconv.h \ |
---|
| 94 | ipid.h \ |
---|
| 95 | ipprint.h \ |
---|
| 96 | ipshell.h \ |
---|
| 97 | libparse.h \ |
---|
| 98 | libsingular.h \ |
---|
[c2eb2e] | 99 | linearAlgebra_ip.h\ |
---|
[151a06] | 100 | lists.h \ |
---|
| 101 | locals.h \ |
---|
| 102 | maps_ip.h \ |
---|
| 103 | misc_ip.h \ |
---|
| 104 | mmalloc.h \ |
---|
[adc0a4] | 105 | mod_lib.h \ |
---|
[47367fd] | 106 | links/ndbm.h \ |
---|
[151a06] | 107 | newstruct.h \ |
---|
[371cf4] | 108 | number2.h \ |
---|
[151a06] | 109 | pcv.h \ |
---|
[47367fd] | 110 | links/pipeLink.h \ |
---|
[151a06] | 111 | pyobject_setup.h \ |
---|
| 112 | sdb.h \ |
---|
[44ca2f] | 113 | links/silink.h \ |
---|
[47367fd] | 114 | links/sing_dbm.h \ |
---|
[44ca2f] | 115 | links/slInit.h \ |
---|
[47367fd] | 116 | links/ssiLink.h \ |
---|
[281e8e] | 117 | links/simpleipc.h \ |
---|
[151a06] | 118 | stype.h \ |
---|
| 119 | subexpr.h \ |
---|
| 120 | table.h \ |
---|
| 121 | tok.h \ |
---|
[b5f27dd] | 122 | walk.h \ |
---|
[7fb70f] | 123 | fevoices.h \ |
---|
| 124 | svd_si.h \ |
---|
| 125 | svd/libs/amp.h svd/libs/ap.h svd/libs/stdafx.h \ |
---|
| 126 | svd/bdsvd.h svd/bidiagonal.h svd/blas.h svd/lq.h svd/qr.h svd/reflections.h \ |
---|
| 127 | svd/rotations.h svd/svd.h |
---|
| 128 | |
---|
[dd5fa6] | 129 | |
---|
[9ba92b] | 130 | |
---|
[75f460] | 131 | # -DMAKE_DISTRIBUTION |
---|
[9ba92b] | 132 | |
---|
[7b8818] | 133 | # plural_cmd.inc |
---|
[75f460] | 134 | nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc |
---|
[151a06] | 135 | |
---|
[3b7b36] | 136 | libSingular_la_LDFLAGS =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS} |
---|
[af87fd] | 137 | libSingular_la_LIBADD =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS} |
---|
[772990] | 138 | |
---|
[b0857ee] | 139 | libSingular_includedir = ${includedir}/singular/Singular |
---|
[0ff203] | 140 | nobase_libSingular_include_HEADERS = $(SingularHEADERS) |
---|
[151a06] | 141 | |
---|
| 142 | ######################################################### |
---|
| 143 | # handle all the generated *.inc |
---|
| 144 | |
---|
[0419ab] | 145 | noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS |
---|
[151a06] | 146 | |
---|
| 147 | gentable1_SOURCES = gentable.cc grammar.h tok.h table.h |
---|
[9a4834] | 148 | gentable1_CPPFLAGS = ${AM_CPPFLAGS} |
---|
[151a06] | 149 | |
---|
[bd795d] | 150 | feOptGen_SOURCES = feOptGen.cc feOptGen.h |
---|
[9a4834] | 151 | feOptGen_CPPFLAGS = ${AM_CPPFLAGS} |
---|
[151a06] | 152 | |
---|
[69ad7e] | 153 | feOptES_SOURCES = feOptGen.cc feOptGen.h |
---|
[9a4834] | 154 | feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR |
---|
[151a06] | 155 | |
---|
[69ad7e] | 156 | feOptTS_SOURCES = feOptGen.cc feOptGen.h |
---|
[9a4834] | 157 | feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR |
---|
[151a06] | 158 | |
---|
| 159 | ########################### Singular* ######################### |
---|
| 160 | |
---|
[8bfb5a9] | 161 | EXTRA_PROGRAMS = libparse Singulard |
---|
[0ee865] | 162 | |
---|
[bd795d] | 163 | # the "optional_programs" variable should be defined in the configure |
---|
| 164 | # script, and listed in an AC_SUBST macro |
---|
[75f460] | 165 | optional_Singular_programs = |
---|
[bd795d] | 166 | |
---|
[0d59f94] | 167 | bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs) |
---|
| 168 | |
---|
[dc50ee] | 169 | Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[151a06] | 170 | |
---|
[af87fd] | 171 | Singular_LDADD = libSingular.la ${BUILTIN_FLAGS} |
---|
[99b54a] | 172 | |
---|
[8bfb5a9] | 173 | Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS} |
---|
[8ccf01] | 174 | |
---|
[dc50ee] | 175 | Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[8ccf01] | 176 | |
---|
[8bfb5a9] | 177 | Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS} |
---|
[bd795d] | 178 | |
---|
[8bfb5a9] | 179 | Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS} |
---|
[3b8a6e] | 180 | |
---|
[bdaf933] | 181 | scriptdir = $(libexecdir)/singular/MOD |
---|
[463cc9] | 182 | dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win |
---|
[bd795d] | 183 | |
---|
[7b8818] | 184 | #### ESingular |
---|
[9ba92b] | 185 | ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO |
---|
[b1b9e1f] | 186 | # ESingular_LDFLAGS = -static ${AM_LDFLAGS} |
---|
[c70920] | 187 | ESingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \ |
---|
[9a6ff99] | 188 | ${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \ |
---|
[a3a6a0] | 189 | ${top_builddir}/resources/libsingular_resources.la |
---|
[c70920] | 190 | |
---|
[bd795d] | 191 | |
---|
| 192 | ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc |
---|
[8ccf01] | 193 | |
---|
[7b8818] | 194 | #### same for TSingular |
---|
[9ba92b] | 195 | TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO |
---|
[b1b9e1f] | 196 | # TSingular_LDFLAGS = -static ${AM_LDFLAGS} |
---|
[9a6ff99] | 197 | TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \ |
---|
| 198 | ${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \ |
---|
[a3a6a0] | 199 | ${top_builddir}/resources/libsingular_resources.la |
---|
[bd795d] | 200 | |
---|
| 201 | TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc |
---|
| 202 | # utils.cc utils.h |
---|
| 203 | |
---|
| 204 | |
---|
[7b8818] | 205 | #### libparse |
---|
[9ba92b] | 206 | libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER |
---|
[7b8818] | 207 | |
---|
[bd795d] | 208 | libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc utils.h |
---|
[7b8818] | 209 | |
---|
[c70920] | 210 | libparse_LDADD = ${top_builddir}/omalloc/libomalloc.la |
---|
[cda527] | 211 | libparse_LDFLAGS = -static ${AM_LDFLAGS} |
---|
[ff7e14a] | 212 | |
---|
| 213 | ######################################################### |
---|
| 214 | # the Singular library (*.lib files) |
---|
| 215 | |
---|
| 216 | include ${srcdir}/singular-libs |
---|
| 217 | |
---|
| 218 | singularlibrarydir = ${datadir}/singular |
---|
[1a1f34b] | 219 | singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%) |
---|
[b773c0] | 220 | nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary} |
---|
[1a1f34b] | 221 | EXTRA_DIST = grammar.y libparse.ll make_alllib.sh LIB/all.lib.tmpl \ |
---|
| 222 | singular-libs LIB/help.cnf LIB/.singularrc LIB/COPYING \ |
---|
[15d6bf9] | 223 | links/slInit_Dynamic.cc |
---|
[3a9ee05] | 224 | |
---|
[b773c0] | 225 | singularalllibrarydir = ${datadir}/singular/LIB |
---|
| 226 | singularalllibrary = all.lib |
---|
| 227 | nobase_dist_singularalllibrary_DATA = all.lib |
---|
[ff7e14a] | 228 | |
---|
[b773c0] | 229 | all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary} |
---|
| 230 | ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS} |
---|
[bd795d] | 231 | |
---|
[151a06] | 232 | ########################### TEST ######################### |
---|
[240fe3] | 233 | TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables' |
---|
| 234 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' |
---|
[151a06] | 235 | |
---|
[667d33] | 236 | TESTS=test |
---|
[0d59f94] | 237 | |
---|
[151a06] | 238 | check_PROGRAMS=$(TESTS) |
---|
| 239 | |
---|
[667d33] | 240 | test_SOURCES = test.cc |
---|
[75f460] | 241 | test_LDADD = libSingular.la |
---|
[3b8a6e] | 242 | |
---|
[151a06] | 243 | ######################################################### |
---|
[c2eb2e] | 244 | # These files are built first |
---|
[3cc5ad] | 245 | BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD |
---|
[eeaeffb] | 246 | CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) |
---|
[151a06] | 247 | |
---|
[b773c0] | 248 | clean-local: |
---|
[4255b3] | 249 | if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \ |
---|
[8b57f5] | 250 | if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \ |
---|
[4255b3] | 251 | fi |
---|
| 252 | |
---|
[48e8e1] | 253 | feOpt.inc: feOptGen$(EXEEXT) |
---|
| 254 | ${builddir}/feOptGen$(EXEEXT) |
---|
[151a06] | 255 | |
---|
[48e8e1] | 256 | feOptES.inc: feOptES$(EXEEXT) |
---|
| 257 | ${builddir}/feOptES$(EXEEXT) |
---|
[151a06] | 258 | |
---|
[48e8e1] | 259 | feOptTS.inc: feOptTS$(EXEEXT) |
---|
| 260 | ${builddir}/feOptTS$(EXEEXT) |
---|
[151a06] | 261 | |
---|
[3cc5ad] | 262 | iparith.inc: gentable1$(EXEEXT) table.h |
---|
[48e8e1] | 263 | ${builddir}/gentable1$(EXEEXT) |
---|
[151a06] | 264 | |
---|
[28b503] | 265 | # # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html |
---|
[c2eb2e] | 266 | |
---|
[240fe3] | 267 | gftables: ${top_srcdir}/factory/gftables |
---|
| 268 | ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables |
---|
[b3cd39] | 269 | |
---|
[b773c0] | 270 | ${abs_builddir}/LIB: ${srcdir}/LIB |
---|
[4255b3] | 271 | if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \ |
---|
[8b57f5] | 272 | ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \ |
---|
[4255b3] | 273 | fi |
---|
[b773c0] | 274 | |
---|
[75f460] | 275 | MOD: |
---|
[057861] | 276 | if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \ |
---|
| 277 | ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \ |
---|
[75f460] | 278 | fi |
---|
[fe8ff2] | 279 | |
---|
| 280 | echoLIBS: |
---|
| 281 | @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS} |
---|
| 282 | |
---|