Debian Codegraph @

3rdparty/gmm/Makefile

raw
1 # Downloading and compiling extra libraries
2 # -----------------------------------------
3
4 include cxxflags
5
6 # Downloading and compiling FFTW
7 # ------------------------------
8 PKG=gmm
9 # $(PKG) information
10 SRCDIR=$(PKG)-$(PKG_VERSION)
11 PACKAGE=$(PKG)-$(PKG_VERSION).tar.gz
12 SERVER=http://download.gna.org/getfem/stable
13 PKGDIR=../pkg
14 PKG_VERSION=4.2
15 INSTALL=../..
16
17
18 $(PKG):FAIT
19
20 FAITwin32-dll-target:
21 echo "On Pure Win32 (to hard to compile) "
22
23 FAIT:
24 $(MAKE) install
25 touch FAIT
26 $(MAKE) WHERE
27
28 FAIRE: $(SRCDIR)
29 cd $(SRCDIR) && ./configure --disable-dependency-tracking --prefix=`pwd`/$(INSTALL) CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP='gcc -E' CXXFLAGS="$(CXXFLAGS)"
30 cd $(SRCDIR) && make
31 touch FAIRE
32 install: FAIRE
33 cd $(SRCDIR) && make install
34
35
36 $(SRCDIR): $(PKGDIR)/$(PACKAGE)
37 gunzip -c $^ | tar xf -
38
39 $(PKGDIR)/$(PACKAGE):
40 ../getall -o Gmm++ -a
41
42 clean: clean-local
43
44 clean-local:
45 -rm -rf $(PKG)-* FAIT FAIRE $(SRCDIR)
46 -rm ../lib/WHERE.gmm
47
48 cxxflags: ../Makefile
49 grep 'CXX *=' ../Makefile >cxxflags
50 grep 'CC *=' ../Makefile >>cxxflags
51 grep 'CXXFLAGS *=' ../Makefile >>cxxflags
52 grep 'CFLAGS *=' ../Makefile >>cxxflags
53 grep 'WGET *=' ../Makefile >>cxxflags
54 grep 'WIN32DLLTARGET *=' ../Makefile >>cxxflags
55
56 WHERE:
57 -@if [ -f FAIT ] ; then \
58 echo build ../lib/WHERE.gmm ;\
59 echo gmm INCLUDE -I@DIR@/include > ../lib/WHERE.gmm ;\
60 echo gmm LD -L@DIR@/lib >> ../lib/WHERE.gmm ;\
61 fi