File: givaro-makefile.in

package info (click to toggle)
givaro 4.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,140 kB
  • ctags: 5,874
  • sloc: cpp: 31,446; makefile: 1,032; sh: 662; csh: 196
file content (43 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
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
41
42
43
#!/usr/bin/make -f
# 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=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@

CXX = @CXX@
AR  = ar

OPTFLAGS = @CXXFLAGS@
GMP_CFLAGS = @GMP_CFLAGS@
GMP_LIBS   = @GMP_LIBS@

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

CXXFLAGS += ${OPTFLAGS} 

CXXFLAGS += ${GIVARO_CXXFLAGS} ${GMP_CFLAGS}
LDFLAGS += ${GIVARO_LIBDIR} ${GMP_LIBDIR}
LOADLIBES += ${GIVARO_LIBS} ${GMP_LIBS}

.SUFFIXES: .o .C .cpp

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

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

.C:
	${CXX} ${CXXFLAGS} $(LDFLAGS) -o $@ $<  $(LOADLIBES) $(LDLIBS)

.cpp:
	${CXX} ${CXXFLAGS} $(LDFLAGS) -o $@ $<  $(LOADLIBES) $(LDLIBS)