source: git/libpolys/coeffs/Makefile.am @ 148d3c

spielwiese
Last change on this file since 148d3c was 148d3c, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: fixing the build system (install needed headers on needed places) FIX: libpolys-config is correct now (installed, echo -n-fixed) ADD: trying to use FACTORY_{libs, cflags} as for gmp/ntl CHG: switched from omalloc_debug to omalloc_g ADD: symlink for gftables in libpolys/tests
  • Property mode set to 100644
File size: 2.2 KB
Line 
1lib_LIBRARIES=libcoeffs.a libcoeffs_g.a
2CXXTEMPLFLAGS      = -fno-implicit-templates --no-exceptions
3
4libcoeffs_a_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
5libcoeffs_g_a_CFLAGS = ${PIPE}
6
7libcoeffs_a_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS}
8libcoeffs_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
9# -fdiagnostics-show-option
10
11libcoeffs_a_CPPFLAGS   = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
12libcoeffs_g_a_CPPFLAGS = -DHAVE_CONFIG_H
13
14
15noinst_HEADERS= \
16        gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
17        rintegers.h rmodulo2m.h rmodulon.h shortfl.h \
18        mpr_complex.h mpr_global.h
19
20INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
21
22SOURCES = \
23        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
24        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
25        modulop.cc mpr_complex.cc
26libcoeffs_a_SOURCES   = $(SOURCES)
27libcoeffs_g_a_SOURCES = $(SOURCES)
28
29
30## include_HEADERS = coeffs.h numbers.h
31
32libcoeffs_a_includedir  =$(includedir)/libpolys/coeffs
33libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs
34
35COEFFSHEADERS  = coeffs.h numbers.h si_gmp.h
36libcoeffs_a_include_HEADERS   = $(COEFFSHEADERS)
37libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS)
38
39
40
41## for testing...
42AM_LDFLAGS      = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc -L${top_builddir}/../factory -L${top_builddir}/../omalloc
43
44check_PROGRAMS = test test-g
45
46test_SOURCES   = test.cc
47test_g_SOURCES = test.cc
48
49test_LDADD   = -lcoeffs ${GMP_LIBS} ${NTL_LIBS} -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc
50test_g_LDADD = -lcoeffs_g ${GMP_LIBS} ${NTL_LIBS} ${FACTORY_LIBS} -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g
51
52
53
54test_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
55test_g_CFLAGS = ${PIPE}
56
57test_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} -fimplicit-templates
58test_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} -fimplicit-templates
59# -fdiagnostics-show-option
60
61test_CPPFLAGS   = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
62test_g_CPPFLAGS = -DHAVE_CONFIG_H
Note: See TracBrowser for help on using the repository browser.