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

spielwiese
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
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)  $(GMP_CPPFLAGS) $(NTL_CPPFLAGS) $(FLINT_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"'
6
7all-local: feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD ${abs_builddir}/LIB Singular$(EXEEXT) ESingular$(EXEEXT) TSingular$(EXEEXT)
8
9if SING_WIN
10SUBDIRS = ${BUILTIN_MODULES} . dyn_modules
11else
12SUBDIRS = dyn_modules .
13endif
14
15########################### Possible builtin modules... #########################
16BUILTIN_FLAGS = ${BUILTIN_LIBS}
17
18########################### libSingular* #########################
19
20libSingular_LTLIBRARIES = libSingular.la
21libSingulardir = $(libdir)
22
23libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
24
25SOURCES = \
26   links/asciiLink.cc\
27   attrib.cc\
28   blackbox.cc\
29   calcSVD.cc\
30   cntrlc.cc\
31   countedref.cc\
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\
53   mod_lib.cc\
54   links/ndbm.cc\
55   newstruct.cc\
56   number2.cc\
57   pcv.cc\
58   links/pipeLink.cc\
59   scanner.cc\
60   sdb.cc\
61   links/silink.cc\
62   links/sing_dbm.cc\
63   links/slInit_Static.cc\
64   links/ssiLink.cc\
65   links/semaphore.c\
66   subexpr.cc\
67   pyobject_setup.cc\
68   walk.cc\
69   walk_ip.cc\
70   wrapper.cc\
71   mmstd.c claptmpl.cc\
72   febase.cc \
73   svd/libs/amp.cpp \
74   svd/libs/ap.cpp
75
76#   links/slInit_Dynamic.cc
77
78libSingular_la_SOURCES   = $(SOURCES)
79
80SingularHEADERS = \
81   attrib.h \
82   blackbox.h \
83   cntrlc.h \
84   countedref.h \
85   links/dbm_sl.h \
86   distrib.h \
87   eigenval_ip.h \
88   feOpt.h feOptTab.h fehelp.h \
89   fglm.h \
90   gms.h \
91   grammar.h \
92   idrec.h \
93   ipconv.h \
94   ipid.h \
95   ipprint.h \
96   ipshell.h \
97   libparse.h \
98   libsingular.h \
99   linearAlgebra_ip.h\
100   lists.h \
101   locals.h \
102   maps_ip.h \
103   misc_ip.h \
104   mmalloc.h \
105   mod_lib.h \
106   links/ndbm.h \
107   newstruct.h \
108   number2.h \
109   pcv.h \
110   links/pipeLink.h \
111   pyobject_setup.h \
112   sdb.h \
113   links/silink.h \
114   links/sing_dbm.h \
115   links/slInit.h \
116   links/ssiLink.h \
117   links/simpleipc.h \
118   stype.h \
119   subexpr.h \
120   table.h \
121   tok.h \
122   walk.h \
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
129
130
131# -DMAKE_DISTRIBUTION
132
133# plural_cmd.inc
134nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
135
136libSingular_la_LDFLAGS    =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS}
137libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
138
139libSingular_includedir = ${includedir}/singular/Singular
140nobase_libSingular_include_HEADERS = $(SingularHEADERS)
141
142#########################################################
143# handle all the generated *.inc
144
145noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS
146
147gentable1_SOURCES = gentable.cc grammar.h tok.h table.h
148gentable1_CPPFLAGS = ${AM_CPPFLAGS}
149
150feOptGen_SOURCES = feOptGen.cc feOptGen.h
151feOptGen_CPPFLAGS = ${AM_CPPFLAGS}
152
153feOptES_SOURCES = feOptGen.cc feOptGen.h
154feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR
155
156feOptTS_SOURCES = feOptGen.cc feOptGen.h
157feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR
158
159########################### Singular* #########################
160
161EXTRA_PROGRAMS =  libparse Singulard
162
163# the "optional_programs" variable should be defined in the configure
164# script, and listed in an AC_SUBST macro
165optional_Singular_programs =
166
167bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
168
169Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
170
171Singular_LDADD = libSingular.la ${BUILTIN_FLAGS}
172
173Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS}
174
175Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
176
177Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS}
178
179Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
180
181scriptdir = $(libexecdir)/singular/MOD
182dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win
183
184#### ESingular
185ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
186# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
187ESingular_LDADD =  ${top_builddir}/libpolys/reporter/libreporter.la \
188${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \
189${top_builddir}/resources/libsingular_resources.la
190
191
192ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
193
194#### same for TSingular
195TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
196# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
197TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
198${top_builddir}/libpolys/misc/libmisc.la ${top_builddir}/omalloc/libomalloc.la \
199${top_builddir}/resources/libsingular_resources.la
200
201TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
202# utils.cc utils.h
203
204
205#### libparse
206libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
207
208libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc  utils.h
209
210libparse_LDADD = ${top_builddir}/omalloc/libomalloc.la
211libparse_LDFLAGS = -static ${AM_LDFLAGS}
212
213#########################################################
214# the Singular library (*.lib files)
215
216include ${srcdir}/singular-libs
217
218singularlibrarydir = ${datadir}/singular
219singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
220nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
221EXTRA_DIST = grammar.y libparse.ll make_alllib.sh LIB/all.lib.tmpl \
222             singular-libs LIB/help.cnf LIB/.singularrc LIB/COPYING \
223             links/slInit_Dynamic.cc
224
225singularalllibrarydir = ${datadir}/singular/LIB
226singularalllibrary = all.lib
227nobase_dist_singularalllibrary_DATA = all.lib
228
229all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary}
230        ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS}
231
232########################### TEST #########################
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}'
235
236TESTS=test
237
238check_PROGRAMS=$(TESTS)
239
240test_SOURCES = test.cc
241test_LDADD = libSingular.la
242
243#########################################################
244# These files are built first
245BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD
246CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
247
248clean-local:
249        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
250          if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
251        fi
252
253feOpt.inc: feOptGen$(EXEEXT)
254        ${builddir}/feOptGen$(EXEEXT)
255
256feOptES.inc: feOptES$(EXEEXT)
257        ${builddir}/feOptES$(EXEEXT)
258
259feOptTS.inc: feOptTS$(EXEEXT)
260        ${builddir}/feOptTS$(EXEEXT)
261
262iparith.inc: gentable1$(EXEEXT) table.h
263        ${builddir}/gentable1$(EXEEXT)
264
265# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
266
267gftables: ${top_srcdir}/factory/gftables
268        ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
269
270${abs_builddir}/LIB: ${srcdir}/LIB
271        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
272          ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
273        fi
274
275MOD:
276        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
277          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
278        fi
279
280echoLIBS:
281        @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
282
Note: See TracBrowser for help on using the repository browser.