#! /bin/sh
# 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.


prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib

CXX = g++
AR  = ar

OPTFLAGS =  -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -std=gnu++11
GMP_CFLAGS = 
GMP_LIBS   =  -lgmpxx -lgmp

GIVARO_CXXFLAGS = -I${includedir}
GIVARO_LIBS  = -L${libdir} -lgivaro 

CXXFLAGS += ${OPTFLAGS} ${GIVARO_CXXFLAGS} ${GMP_CFLAGS}
LOADLIBES += ${GIVARO_LIBS} ${GMP_LIBS}

.SUFFIXES: .o .C

.C.o:
	${CXX}  -o $@ -c $<  ${CXXFLAGS} 
 
.C:
	${CXX}  -o $@ $<  ${CXXFLAGS}  ${LOADLIBES} 
