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
|
# 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 = $(GIVARO_CXXFLAGS)
AM_CPPFLAGS += -I$(top_srcdir)/src/kernel -I$(top_builddir)/src/kernel/system
LDADD = $(top_builddir)/src/libgivaro.la $(GMP_LIBS) $(LDFLAGS)
AM_LDFLAGS=-static
EXTRA_PROGRAMS=recint-iterator rsa extended-int-types
CLEANFILES=$(EXTRA_PROGRAMS)
recint_iterator_SOURCES = recint-iterator.C
extended_int_types_SOURCES = extended-int-types.C
rsa_SOURCES = rsa.C
#external flags
AM_CPPFLAGS += $(OPTFLAGS)
LDADD += $(OPTLIBES)
# for compilation of new examples
define comp_new_examp
$(AM_V_CXX)$(CXXCOMPILE) $(OPTFLAGS) -c -o $@.$(OBJEXT) $<
$(AM_V_CXXLD)$(CXXLINK) $@.$(OBJEXT) $(LDADD)
endef
%:%.C
$(comp_new_examp)
%:%.cpp
$(comp_new_examp)
|