Debian Codegraph @

3rdparty/mshmet/Makefile

raw
1 # Downloading and compiling extra libraries
2 # -----------------------------------------
3
4 all-local: mshmet
5
6 include ff-flags
7
8 # Now in distrib and compiling mshmet
9 # -------------------------------
10 #
11 DIRPKG= ../pkg
12 SRCDIR= ./src
13 #-$(mshmet_VERSION)
14 INSTALL=../..
15 mshmet_VERSION=.FH
16 FAIRE=$(SRCDIR)/FAIRE
17
18 # ----------------------
19 # mshmetlib
20
21 MSHMET_DIR = $(abs_top_builddir)/3rdparty/mshmet/src
22 MSHMET_SRCDIR = $(MSHMET_DIR)/sourceslib
23 MSHMET_OBJDIR = $(MSHMET_DIR)/objects
24
25 mshmet: $(FAIRE)
26
27 $(FAIRE):$(SRCDIR)/FAIT
28 $(MAKE) WHERE $(SRCDIR)/$(INSTALL)
29 touch $(FAIRE)
30
31 $(SRCDIR)/FAIT:$(SRCDIR)/tag-tar
32 cd $(MSHMET_DIR); $(MAKE)
33 touch $(SRCDIR)/FAIT
34
35 # FFCS - libMesh is also required by yams, so we move all the rules to [[file:../../../Makefile.am]]
36 install:$(SRCDIR)/FAIT
37 cp $(MSHMET_SRCDIR)/mshmetlib.h $(SRCDIR)/$(INSTALL)/include/mshmetlib.h
38 cp $(MSHMET_OBJDIR)/libmshmet.a $(SRCDIR)/$(INSTALL)/lib/libmshmet.a
39
40 # FFCS - simplify makefile structure for automatic rebuilds
41 WHERE:install
42 echo mshmet LD -L@DIR@/lib -lmshmet >$(SRCDIR)/$(INSTALL)/lib/WHERE.mshmet
43 echo mshmet INCLUDE -I@DIR@/include>> $(SRCDIR)/$(INSTALL)/lib/WHERE.mshmet
44
45
46 $(SRCDIR)/tag-tar:
47 touch $(SRCDIR)/tag-tar
48
49
50 clean:
51 -rm ../lib/WHERE.mshmet $(SRCDIR)/$(INSTALL)/lib/libmshmet.a
52 -rm $(SRCDIR)/$(INSTALL)/include/mshmetlib.h $(MSHMET_OBJDIR)/libmshmet.a
53 cd src; make clean
54 -rm ff-flags
55 # FFCS - make sure that all directories are cleaned. Thisis especially important under Windows because there is no
56 # compilation dependencies control there (see
57 # [[file:c:/cygwin/home/alh/ffcs/dist/configure.ac::dependency_tracking]])
58 -rm -rf mshmet.????.??.??
59 -rm FAIT src/FAIT $(FAIRE)
60
61 ff-flags: ../Makefile
62 grep 'abs_top_builddir *=' ../Makefile >> ff-flags
63 grep 'CC *=' ../Makefile >> ff-flags
64 grep 'CFLAGS *=' ../Makefile >> ff-flags
65 grep 'LDFLAGS *=' ../Makefile >> ff-flags
66 grep 'AR *=' ../Makefile >> ff-flags
67 grep 'ARFLAGS *=' ../Makefile >> ff-flags
68 grep 'RANLIB *=' ../Makefile >> ff-flags
69 grep 'WGET *=' ../Makefile >> ff-flags
70
71
72 .PHONY: $(SRCDIR)/$(INSTALL)