source: git/Singular/Makefile.am @ c987db

spielwiese
Last change on this file since c987db was ad2543e, checked in by Hans Schoenemann <hannes@…>, 15 months ago
libparse: indep. of singular_ressources
  • Property mode set to 100644
File size: 6.6 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) -fno-delete-null-pointer-checks
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   eigenval_ip.h \
87   feOpt.h feOptTab.h fehelp.h feOpt.inc feOptTS.inc feOptES.inc\
88   fglm.h \
89   gms.h \
90   grammar.h \
91   idrec.h \
92   iparith.inc \
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} $(CCLUSTER_LIBS) ${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########################### Singular* #########################
143dist_man1_MANS = Singular.man ESingular.man TSingular.man
144
145EXTRA_PROGRAMS =  libparse
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 utils.cc  utils.h
153
154Singular_LDADD = libSingular.la ${OMALLOC_LIBS} ${BUILTIN_FLAGS} $(FACTORY_LIBS)
155
156Singular_LDFLAGS = ${AM_LDFLAGS} ${BUILTIN_FLAGS}
157
158scriptdir = $(libexecdir)/singular/MOD
159dist_script_SCRIPTS = singularsurf singularsurf_jupyter singularsurf_win surfex
160
161#### ESingular
162ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
163ESingular_LDADD =  ${top_builddir}/libpolys/reporter/libreporter.la \
164${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
165${top_builddir}/resources/libsingular_resources.la
166
167
168ESingular_SOURCES = emacs.cc feOptES.inc feOpt.cc
169
170#### same for TSingular
171TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
172TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
173${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
174${top_builddir}/resources/libsingular_resources.la
175
176TSingular_SOURCES = emacs.cc feOptTS.inc feOpt.cc
177# utils.cc utils.h
178
179
180#### libparse
181libparse_CPPFLAGS = ${AM_CPPFLAGS} -DSTANDALONE_PARSER
182
183libparse_SOURCES = libparse.cc utils.cc utils.h
184
185#libparse_LDADD = ${top_builddir}/resources/libsingular_resources.la
186libparse_LDFLAGS = ${AM_LDFLAGS}
187
188#########################################################
189# the Singular library (*.lib files)
190
191include ${srcdir}/singular-libs
192
193singularlibrarydir = ${datadir}/singular
194singularlibrary = $(SLIB0:%=LIB/%) $(SLIB1:%=LIB/%) $(PLIBS:%=LIB/%) $(SLIB2:%=LIB/%)
195nobase_dist_singularlibrary_DATA = LIB/tst.lib LIB/help.cnf ${singularlibrary}
196EXTRA_DIST = grammar.y libparse.ll make_alllib.sh make_grammar make_table \
197             LIB/all.lib.tmpl singular-libs LIB/help.cnf LIB/.singularrc \
198             LIB/COPYING links/slInit_Dynamic.cc gentable.cc
199
200singularalllibrarydir = ${datadir}/singular/LIB
201singularalllibrary = all.lib
202nobase_dist_singularalllibrary_DATA = all.lib
203
204all.lib: ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${singularlibrary}
205        ${srcdir}/make_alllib.sh ${srcdir}/LIB/all.lib.tmpl ${SLIB0} ${PLIBS}
206
207########################### TEST #########################
208TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables'
209TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
210
211TESTS=test
212
213check_PROGRAMS=$(TESTS)
214
215test_SOURCES = test.cc
216test_LDADD = ${builddir}/../omalloc/libomalloc.la libSingular.la
217
218#########################################################
219# These files are built first
220BUILT_SOURCES = all.lib gftables MOD
221CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS)
222
223clean-local:
224        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
225          if [ -L ${abs_builddir}/LIB ]; then unlink ${abs_builddir}/LIB; fi \
226        fi
227
228# # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html
229
230gftables: ${top_srcdir}/factory/gftables
231        ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables
232
233${abs_builddir}/LIB: ${srcdir}/LIB
234        if [ "${abs_builddir}" != "${abs_srcdir}" ]; then \
235          ln -snf ${abs_srcdir}/LIB ${abs_builddir}/; \
236        fi
237
238MOD:
239        if [ -d "${top_builddir}/libpolys/polys/.libs" ]; then \
240          ln -snf ${top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD; \
241        fi
242
243echoLIBS:
244        @echo ${SLIB0} ${SLIB1} ${SLIB2} ${PLIBS}
245
Note: See TracBrowser for help on using the repository browser.