1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
|
ACLOCAL_AMFLAGS = -I../m4
GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version)
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)"'
all-local: feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD ${abs_builddir}/LIB Singular$(EXEEXT) ESingular$(EXEEXT) TSingular$(EXEEXT)
AM_CPPFLAGS += -DDEB_PKG_VERSION=\"$(DEB_PKG_VERSION)\"
if SING_WIN
SUBDIRS = ${BUILTIN_MODULES} . dyn_modules
else
SUBDIRS = dyn_modules .
endif
########################### Possible builtin modules... #########################
BUILTIN_FLAGS = ${BUILTIN_LIBS}
########################### libSingular* #########################
libsingular_Singular_LTLIBRARIES = libsingular-Singular.la
libsingular_Singulardir = $(libdir)
libsingular_Singular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
SOURCES = \
links/asciiLink.cc\
attrib.cc\
blackbox.cc\
calcSVD.cc\
cntrlc.cc\
countedref.cc\
denom_list.cc\
eigenval_ip.cc\
extra.cc\
feOpt.cc\
fehelp.cc\
fevoices.cc\
fglm.cc\
gms.cc\
grammar.cc\
iparith.cc\
ipassign.cc\
ipconv.cc\
ipid.cc\
iplib.cc\
ipprint.cc\
ipshell.cc\
libparse.cc\
linearAlgebra_ip.cc\
lists.cc\
maps_ip.cc\
misc_ip.cc\
mod_lib.cc\
links/ndbm.cc\
newstruct.cc\
number2.cc\
pcv.cc\
links/pipeLink.cc\
scanner.cc\
sdb.cc\
links/silink.cc\
links/sing_dbm.cc\
links/slInit_Static.cc\
links/ssiLink.cc\
links/semaphore.c\
subexpr.cc\
pyobject_setup.cc\
walk.cc\
walk_ip.cc\
wrapper.cc\
mmstd.c claptmpl.cc\
febase.cc \
svd/libs/amp.cpp \
svd/libs/ap.cpp
# links/slInit_Dynamic.cc
libsingular_Singular_la_SOURCES = $(SOURCES)
SingularHEADERS = \
attrib.h \
blackbox.h \
cntrlc.h \
countedref.h \
links/dbm_sl.h \
distrib.h \
eigenval_ip.h \
feOpt.h feOptTab.h fehelp.h \
fglm.h \
gms.h \
grammar.h \
idrec.h \
ipconv.h \
ipid.h \
ipprint.h \
ipshell.h \
libparse.h \
libsingular.h \
linearAlgebra_ip.h\
lists.h \
locals.h \
maps_ip.h \
misc_ip.h \
mmalloc.h \
mod_lib.h \
links/ndbm.h \
newstruct.h \
number2.h \
pcv.h \
links/pipeLink.h \
pyobject_setup.h \
sdb.h \
links/silink.h \
links/sing_dbm.h \
links/slInit.h \
links/ssiLink.h \
links/simpleipc.h \
stype.h \
subexpr.h \
table.h \
tok.h \
walk.h \
fevoices.h \
svd_si.h \
svd/libs/amp.h svd/libs/ap.h svd/libs/stdafx.h \
svd/bdsvd.h svd/bidiagonal.h svd/blas.h svd/lq.h svd/qr.h svd/reflections.h \
svd/rotations.h svd/svd.h
# -DMAKE_DISTRIBUTION
# plural_cmd.inc
nodist_libsingular_Singular_la_SOURCES = feOpt.inc iparith.inc
libsingular_Singular_la_LDFLAGS =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS}
libsingular_Singular_la_LIBADD =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
libsingular_Singular_includedir = ${includedir}/singular/singular/Singular
nobase_libsingular_Singular_include_HEADERS = $(SingularHEADERS)
#########################################################
# handle all the generated *.inc
noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS
gentable1_SOURCES = gentable.cc grammar.h tok.h table.h
gentable1_CPPFLAGS = ${AM_CPPFLAGS}
feOptGen_SOURCES = feOptGen.cc feOptGen.h
feOptGen_CPPFLAGS = ${AM_CPPFLAGS}
feOptES_SOURCES = feOptGen.cc feOptGen.h
feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR
feOptTS_SOURCES = feOptGen.cc feOptGen.h
feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR
########################### Singular* #########################
EXTRA_PROGRAMS = libparse Singulard
# the "optional_programs" variable should be defined in the configure
# script, and listed in an AC_SUBST macro
optional_Singular_programs =
bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
man_MANS = Singular.1 ESingular.1 TSingular.1
AM_H2MFLAGS = \
--manual="CAS Singular" \
--version-option="--dump-versiontuple" \
--source="Singular" \
--libtool \
--no-info
## short descriptions for manpages
Singular_DESCRIPTION = "Computer Algebra System for Polynomial Computations -- command-line interface"
ESingular_DESCRIPTION = "Computer Algebra System for Polynomial Computations -- command-line interface within emacs"
TSingular_DESCRIPTION = "Computer Algebra System for Polynomial Computations -- command-line interface within a new terminal"
Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h
Singular_LDADD = libsingular-Singular.la ${BUILTIN_FLAGS}
Singular_LDFLAGS = ${AM_LDFLAGS} ${BUILTIN_FLAGS}
Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h
Singulard_LDADD = libsingular-Singular.la ${BUILTIN_FLAGS}
Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
scriptdir = $(libexecdir)/singular/MOD
dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win
#### ESingular
ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
# ESingular_LDFLAGS = ${AM_LDFLAGS}
ESingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libsingular-omalloc.la \
${top_builddir}/resources/libsingular-resources.la
ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
#### same for TSingular
TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
# TSingular_LDFLAGS = ${AM_LDFLAGS}
TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libsingular-omalloc.la \
${top_builddir}/resources/libsingular-resources.la
TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
# utils.cc utils.h
#### libparse
libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc utils.h
libparse_LDADD = ${top_builddir}/omalloc/libsingular-omalloc.la
libparse_LDFLAGS = ${AM_LDFLAGS}
%.1: %
$(HELP2MAN) \
-s 1 \
$(AM_H2MFLAGS) \
-I $(top_srcdir)/Singular/man/$*.h2m \
-n $(if $($(subst -,_,$*)_DESCRIPTION), $($(subst -,_,$*)_DESCRIPTION), "manual page for $*") \
-o $@ \
$(abs_top_builddir)/Singular/$<
#########################################################
# the Singular library (*.lib files)
include ${srcdir}/singular-libs
singularlibrarydir = ${datadir}/singular
singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
EXTRA_DIST = grammar.y libparse.ll make_alllib.sh LIB/all.lib.tmpl \
singular-libs LIB/help.cnf LIB/.singularrc LIB/COPYING \
links/slInit_Dynamic.cc
singularalllibrarydir = ${datadir}/singular/LIB
singularalllibrary = all.lib
nobase_dist_singularalllibrary_DATA = all.lib
all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary}
${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS}
########################### TEST #########################
TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
TESTS=test
check_PROGRAMS=$(TESTS)
test_SOURCES = test.cc
test_LDADD = libsingular-Singular.la
#########################################################
# These files are built first
BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD
CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
clean-local:
if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
fi
feOpt.inc: feOptGen$(EXEEXT)
${builddir}/feOptGen$(EXEEXT)
feOptES.inc: feOptES$(EXEEXT)
${builddir}/feOptES$(EXEEXT)
feOptTS.inc: feOptTS$(EXEEXT)
${builddir}/feOptTS$(EXEEXT)
iparith.inc: gentable1$(EXEEXT) table.h
${builddir}/gentable1$(EXEEXT)
# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
gftables: ${top_srcdir}/factory/gftables
ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
${abs_builddir}/LIB: ${srcdir}/LIB
if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
fi
MOD:
if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
fi
echoLIBS:
@echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
|