source: git/kernel/Makefile.am @ 7b8818

spielwiese
Last change on this file since 7b8818 was 7b8818, checked in by Yue Ren <ren@…>, 11 years ago
chg: deleted old packages for convex geometry in Singular
  • Property mode set to 100644
File size: 5.1 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2# TODO: use ${top_srcdir} instead of .. in the above?
3
4# PIPE = -pipe
5# ???
6#LD_DYN_FLAGS   = -ldl -rdynamic
7#SFLAGS         = -fpic -DPIC
8#SLDFLAGS       = -shared
9#LD_LIBC                = -lc
10#STATIC_LDFLAGS = -static
11
12
13CXXTEMPLFLAGS =-ftrapv ## -fno-implicit-templates
14
15if WANT_DEBUG
16  LIB_G=libkernel_g.la
17else
18  LIB_G=
19endif
20
21libkernel_LTLIBRARIES = libkernel.la ${LIB_G}
22libkerneldir = $(libdir)/singular
23
24libkernel_la_CFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE}
25libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE}
26## -pedantic
27
28libkernel_la_CXXFLAGS   = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
29libkernel_g_la_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
30# -fdiagnostics-show-option
31
32AM_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)
33
34libkernel_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
35libkernel_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
36
37SOURCES = polys.cc febase.cc feread.cc \
38    hdegree.cc hilb.cc hutil.cc \
39    ideals.cc \
40    khstd.cc kstdfac.cc \
41    kstd1.cc kstd2.cc kutil.cc \
42    nc.cc sca.cc gr_kstd2.cc \
43    misc.cc \
44    fast_maps.cc \
45    fglmzero.cc fglmvec.cc fglmgauss.cc fglmhom.cc fglmcomb.cc \
46    kspoly.cc kpolys.cc \
47    syz.cc syz0.cc syz1.cc syz2.cc syz3.cc \
48    timer.cc \
49    GMPrat.cc multicnt.cc npolygon.cc semic.cc spectrum.cc splist.cc \
50    walkProc.cc walkMain.cc walkSupport.cc \
51    eigenval.cc units.cc \
52    fast_mult.cc digitech.cc \
53    tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \
54    ratgring.cc shiftgb.cc \
55    linearAlgebra.cc preimage.cc \
56    mod2.h
57
58libkernel_la_SOURCES   = $(SOURCES)
59libkernel_g_la_SOURCES = $(SOURCES)
60
61KERNELHEADERS = mod2.h polys.h hutil.h stairc.h ideals.h \
62        structs.h \
63        syz.h \
64        fast_maps.h \
65        febase.h \
66        walkProc.h walkMain.h walkSupport.h\
67        kstdfac.h kmatrix.h\
68        kutil.h \
69        khstd.h kstd1.h \
70        fglm.h fglmgauss.h fglmvec.h \
71        GMPrat.h multicnt.h npolygon.h semic.h spectrum.h splist.h \
72        eigenval.h units.h \
73        ratgring.h shiftgb.h nc.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.