source: git/kernel/Makefile.am @ bd795d

spielwiese
Last change on this file since bd795d was bd795d, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
improved build system in Singuar/: building of libparse and [TE]Singular ADD/CHG: distribute and install emacs/ (under $(datadir)/) CHG: moved fegetopt.{c,h} from kernel/ to Singular/ ADD: build and install Singular/[TE]Singular ADD: better Singular/libparse CHG: only build the static release and debug binaries Singular&Singularg by default!
  • Property mode set to 100644
File size: 4.8 KB
Line 
1# ACLOCAL_AMFLAGS = -I ${top_srcdir}/m4
2
3# PIPE = -pipe
4# ???
5#LD_DYN_FLAGS   = -ldl -rdynamic
6#SFLAGS         = -fpic -DPIC
7#SLDFLAGS       = -shared
8#LD_LIBC                = -lc
9#STATIC_LDFLAGS = -static
10
11
12CXXTEMPLFLAGS = ## -fno-implicit-templates
13
14libkernel_LTLIBRARIES = libkernel.la libkernel_g.la
15libkerneldir = $(libdir)/singular
16
17libkernel_la_CFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE}
18libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE}
19## -pedantic
20
21libkernel_la_CXXFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
22libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
23# -fdiagnostics-show-option
24
25libkernel_la_CPPFLAGS   = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
26libkernel_g_la_CPPFLAGS = -DHAVE_CONFIG_H
27
28INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) -I${top_srcdir}/factory/include -I${top_builddir}/factory/include $(FACTORY_CFLAGS) $(NTL_CFLAGS)
29
30SOURCES = polys.cc febase.cc feread.cc \
31    hdegree.cc hilb.cc hutil.cc \
32    gr_kstd2.cc \
33    ideals.cc \
34    khstd.cc kstdfac.cc \
35    kstd1.cc kstd2.cc kutil.cc \
36    misc.cc \
37    fast_maps.cc \
38    fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
39    kspoly.cc kpolys.cc \
40    syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \
41    timer.cc \
42    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
43    walkProc.cc walkMain.cc walkSupport.cc \
44    eigenval.cc units.cc \
45    fast_mult.cc digitech.cc \
46    tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \
47    ratgring.cc shiftgb.cc gfan.cc \
48    linearAlgebra.cc nc.cc preimage.cc \
49    mod2.h
50
51libkernel_la_SOURCES   = $(SOURCES)
52libkernel_g_la_SOURCES = $(SOURCES)
53
54KERNELHEADERS = polys.h hutil.h stairc.h ideals.h \
55        structs.h \
56        syz.h \
57        fast_maps.h \
58        febase.h \
59        walkProc.h walkMain.h walkSupport.h\
60        kstdfac.h kmatrix.h\
61        kutil.h \
62        khstd.h kstd1.h \
63        fglm.h fglmgauss.h fglmvec.h \
64        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \
65        eigenval.h units.h \
66        ratgring.h shiftgb.h nc.h \
67        gfan.h bbcone.h bbfan.h \
68        preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \
69        digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \
70        linearAlgebra.h page.h \
71        f5c.h f5data.h f5gb.h f5lists.h
72
73libkernel_includedir  =${includedir}/singular/kernel/
74libkernel_include_HEADERS   = $(KERNELHEADERS)
75
76if ENABLE_FACTORY
77  USE_FACTORY = -L${top_builddir}/factory
78else
79  USE_FACTORY =
80endif
81
82AM_LDFLAGS = -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/resources -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
83
84
85TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/tests/MOD:${abs_top_builddir}/libpolys/tests/gftables'
86TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
87
88TESTS = test-s-g test-s-r test-d-g test-d-r
89check_PROGRAMS = $(TESTS)
90
91test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
92test_s_g_CFLAGS = ${PIPE}
93
94test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
95test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
96
97testsources = test.cc
98test_s_r_SOURCES = $(testsources)
99test_s_g_SOURCES = $(testsources)
100
101test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
102test_s_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
103
104test_s_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
105test_s_g_CPPFLAGS = -DHAVE_CONFIG_H
106
107test_s_r_LDFLAGS = -static
108test_s_g_LDFLAGS = -static
109
110
111test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
112test_d_g_CFLAGS = ${PIPE}
113
114test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
115test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
116
117test_d_r_SOURCES = $(testsources)
118test_d_g_SOURCES = $(testsources)
119
120test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
121test_d_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
122
123test_d_r_CPPFLAGS = -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
124test_d_g_CPPFLAGS = -DHAVE_CONFIG_H
125
126
127
128# These files are built first
129BUILT_SOURCES = MOD
130
131MOD: ${top_builddir}/libpolys/tests/MOD
132        ln -snf ${top_builddir}/libpolys/tests/MOD ${builddir}/MOD
133
134
135CLEANFILES = $(TESTS) $(BUILT_SOURCES)
136
137
138
139
Note: See TracBrowser for help on using the repository browser.