/
Makefile.am
executable file
·40 lines (29 loc) · 1.28 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright(c)'1994-2009 by The Givaro group
# This file is part of Givaro.
# Givaro is governed by the CeCILL-B license under French law
# and abiding by the rules of distribution of free software.
# see the COPYRIGHT file for more details.
examples: $(EXTRA_PROGRAMS)
AM_CPPFLAGS=-I$(top_builddir)
AM_CXXFLAGS = @DEFAULT_CFLAGS@
AM_CPPFLAGS += -I$(top_builddir)/src/kernel/system -I$(top_builddir)/src/kernel/ring -I$(top_builddir)/src/kernel/memory -I$(top_builddir)/src/kernel/integer -I$(top_builddir)/src/kernel -I$(top_builddir)/src/kernel/bstruct -I$(top_builddir)/src/kernel/rational -I$(top_builddir)/src/library/tools -I$(top_builddir)/src/library/poly1 -I$(top_builddir)/src/kernel -I$(top_builddir)/src/kernel/gmp++ -I$(top_builddir)/src/kernel/recint
AM_CPPFLAGS += $(GMP_CFLAGS)
LDADD = $(top_builddir)/src/libgivaro.la $(GMP_LIBS) $(LDFLAGS)
AM_LDFLAGS=-static
EXTRA_PROGRAMS=iratrecon polydouble
CLEANFILES=$(EXTRA_PROGRAMS)
iratrecon_SOURCES = iratrecon.C
polydouble_SOURCES = polydouble.C
#external flags
AM_CPPFLAGS += $(OPTFLAGS)
LDADD += $(OPTLIBES)
# for compilation of new examples
GIVARO_BIN=@bindir@
define comp_new_examp
$(AM_V_CXX)$(CXXCOMPILE) -c -o $@.$(OBJEXT) $<
$(AM_V_CXXLD)$(CXXLINK) $@.$(OBJEXT) $(LDADD)
endef
%:%.C
$(comp_new_examp)
%:%.cpp
$(comp_new_examp)