source: git/kernel/Makefile.am @ 17228e

spielwiese
Last change on this file since 17228e was 17228e, checked in by Hans Schoenemann <hannes@…>, 12 years ago
fix: make check (for non-dbug version) removed: static.h
  • Property mode set to 100644
File size: 5.1 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
14if WANT_DEBUG
15  LIB_G=libkernel_g.la
16else
17  LIB_G=
18endif
19
20libkernel_LTLIBRARIES = libkernel.la ${LIB_G}
21libkerneldir = $(libdir)/singular
22
23libkernel_la_CFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE}
24libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE}
25## -pedantic
26
27libkernel_la_CXXFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
28libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
29# -fdiagnostics-show-option
30
31AM_CPPFLAGS = -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)
32
33libkernel_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
34libkernel_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
35
36SOURCES = polys.cc febase.cc feread.cc \
37    hdegree.cc hilb.cc hutil.cc \
38    ideals.cc \
39    khstd.cc kstdfac.cc \
40    kstd1.cc kstd2.cc kutil.cc \
41    nc.cc sca.cc gr_kstd2.cc \
42    misc.cc \
43    fast_maps.cc \
44    fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
45    kspoly.cc kpolys.cc \
46    syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \
47    timer.cc \
48    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
49    walkProc.cc walkMain.cc walkSupport.cc \
50    eigenval.cc units.cc \
51    fast_mult.cc digitech.cc \
52    tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \
53    ratgring.cc shiftgb.cc gfan.cc \
54    linearAlgebra.cc preimage.cc \
55    mod2.h
56
57libkernel_la_SOURCES   = $(SOURCES)
58libkernel_g_la_SOURCES = $(SOURCES)
59
60KERNELHEADERS = mod2.h polys.h hutil.h stairc.h ideals.h \
61        structs.h \
62        syz.h \
63        fast_maps.h \
64        febase.h \
65        walkProc.h walkMain.h walkSupport.h\
66        kstdfac.h kmatrix.h\
67        kutil.h \
68        khstd.h kstd1.h \
69        fglm.h fglmgauss.h fglmvec.h \
70        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \
71        eigenval.h units.h \
72        ratgring.h shiftgb.h nc.h \
73        gfan.h bbcone.h bbfan.h \
74        preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \
75        digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \
76        linearAlgebra.h \
77        f5c.h f5data.h f5gb.h f5lists.h
78
79libkernel_includedir  =${includedir}/singular/kernel/
80libkernel_include_HEADERS   = $(KERNELHEADERS)
81
82if ENABLE_FACTORY
83  USE_FACTORY = -L${top_builddir}/factory
84else
85  USE_FACTORY =
86endif
87
88AMLDFLAGS = -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter  -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
89
90
91### TODO: the following has to be addapted...
92TESTS_ENVIRONMENT = SINGULARPATH='${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables'
93TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
94
95if WANT_DEBUG
96TESTS = test-s-g test-s-r test-d-g test-d-r
97else
98TESTS = test-s-r test-d-r
99endif
100check_PROGRAMS = $(TESTS)
101
102test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
103test_s_g_CFLAGS = ${PIPE}
104
105test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
106test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
107
108testsources = test.cc
109test_s_r_SOURCES = $(testsources)
110test_s_g_SOURCES = $(testsources)
111
112test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
113test_s_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
114
115test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
116test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
117
118test_s_r_LDFLAGS = -static ${AMLDFLAGS}
119test_s_g_LDFLAGS = -static ${AMLDFLAGS}
120
121
122test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
123test_d_g_CFLAGS = ${PIPE}
124
125test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
126test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
127
128test_d_r_SOURCES = $(testsources)
129test_d_g_SOURCES = $(testsources)
130
131test_d_r_LDADD = -lkernel -lpolys -lcoeffs  -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
132test_d_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g  -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
133
134test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
135test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
136
137test_d_r_LDFLAGS = ${AMLDFLAGS}
138test_d_g_LDFLAGS = ${AMLDFLAGS}
139
140# These files are built first
141# BUILT_SOURCES = MOD
142
143# MOD: ${top_builddir}/libpolys/tests/MOD
144#       ln -snf ${top_builddir}/libpolys/tests/MOD ${builddir}/MOD
145
146
147CLEANFILES = $(TESTS)
148# $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.