Blame view

Makefile 1.47 KB
ec05a677c   daniau   git-svn-id: https...
1

6164710c3   cwaterkeyn   ChW returned Make...
2
  include $(BTREE)/Make.inc
ec05a677c   daniau   git-svn-id: https...
3
4
5
  
  
  objects = fvnlib.o
19e954a45   cwaterkeyn   ChW : added modul...
6
  modobjects = $(objects)
59ae88e06   daniau   git-svn-id: https...
7
  library = libfvn$(libext)
f6479a913   wdaniau   Added conditional...
8
  libso   = libfvn$(soext)
ec05a677c   daniau   git-svn-id: https...
9

f6479a913   wdaniau   Added conditional...
10
11
12
  ifeq ($(BUILDSO),y)
  all: sub $(library) $(libso)
  else
b93026039   daniau   git-svn-id: https...
13
  all: sub $(library)
f6479a913   wdaniau   Added conditional...
14
  endif
b93026039   daniau   git-svn-id: https...
15
16
17
18
19
20
21
22
23
  
  sub:
  		( cd fvn_common && make && make install )
  		( cd fvn_linear && make && make install )
  		( cd fvn_integ && make && make install )
  		( cd fvn_interpol && make && make install )
  		( cd fvn_sparse && make && make install )
  		( cd fvn_fnlib && make && make install )
  		( cd fvn_misc && make && make install )
ec05a677c   daniau   git-svn-id: https...
24
  clean:
f6479a913   wdaniau   Added conditional...
25
  		rm -f {*.o,*.oo,*.ipo,*.a,*.mod,*.so}
b93026039   daniau   git-svn-id: https...
26
27
28
29
30
31
32
  		( cd fvn_common && make clean )
  		( cd fvn_linear && make clean )
  		( cd fvn_integ && make clean )
  		( cd fvn_interpol && make clean )
  		( cd fvn_sparse && make clean )
  		( cd fvn_fnlib && make clean )
  		( cd fvn_misc && make clean)
ec05a677c   daniau   git-svn-id: https...
33
34
  
  install:
38581db0c   daniau   git-svn-id: https...
35
  		cp fvn.mod $(BTREE)/modules
59ae88e06   daniau   git-svn-id: https...
36
  		cp $(library) $(BTREE)/lib
f6479a913   wdaniau   Added conditional...
37
38
39
  ifeq ($(BUILDSO),y)
  		cp $(libso) $(BTREE)/lib
  endif
422234dc3   daniau   git-svn-id: https...
40

ec05a677c   daniau   git-svn-id: https...
41
  %.o: %.f90
59ae88e06   daniau   git-svn-id: https...
42
  		$(F95) $(F95FLAGS) -c $< -o $@
ec05a677c   daniau   git-svn-id: https...
43

19e954a45   cwaterkeyn   ChW : added modul...
44
45
  # cette ligne est elle utile et nécessaire?
  #$(objects):fvnlib.f90
b93026039   daniau   git-svn-id: https...
46
47
  
  $(library): $(objects) sub
ec05a677c   daniau   git-svn-id: https...
48
  		$(AR) rcu $@ $(objects)
b93026039   daniau   git-svn-id: https...
49
50
51
52
53
54
55
56
57
  		$(AR) ru $@ fvn_common/*.o
  		$(AR) ru $@ fvn_linear/*.o
  		$(AR) ru $@ fvn_integ/*.o
  		$(AR) ru $@ fvn_interpol/*.o
  		$(AR) ru $@ fvn_sparse/*.o
  		$(AR) ru $@ fvn_sparse/AMD/Lib/*.o
  		$(AR) ru $@ fvn_sparse/UMFPACK/Lib/*.o
  		$(AR) ru $@ fvn_fnlib/*.o
  		$(AR) ru $@ fvn_misc/*.o
59ae88e06   daniau   git-svn-id: https...
58
  		$(RANLIB) $@
ec05a677c   daniau   git-svn-id: https...
59

f6479a913   wdaniau   Added conditional...
60
61
62
63
64
  
  ifeq ($(BUILDSO),y)
  $(libso): $(library)
  		ld -shared -soname $(libso) -o $(libso) --whole-archive $(library)
  endif