source: git/Singular/Makefile.am @ dc50ee

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