source: git/Singular/Makefile.am @ 4470c0e

spielwiese
Last change on this file since 4470c0e was 4470c0e, checked in by Hans Schoenemann <hannes@…>, 3 years ago
configure: restructure libpolys
  • Property mode set to 100644
File size: 6.7 KB
Line 
1ACLOCAL_AMFLAGS = -I../m4
2
3AM_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)
4
5AM_CXXFLAGS=$(NTL_CPPFLAGS)
6
7all-local: 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 feOpt.inc feOptTS.inc feOptES.inc\
89   fglm.h \
90   gms.h \
91   grammar.h \
92   idrec.h \
93   iparith.inc \
94   ipconv.h \
95   ipid.h \
96   ipprint.h \
97   ipshell.h \
98   libparse.h \
99   libsingular.h \
100   linearAlgebra_ip.h\
101   lists.h \
102   locals.h \
103   maps_ip.h \
104   misc_ip.h \
105   mmalloc.h \
106   mod_lib.h \
107   links/ndbm.h \
108   newstruct.h \
109   number2.h \
110   pcv.h \
111   links/pipeLink.h \
112   pyobject_setup.h \
113   sdb.h \
114   links/silink.h \
115   links/sing_dbm.h \
116   links/slInit.h \
117   links/ssiLink.h \
118   links/simpleipc.h \
119   stype.h \
120   subexpr.h \
121   table.h \
122   tok.h \
123   walk.h \
124   fevoices.h \
125   svd_si.h \
126   svd/libs/amp.h  svd/libs/ap.h  svd/libs/stdafx.h \
127   svd/bdsvd.h  svd/bidiagonal.h  svd/blas.h  svd/lq.h  svd/qr.h  svd/reflections.h \
128   svd/rotations.h  svd/svd.h
129
130
131
132# -DMAKE_DISTRIBUTION
133
134# plural_cmd.inc
135nodist_libSingular_la_SOURCES = feOpt.inc iparith.inc
136
137libSingular_la_LDFLAGS    =$(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION} $(CCLUSTER_LIBS) ${PTHREAD_LDFLAGS}
138libSingular_la_LIBADD     =${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${BUILTIN_FLAGS} ${top_builddir}/kernel/libkernel.la ${PTHREAD_LIBS}
139
140libSingular_includedir = ${includedir}/singular/Singular
141nobase_libSingular_include_HEADERS = $(SingularHEADERS)
142
143########################### Singular* #########################
144
145EXTRA_PROGRAMS =  libparse Singulard
146
147# the "optional_Singular_programs" variable should be defined in the configure
148# script, and listed in an AC_SUBST macro
149
150bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
151
152Singular_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
153
154Singular_LDADD = libSingular.la ${OMALLOC_LIBS} ${BUILTIN_FLAGS}
155
156Singular_LDFLAGS = -static ${AM_LDFLAGS} ${BUILTIN_FLAGS}
157
158Singulard_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc  utils.h
159
160Singulard_LDADD = libSingular.la ${BUILTIN_FLAGS}
161
162Singulard_LDFLAGS = -shared ${AM_LDFLAGS} ${BUILTIN_FLAGS}
163
164scriptdir = $(libexecdir)/singular/MOD
165dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win surfex
166
167#### ESingular
168ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
169# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
170ESingular_LDADD =  ${top_builddir}/libpolys/libpolys.la \
171  ${OMALLOC_LIBS} \
172  ${top_builddir}/resources/libsingular_resources.la
173
174
175ESingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptES.inc feOpt.cc
176
177#### same for TSingular
178TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
179# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
180TSingular_LDADD = ${top_builddir}/libpolys/libpolys.la \
181  ${OMALLOC_LIBS} \
182  ${top_builddir}/resources/libsingular_resources.la
183
184TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
185# utils.cc utils.h
186
187
188#### libparse
189libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
190
191libparse_SOURCES = libparse.cc fegetopt.c fegetopt.h utils.cc  utils.h
192
193libparse_LDADD =
194libparse_LDFLAGS = -static ${AM_LDFLAGS}
195
196#########################################################
197# the Singular library (*.lib files)
198
199include ${srcdir}/singular-libs
200
201singularlibrarydir = ${datadir}/singular
202singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
203nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
204EXTRA_DIST = grammar.y libparse.ll make_alllib.sh make_grammar make_table \
205             LIB/all.lib.tmpl singular-libs LIB/help.cnf LIB/.singularrc \
206             LIB/COPYING links/slInit_Dynamic.cc gentable.cc
207
208singularalllibrarydir = ${datadir}/singular/LIB
209singularalllibrary = all.lib
210nobase_dist_singularalllibrary_DATA = all.lib
211
212all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary}
213        ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS}
214
215########################### TEST #########################
216TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
217TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
218
219TESTS=test
220
221check_PROGRAMS=$(TESTS)
222
223test_SOURCES = test.cc
224test_LDADD = libSingular.la
225
226#########################################################
227# These files are built first
228BUILT_SOURCES = all.lib gftables MOD
229CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
230
231clean-local:
232        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
233          if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
234        fi
235
236# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
237
238gftables: ${top_srcdir}/factory/gftables
239        ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
240
241${abs_builddir}/LIB: ${srcdir}/LIB
242        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
243          ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
244        fi
245
246MOD:
247        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
248          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
249        fi
250
251echoLIBS:
252        @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
253
Note: See TracBrowser for help on using the repository browser.