source: git/kernel/Makefile.am @ fbc7cb

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