source: git/kernel/Makefile.am @ 6d672b4

spielwiese
Last change on this file since 6d672b4 was 6d672b4, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
ADD: build LTlibraries .la (.a & .so) EVERYWHERE!
  • Property mode set to 100644
File size: 3.6 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 = --no-exceptions ## -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 --no-rtti -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   = -DNDEBUG -DOM_NDEBUG
26#libkernel_g_la_CPPFLAGS =
27
28INCLUDES = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(GMP_CFLAGS) $(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 \
47    f5c.cc ratgring.cc shiftgb.cc gfan.cc \
48    linearAlgebra.cc nc.cc preimage.cc \
49    fegetopt.c 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        fegetopt.h \
67        ratgring.h shiftgb.h nc.h \
68        gfan.h bbcone.h bbfan.h \
69        preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \
70        digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \
71        linearAlgebra.h page.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
83
84
85TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/libpolys/tests/MOD:${top_builddir}/libpolys/tests/gftables'
86TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}'
87
88TESTS = testg testr
89check_PROGRAMS = $(TESTS)
90
91testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
92testg_CFLAGS = ${PIPE}
93
94testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
95testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
96
97testsources = test.cc f5c.h f5data.h f5gb.h f5lists.h
98testr_SOURCES = $(testsources)
99testg_SOURCES = $(testsources)
100
101testr_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
102testg_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
103
104testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
105#testg_CPPFLAGS =
106
107CLEANFILES = $(TESTS)
108
109
110
Note: See TracBrowser for help on using the repository browser.