source: git/Singular/Makefile.am @ c0bd77

spielwiese
Last change on this file since c0bd77 was c0bd77, checked in by Hans Schoenemann <hannes@…>, 9 years ago
fix; option(mem)
  • Property mode set to 100644
File size: 7.2 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
[37e66f]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_CFLAGS) $(NTL_CFLAGS) $(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
[f476eb]9SUBDIRS = dyn_modules
10
[af87fd]11########################### Possible builtin modules... #########################
12BUILTIN_FLAGS = ${BUILTIN_LIBS}
13
[989d6b]14########################### libSingular* #########################
[2b43ac]15
[75f460]16libSingular_LTLIBRARIES = libSingular.la
[453510f]17libSingulardir = $(libdir)
[151a06]18
[feb3c9]19libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
[151a06]20
[07058c]21SOURCES = \
[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]72libSingular_la_SOURCES   = $(SOURCES)
[151a06]73
[07058c]74SingularHEADERS = \
[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]124nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
[151a06]125
[feb3c9]126libSingular_la_LDFLAGS    =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS}
[af87fd]127libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
[772990]128
[b0857ee]129libSingular_includedir = ${includedir}/singular/Singular
[0ff203]130nobase_libSingular_include_HEADERS = $(SingularHEADERS)
[151a06]131
132#########################################################
133# handle all the generated *.inc
134
[0419ab]135noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS
[151a06]136
137gentable1_SOURCES = gentable.cc grammar.h tok.h table.h
[9a4834]138gentable1_CPPFLAGS = ${AM_CPPFLAGS}
[151a06]139
[bd795d]140feOptGen_SOURCES = feOptGen.cc feOptGen.h
[9a4834]141feOptGen_CPPFLAGS = ${AM_CPPFLAGS}
[151a06]142
[69ad7e]143feOptES_SOURCES = feOptGen.cc feOptGen.h
[9a4834]144feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR
[151a06]145
[69ad7e]146feOptTS_SOURCES = feOptGen.cc feOptGen.h
[9a4834]147feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR
[151a06]148
149########################### Singular* #########################
150
[8bfb5a9]151EXTRA_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]155optional_Singular_programs =
[bd795d]156
[0d59f94]157bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
158
[dc50ee]159Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
[151a06]160
[af87fd]161Singular_LDADD = libSingular.la ${BUILTIN_FLAGS}
[99b54a]162
[8bfb5a9]163Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS}
[8ccf01]164
[dc50ee]165Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
[8ccf01]166
[8bfb5a9]167Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS}
[bd795d]168
[8bfb5a9]169Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
[3b8a6e]170
[bdaf933]171scriptdir = $(libexecdir)/singular/MOD
172dist_script_SCRIPTS = singularsurf
[bd795d]173
[7b8818]174#### ESingular
[9ba92b]175ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
[b1b9e1f]176# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
[c70920]177ESingular_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
182ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
[8ccf01]183
[7b8818]184#### same for TSingular
[9ba92b]185TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
[b1b9e1f]186# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
[9a6ff99]187TSingular_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
191TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
192# utils.cc utils.h
193
194
[7b8818]195#### libparse
[9ba92b]196libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
[7b8818]197
[bd795d]198libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc  utils.h
[7b8818]199
[c70920]200libparse_LDADD = ${top_builddir}/omalloc/libomalloc.la
[cda527]201libparse_LDFLAGS = -static ${AM_LDFLAGS}
[ff7e14a]202
203#########################################################
204# the Singular library (*.lib files)
205
206include ${srcdir}/singular-libs
207
208singularlibrarydir = ${datadir}/singular
[bebd746]209singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%)
[b773c0]210nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
[281e8e]211EXTRA_DIST = make_alllib.sh LIB/all.lib.tmpl singular-libs \
212             LIB/help.cnf links/slInit_Dynamic.cc
[ff7e14a]213
[b773c0]214singularalllibrarydir = ${datadir}/singular/LIB
215singularalllibrary = all.lib
216nobase_dist_singularalllibrary_DATA = all.lib
[ff7e14a]217
[b773c0]218all.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]222TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
223TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
[151a06]224
[667d33]225TESTS=test
[0d59f94]226
[151a06]227check_PROGRAMS=$(TESTS)
228
[667d33]229test_SOURCES = test.cc
[75f460]230test_LDADD = libSingular.la
[3b8a6e]231
[151a06]232#########################################################
[c2eb2e]233# These files are built first
[3cc5ad]234BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD
[eeaeffb]235CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
[151a06]236
[b773c0]237clean-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]242feOpt.inc: feOptGen$(EXEEXT)
243        ${builddir}/feOptGen$(EXEEXT)
[151a06]244
[48e8e1]245feOptES.inc: feOptES$(EXEEXT)
246        ${builddir}/feOptES$(EXEEXT)
[151a06]247
[48e8e1]248feOptTS.inc: feOptTS$(EXEEXT)
249        ${builddir}/feOptTS$(EXEEXT)
[151a06]250
[3cc5ad]251iparith.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]256gftables: ${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]264MOD:
[057861]265        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
266          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
[75f460]267        fi
Note: See TracBrowser for help on using the repository browser.