source: git/libpolys/coeffs/Makefile.am @ eb76e8

spielwiese
Last change on this file since eb76e8 was eb76e8, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
fix: AMLDFLAGS -> AM_LDFLAGS
  • Property mode set to 100644
File size: 3.9 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../m4
2
3# CXXTEMPLFLAGS =-ftrapv 
4## -fno-implicit-templates
5
6AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${top_srcdir}/../factory/include -I${top_builddir}/../factory/include ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}  -DHAVE_CONFIG_H
7
8# if WANT_DEBUG
9#   LIB_G=libcoeffs_g.la
10# else
11#   LIB_G=
12# endif
13
14libcoeffs_LTLIBRARIES = libcoeffs.la
15# ${LIB_G}
16libcoeffsdir = $(libdir)/singular
17
18# libcoeffs_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
19# libcoeffs_g_la_CFLAGS = ${PIPE}
20#
21# libcoeffs_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
22# libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
23# # -fdiagnostics-show-option
24#
25# libcoeffs_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
26# libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
27
28# libcoeffs_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
29libcoeffs_la_LDFLAGS    = -release ${PACKAGE_VERSION}
30
31
32# noinst_HEADERS= \
33#       gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
34#       rintegers.h rmodulo2m.h rmodulon.h shortfl.h \
35#       mpr_complex.h mpr_global.h
36
37
38SOURCES = \
39        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
40        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
41        modulop.cc mpr_complex.cc \
42  bigintmat.cc  AE.cc OPAE.cc AEp.cc OPAEp.cc AEQ.cc OPAEQ.cc
43
44libcoeffs_la_SOURCES   = $(SOURCES)
45# libcoeffs_g_la_SOURCES = $(SOURCES)
46
47libcoeffs_includedir  =$(includedir)/singular/coeffs
48libcoeffs_include_HEADERS = coeffs.h numbers.h si_gmp.h gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h rintegers.h rmodulo2m.h rmodulon.h shortfl.h mpr_complex.h mpr_global.h \
49  bigintmat.h Enumerator.h AE.h OPAE.h AEp.h OPAEp.h AEQ.h OPAEQ.h
50
51
52## for testing...
53if ENABLE_FACTORY
54  USE_FACTORY = -L${top_builddir}/../factory
55else
56  USE_FACTORY =
57endif
58
59AM_LDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${top_builddir}/../resources
60
61TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
62TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
63
64# if WANT_DEBUG
65# TESTS = test_s_g test_s_r test_d_g test_d_r
66# else
67TESTS = test_s_r test_d_r
68# endif
69
70check_PROGRAMS = $(TESTS)
71
72test_s_r_SOURCES = test.cc
73# test_s_g_SOURCES = test.cc
74
75test_d_r_SOURCES = test.cc
76# test_d_g_SOURCES = test.cc
77
78
79test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
80# test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
81
82test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lresources ${NTL_LIBS} ${GMP_LIBS}
83# test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lresources_g ${NTL_LIBS} ${GMP_LIBS}
84
85
86# test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
87# #test_s_g_CFLAGS = ${PIPE}
88#
89# test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
90# #test_d_g_CFLAGS = ${PIPE}
91
92
93
94# test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
95# # -fimplicit-templates
96# test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
97# # -fimplicit-templates
98# # -fdiagnostics-show-option
99# test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
100# test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
101
102
103
104# test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
105# test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
106#
107# test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
108# test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
109# test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
110# test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
111
112
113test_s_r_LDFLAGS = -static ${AM_LDFLAGS}
114# test_s_g_LDFLAGS = -static ${AM_LDFLAGS}
115
116test_d_r_LDFLAGS = ${AM_LDFLAGS}
117# test_d_g_LDFLAGS = ${AM_LDFLAGS}
Note: See TracBrowser for help on using the repository browser.