Blame view

Makefile 1.48 KB
ec05a677c   daniau   git-svn-id: https...
1
2
3
4
5
6
  
  include $(BTREE)/Make.inc
  
  
  objects = fvnlib.o
  library = libfvn.a
422234dc3   daniau   git-svn-id: https...
7
  all: umfpack $(library)
ec05a677c   daniau   git-svn-id: https...
8
9
  
  clean:
25c42432d   daniau   git-svn-id: https...
10
  		rm -f {*.o,*.oo,*.ipo,*.a,*.mod}
422234dc3   daniau   git-svn-id: https...
11
12
13
  		( cd fvn_sparse ; rm -f {*.o,*.oo,*.ipo,*.a,*.mod} )
  		( cd fvn_sparse/AMD ; make clean )
  		( cd fvn_sparse/UMFPACK ; make clean )
ec05a677c   daniau   git-svn-id: https...
14
15
  
  install:
e2e258485   daniau   git-svn-id: https...
16
17
  		cp *.mod $(BTREE)/modules
  		cp *.a $(BTREE)/lib
422234dc3   daniau   git-svn-id: https...
18
19
  		( cp fvn_sparse/UMFPACK/Lib/libumfpack.a $(BTREE)/lib )
  		( cp fvn_sparse/AMD/Lib/libamd.a $(BTREE)/lib )
ec05a677c   daniau   git-svn-id: https...
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  
  %.o: %.f90
  		$(F95) $(F95FLAGS) -c $<
  
  $(objects):fvnlib.f90 fvn_quadpack/dqk15_2d_inner.f fvn_quadpack/dqk31_2d_outer.f \
  fvn_quadpack/d1mach.f fvn_quadpack/dqk31_2d_inner.f fvn_quadpack/dqage.f \
  fvn_quadpack/dqk15.f fvn_quadpack/dqk21.f fvn_quadpack/dqk31.f fvn_quadpack/dqk41.f \
  fvn_quadpack/dqk51.f fvn_quadpack/dqk61.f fvn_quadpack/dqk41_2d_outer.f \
  fvn_quadpack/dqk41_2d_inner.f fvn_quadpack/dqag_2d_outer.f fvn_quadpack/dqag_2d_inner.f \
  fvn_quadpack/dqpsrt.f fvn_quadpack/dqag.f fvn_quadpack/dqage_2d_outer.f \
  fvn_quadpack/dqage_2d_inner.f fvn_quadpack/dqk51_2d_outer.f fvn_quadpack/dqk51_2d_inner.f \
  fvn_quadpack/dqk61_2d_outer.f fvn_quadpack/dqk21_2d_outer.f fvn_quadpack/dqk61_2d_inner.f \
  fvn_quadpack/dqk21_2d_inner.f fvn_quadpack/dqk15_2d_outer.f
  
  $(library): $(objects)
  		$(AR) rcu $@ $(objects)
  		$(AR) s $@
422234dc3   daniau   git-svn-id: https...
37
38
39
40
  umfpack:
  		( cd fvn_sparse/UMFPACK ; make ) 
  		( cd fvn_sparse ; $(CC) $(CFLAGS) -c umfpack_wrapper.c -IUMFPACK/Include -IAMD/Include -IUFconfig )
  		( cd fvn_sparse/UMFPACK/Lib ; ar ru libumfpack.a ../../umfpack_wrapper.o ; ar s libumfpack.a )
ec05a677c   daniau   git-svn-id: https...
41