source: git/Singular/Makefile.am @ 9d1e4c9

fieker-DuValspielwiese
Last change on this file since 9d1e4c9 was d6dd79, checked in by Hans Schoenemann <hannes@…>, 4 years ago
fix: do not link libparse with omalloc
  • Property mode set to 100644
File size: 6.9 KB
Line 
1ACLOCAL_AMFLAGS = -I../m4
2
3GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version)
4
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) $(CCLUSTER_CPPFLAGS)  $(GMP_CPPFLAGS) $(FLINT_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"'
6
7AM_CXXFLAGS=$(NTL_CPPFLAGS)
8
9all-local: all.lib gftables MOD ${abs_builddir}/LIB Singular$(EXEEXT) ESingular$(EXEEXT) TSingular$(EXEEXT)
10
11if SING_WIN
12SUBDIRS = ${BUILTIN_MODULES} . dyn_modules
13else
14SUBDIRS = dyn_modules .
15endif
16
17########################### Possible builtin modules... #########################
18BUILTIN_FLAGS = ${BUILTIN_LIBS}
19
20########################### libSingular* #########################
21
22libSingular_LTLIBRARIES = libSingular.la
23libSingulardir = $(libdir)
24
25libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
26
27SOURCES = \
28   links/asciiLink.cc\
29   attrib.cc\
30   blackbox.cc\
31   calcSVD.cc\
32   cntrlc.cc\
33   countedref.cc\
34   denom_list.cc\
35   eigenval_ip.cc\
36   extra.cc\
37   feOpt.cc\
38   fehelp.cc\
39   fevoices.cc\
40   fglm.cc\
41   gms.cc\
42   grammar.cc\
43   iparith.cc\
44   ipassign.cc\
45   ipconv.cc\
46   ipid.cc\
47   iplib.cc\
48   ipprint.cc\
49   ipshell.cc\
50   libparse.cc\
51   linearAlgebra_ip.cc\
52   lists.cc\
53   maps_ip.cc\
54   misc_ip.cc\
55   mod_lib.cc\
56   links/ndbm.cc\
57   newstruct.cc\
58   number2.cc\
59   pcv.cc\
60   links/pipeLink.cc\
61   scanner.cc\
62   sdb.cc\
63   links/silink.cc\
64   links/sing_dbm.cc\
65   links/slInit_Static.cc\
66   links/ssiLink.cc\
67   links/semaphore.c\
68   subexpr.cc\
69   pyobject_setup.cc\
70   walk.cc\
71   walk_ip.cc\
72   wrapper.cc\
73   mmstd.c claptmpl.cc\
74   febase.cc \
75   svd/libs/amp.cpp \
76   svd/libs/ap.cpp
77
78#   links/slInit_Dynamic.cc
79
80libSingular_la_SOURCES   = $(SOURCES)
81
82SingularHEADERS = \
83   attrib.h \
84   blackbox.h \
85   cntrlc.h \
86   countedref.h \
87   links/dbm_sl.h \
88   distrib.h \
89   eigenval_ip.h \
90   feOpt.h feOptTab.h fehelp.h feOpt.inc feOptTS.inc feOptES.inc\
91   fglm.h \
92   gms.h \
93   grammar.h \
94   idrec.h \
95   iparith.inc \
96   ipconv.h \
97   ipid.h \
98   ipprint.h \
99   ipshell.h \
100   libparse.h \
101   libsingular.h \
102   linearAlgebra_ip.h\
103   lists.h \
104   locals.h \
105   maps_ip.h \
106   misc_ip.h \
107   mmalloc.h \
108   mod_lib.h \
109   links/ndbm.h \
110   newstruct.h \
111   number2.h \
112   pcv.h \
113   links/pipeLink.h \
114   pyobject_setup.h \
115   sdb.h \
116   links/silink.h \
117   links/sing_dbm.h \
118   links/slInit.h \
119   links/ssiLink.h \
120   links/simpleipc.h \
121   stype.h \
122   subexpr.h \
123   table.h \
124   tok.h \
125   walk.h \
126   fevoices.h \
127   svd_si.h \
128   svd/libs/amp.h  svd/libs/ap.h  svd/libs/stdafx.h \
129   svd/bdsvd.h  svd/bidiagonal.h  svd/blas.h  svd/lq.h  svd/qr.h  svd/reflections.h \
130   svd/rotations.h  svd/svd.h
131
132
133
134# -DMAKE_DISTRIBUTION
135
136# plural_cmd.inc
137nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
138
139libSingular_la_LDFLAGS    =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} $(CCLUSTER_LIBS) ${PTHREAD_LDFLAGS}
140libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
141
142libSingular_includedir = ${includedir}/singular/Singular
143nobase_libSingular_include_HEADERS = $(SingularHEADERS)
144
145########################### Singular* #########################
146
147EXTRA_PROGRAMS =  libparse Singulard
148
149# the "optional_Singular_programs" variable should be defined in the configure
150# script, and listed in an AC_SUBST macro
151
152bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
153
154Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
155
156Singular_LDADD = libSingular.la ${OMALLOC_LIBS} ${BUILTIN_FLAGS}
157
158Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS}
159
160Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
161
162Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS}
163
164Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
165
166scriptdir = $(libexecdir)/singular/MOD
167dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win surfex
168
169#### ESingular
170ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
171# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
172ESingular_LDADD =  ${top_builddir}/libpolys/reporter/libreporter.la \
173${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
174${top_builddir}/resources/libsingular_resources.la
175
176
177ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
178
179#### same for TSingular
180TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
181# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
182TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
183${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
184${top_builddir}/resources/libsingular_resources.la
185
186TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
187# utils.cc utils.h
188
189
190#### libparse
191libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
192
193libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc  utils.h
194
195libparse_LDADD =
196libparse_LDFLAGS = -static ${AM_LDFLAGS}
197
198#########################################################
199# the Singular library (*.lib files)
200
201include ${srcdir}/singular-libs
202
203singularlibrarydir = ${datadir}/singular
204singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
205nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
206EXTRA_DIST = grammar.y libparse.ll make_alllib.sh make_grammar make_table \
207             LIB/all.lib.tmpl singular-libs LIB/help.cnf LIB/.singularrc \
208             LIB/COPYING links/slInit_Dynamic.cc gentable.cc
209
210singularalllibrarydir = ${datadir}/singular/LIB
211singularalllibrary = all.lib
212nobase_dist_singularalllibrary_DATA = all.lib
213
214all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary}
215        ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS}
216
217########################### TEST #########################
218TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
219TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
220
221TESTS=test
222
223check_PROGRAMS=$(TESTS)
224
225test_SOURCES = test.cc
226test_LDADD = libSingular.la
227
228#########################################################
229# These files are built first
230BUILT_SOURCES = all.lib gftables MOD
231CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
232
233clean-local:
234        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
235          if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
236        fi
237
238# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
239
240gftables: ${top_srcdir}/factory/gftables
241        ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
242
243${abs_builddir}/LIB: ${srcdir}/LIB
244        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
245          ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
246        fi
247
248MOD:
249        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
250          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
251        fi
252
253echoLIBS:
254        @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
255
Note: See TracBrowser for help on using the repository browser.