source: git/Singular/Makefile.am @ 35d0c19

spielwiese
Last change on this file since 35d0c19 was 35d0c19, checked in by Hans Schoenemann <hannes@…>, 10 years ago
windows port: removed htmlhelp, sing_win.*
  • Property mode set to 100644
File size: 7.4 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
7SUBDIRS = dyn_modules
8
9########################### Possible builtin modules... #########################
10BUILTIN_FLAGS = ${BUILTIN_LIBS}
11
12########################### libSingular* #########################
13
14libSingular_LTLIBRARIES = libSingular.la
15libSingulardir = $(libdir)
16
17libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DLIBSINGULAR ${PTHREAD_CFLAGS}
18
19SOURCES = \
20   links/asciiLink.cc\
21   attrib.cc\
22   blackbox.cc\
23   calcSVD.cc\
24   cntrlc.cc\
25   countedref.cc\
26   denom_list.cc\
27   eigenval_ip.cc\
28   extra.cc\
29   feOpt.cc\
30   fehelp.cc\
31   fevoices.cc\
32   fglm.cc\
33   gms.cc\
34   grammar.cc\
35   iparith.cc\
36   ipassign.cc\
37   ipconv.cc\
38   ipid.cc\
39   iplib.cc\
40   ipprint.cc\
41   ipshell.cc\
42   libparse.cc\
43   linearAlgebra_ip.cc\
44   lists.cc\
45   maps_ip.cc\
46   misc_ip.cc\
47   mod_lib.cc\
48   links/ndbm.cc\
49   newstruct.cc\
50   number2.cc\
51   pcv.cc\
52   links/pipeLink.cc\
53   scanner.cc\
54   sdb.cc\
55   links/silink.cc\
56   links/sing_dbm.cc\
57   links/slInit_Static.cc\
58   links/ssiLink.cc\
59   links/semaphore.c\
60   subexpr.cc\
61   pyobject_setup.cc\
62   walk.cc\
63   walk_ip.cc\
64   wrapper.cc\
65   mmstd.c claptmpl.cc\
66   febase.cc
67
68#   links/slInit_Dynamic.cc
69
70libSingular_la_SOURCES   = $(SOURCES)
71
72SingularHEADERS = \
73   attrib.h \
74   blackbox.h \
75   cntrlc.h \
76   countedref.h \
77   links/dbm_sl.h \
78   distrib.h \
79   eigenval_ip.h \
80   feOpt.h feOptTab.h fehelp.h \
81   fglm.h \
82   gms.h \
83   grammar.h \
84   idrec.h \
85   ipconv.h \
86   ipid.h \
87   ipprint.h \
88   ipshell.h \
89   libparse.h \
90   libsingular.h \
91   linearAlgebra_ip.h\
92   lists.h \
93   locals.h \
94   maps_ip.h \
95   misc_ip.h \
96   mmalloc.h \
97   mod_lib.h \
98   omSingularConfig.h \
99   links/ndbm.h \
100   newstruct.h \
101   number2.h \
102   pcv.h \
103   links/pipeLink.h \
104   pyobject_setup.h \
105   run.h \
106   sdb.h \
107   links/silink.h \
108   links/sing_dbm.h \
109   links/slInit.h \
110   links/ssiLink.h \
111   links/simpleipc.h \
112   stype.h \
113   subexpr.h \
114   table.h \
115   tok.h \
116   walk.h \
117   fevoices.h
118
119
120# -DMAKE_DISTRIBUTION
121
122# plural_cmd.inc
123nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
124
125libSingular_la_LDFLAGS    =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} ${PTHREAD_LDFLAGS}
126libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
127
128libSingular_includedir = ${includedir}/singular/Singular
129nobase_libSingular_include_HEADERS = $(SingularHEADERS)
130
131#########################################################
132# handle all the generated *.inc
133
134noinst_PROGRAMS = gentable1 feOptGen feOptES feOptTS
135
136gentable1_SOURCES = gentable.cc grammar.h tok.h table.h
137gentable1_CPPFLAGS = ${AM_CPPFLAGS}
138
139feOptGen_SOURCES = feOptGen.cc feOptGen.h
140feOptGen_CPPFLAGS = ${AM_CPPFLAGS}
141
142feOptES_SOURCES = feOptGen.cc feOptGen.h
143feOptES_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR
144
145feOptTS_SOURCES = feOptGen.cc feOptGen.h
146feOptTS_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR
147
148########################### Singular* #########################
149
150EXTRA_PROGRAMS =  libparse Singulard
151
152# the "optional_programs" variable should be defined in the configure
153# script, and listed in an AC_SUBST macro
154optional_Singular_programs =
155
156bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
157
158Singular ESingular TSingular $(optional_Singular_programs): ${abs_builddir}/LIB
159
160Singular_SOURCES = tesths.cc mmalloc.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 mmalloc.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### plural_cmd.inc
235# These files are built first
236BUILT_SOURCES = feOpt.inc feOptTS.inc feOptES.inc iparith.inc all.lib gftables MOD
237
238CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
239
240clean-local:
241        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
242          if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
243        fi
244
245feOpt.inc: feOptGen$(EXEEXT)
246        ${builddir}/feOptGen$(EXEEXT)
247
248feOptES.inc: feOptES$(EXEEXT)
249        ${builddir}/feOptES$(EXEEXT)
250
251feOptTS.inc: feOptTS$(EXEEXT)
252        ${builddir}/feOptTS$(EXEEXT)
253
254# plural_cmd.inc is only necessary for documentation generation
255#plural_cmd.inc: gentable1$(EXEEXT)
256#       ${builddir}/gentable1$(EXEEXT) argument
257
258iparith.inc: gentable1$(EXEEXT) table.h
259        ${builddir}/gentable1$(EXEEXT)
260
261# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
262
263gftables: ${top_srcdir}/factory/gftables
264        ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
265
266${abs_builddir}/LIB: ${srcdir}/LIB
267        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
268          ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
269        fi
270
271MOD:
272        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
273          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
274        fi       
275
Note: See TracBrowser for help on using the repository browser.