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