source: git/Singular/Makefile.am @ 15d6bf9

fieker-DuValspielwiese
Last change on this file since 15d6bf9 was 15d6bf9, checked in by Hans Schoenemann <hannes@…>, 6 years ago
fix: move singular.idx to doc/doc.tbz2
  • Property mode set to 100644
File size: 7.7 KB
RevLine 
[96b5cde]1ACLOCAL_AMFLAGS = -I../m4
[9ba92b]2
[574cee]3GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version)
[99b54a]4
[1095e9]5AM_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]7all-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]9if SING_WIN
10SUBDIRS = ${BUILTIN_MODULES} . dyn_modules
11else
12SUBDIRS = dyn_modules .
13endif
[f476eb]14
[af87fd]15########################### Possible builtin modules... #########################
16BUILTIN_FLAGS = ${BUILTIN_LIBS}
17
[989d6b]18########################### libSingular* #########################
[2b43ac]19
[75f460]20libSingular_LTLIBRARIES = libSingular.la
[453510f]21libSingulardir = $(libdir)
[151a06]22
[feb3c9]23libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
[151a06]24
[07058c]25SOURCES = \
[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]78libSingular_la_SOURCES   = $(SOURCES)
[151a06]79
[07058c]80SingularHEADERS = \
[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]134nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
[151a06]135
[3b7b36]136libSingular_la_LDFLAGS    =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS}
[af87fd]137libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
[772990]138
[b0857ee]139libSingular_includedir = ${includedir}/singular/Singular
[0ff203]140nobase_libSingular_include_HEADERS = $(SingularHEADERS)
[151a06]141
142#########################################################
143# handle all the generated *.inc
144
[0419ab]145noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS
[151a06]146
147gentable1_SOURCES = gentable.cc grammar.h tok.h table.h
[9a4834]148gentable1_CPPFLAGS = ${AM_CPPFLAGS}
[151a06]149
[bd795d]150feOptGen_SOURCES = feOptGen.cc feOptGen.h
[9a4834]151feOptGen_CPPFLAGS = ${AM_CPPFLAGS}
[151a06]152
[69ad7e]153feOptES_SOURCES = feOptGen.cc feOptGen.h
[9a4834]154feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR
[151a06]155
[69ad7e]156feOptTS_SOURCES = feOptGen.cc feOptGen.h
[9a4834]157feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR
[151a06]158
159########################### Singular* #########################
160
[8bfb5a9]161EXTRA_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]165optional_Singular_programs =
[bd795d]166
[0d59f94]167bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
168
[dc50ee]169Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
[151a06]170
[af87fd]171Singular_LDADD = libSingular.la ${BUILTIN_FLAGS}
[99b54a]172
[8bfb5a9]173Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS}
[8ccf01]174
[dc50ee]175Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
[8ccf01]176
[8bfb5a9]177Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS}
[bd795d]178
[8bfb5a9]179Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
[3b8a6e]180
[bdaf933]181scriptdir = $(libexecdir)/singular/MOD
[463cc9]182dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win
[bd795d]183
[7b8818]184#### ESingular
[9ba92b]185ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
[b1b9e1f]186# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
[c70920]187ESingular_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
192ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
[8ccf01]193
[7b8818]194#### same for TSingular
[9ba92b]195TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
[b1b9e1f]196# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
[9a6ff99]197TSingular_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
201TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
202# utils.cc utils.h
203
204
[7b8818]205#### libparse
[9ba92b]206libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
[7b8818]207
[bd795d]208libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc  utils.h
[7b8818]209
[c70920]210libparse_LDADD = ${top_builddir}/omalloc/libomalloc.la
[cda527]211libparse_LDFLAGS = -static ${AM_LDFLAGS}
[ff7e14a]212
213#########################################################
214# the Singular library (*.lib files)
215
216include ${srcdir}/singular-libs
217
218singularlibrarydir = ${datadir}/singular
[1a1f34b]219singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
[b773c0]220nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
[1a1f34b]221EXTRA_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]225singularalllibrarydir = ${datadir}/singular/LIB
226singularalllibrary = all.lib
227nobase_dist_singularalllibrary_DATA = all.lib
[ff7e14a]228
[b773c0]229all.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]233TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
234TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
[151a06]235
[667d33]236TESTS=test
[0d59f94]237
[151a06]238check_PROGRAMS=$(TESTS)
239
[667d33]240test_SOURCES = test.cc
[75f460]241test_LDADD = libSingular.la
[3b8a6e]242
[151a06]243#########################################################
[c2eb2e]244# These files are built first
[3cc5ad]245BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD
[eeaeffb]246CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
[151a06]247
[b773c0]248clean-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]253feOpt.inc: feOptGen$(EXEEXT)
254        ${builddir}/feOptGen$(EXEEXT)
[151a06]255
[48e8e1]256feOptES.inc: feOptES$(EXEEXT)
257        ${builddir}/feOptES$(EXEEXT)
[151a06]258
[48e8e1]259feOptTS.inc: feOptTS$(EXEEXT)
260        ${builddir}/feOptTS$(EXEEXT)
[151a06]261
[3cc5ad]262iparith.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]267gftables: ${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]275MOD:
[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
280echoLIBS:
281        @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
282
Note: See TracBrowser for help on using the repository browser.