[go: up one dir, main page]

Menu

[r34]: / 3d3cVtoD / makefile  Maximize  Restore  History

Download this file

83 lines (57 with data), 1.8 kB

 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
SOFTNAME = civ3d3cVtoD
.SUFFIXES:
.SUFFIXES: .f .o .c .mod .f90
CC=gcc
F90=g95 #ifc -w 4
F90=/CIVX/bin/FORTRAN/intel/bin/ifort
#L90=ifc
#F90=ifort
# where "make install" puts binaries
# Prefix must be a full pathname.
prefix=/usr/local
#FFLAGS= -r4 -i4 -O3 -Mvect=sse,prefetch,assoc,cachesize:262144
#FFLAGS= -O3 -axN -ipo -fast -xN -arch pn4 -Ob2 -unroll16
#FFLAGS= -g -C -d2 -Vaxlib
#FFLAGS= -pipe -O2 -fno-second-underscore #-ffree-form
FFLAGS= -O3 -axW -tpp7 -Vaxlib
#-axW -tpp7 -Vaxlib
CFLAGS= -Wall
LDFLAGS= -lpng -lz -lnetcdf -L/usr/lib/netcdf/src/libsrc
#/usr/lib/libnetcdf.a
#LDFLAGS= -lstdc++ -lpng -lz -lnetcdf -L/usr/lib/netcdf/src/libsrc -lnetcdf /usr/lib/libnetcdf.a
NCPATH=$(prefix)/include
LIBPATH=$(prefix)/lib
MANPATH=$(prefix)/man
BINPATH=$(prefix)/bin
# override DESTDIR= on the make install command line to easily support
# installing into a temporary location. Example:
OBJS = modules.o bspline90_22.o ffilt3D.o flip3D.o fourt.o hc_filt.o subroutines.o
MODS = MODVELOCITY.mod
.SUFFIXES: .mod .c .o .f90
all : civ3d3cVtoD
fourt.o:
$(F90) -c ./sources/fourt.f90
hc_filt.o:
$(F90) -c ./sources/hc_filt.f90
ffilt3D.o:
$(F90) -c ./sources/ffilt3D.f90
flip3D.o:
$(F90) -c ./sources/flip3D.f90
MODVELOCITY.mod:
$(F90) -c ./sources/modules.f90
modules.o:
$(F90) -c ./sources/modules.f90
rd_wr_3D.o: $(MODS)
$(F90) -c ./sources/rd_wr_3D.f90
wr3D_avs.o:
$(F90) -c ./sources/wr3D_avs.f90
bspline90_22.o:
$(F90) -c ./sources/bspline90_22.f90
interpolation.o:
$(F90) -c ./sources/interpolation.f90
subroutines.o:
$(F90) -c ./sources/subroutines.f90
civ3d3cVtoD : $(OBJS) $(MODS)
$(F90) -o civ3d3cVtoD ./sources/civ3d3cVtoD.f90 $(OBJS) $(LDFLAGS) $(FFLAGS)
clean:
rm -f *.il *.o *.mod civ3d3cVtoD *~