generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathmakefile
40 lines (32 loc) · 1.29 KB
/
makefile
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
# compiler
FC := ${F90}
# compile flags
F90FLAGSGFORTRAN = -g -c -O2 -fPIC -fbounds-check
F90FLAGSINTEL = -free -g -c -O2 -fPIC -I${NETCDF}/include
ifeq ($(notdir ${FC}), ifort)
FCFLAGS = $(F90FLAGSINTEL)
else ifeq ($(notdir ${FC}), mpiifort)
FCFLAGS = $(F90FLAGSINTEL)
else
FCFLAGS = $(F90FLAGSGFORTRAN)
endif
diffusive.o: diffusive.f90
$(FC) $(FCFLAGS) -o $@ $<
pydiffusive.o: pydiffusive.f90
$(FC) $(FCFLAGS) -o $@ $<
chxsec_lookuptable.o: chxsec_lookuptable.f90
$(FC) $(FCFLAGS) -o $@ $<
pychxsec_lookuptable.o: pychxsec_lookuptable.f90
$(FC) $(FCFLAGS) -o $@ $<
install:
cp *.o ../../../src/troute-routing/troute/routing/fast_reach
clean:
rm -f *.o *.mod
rm -f ../../../src/troute-routing/troute/routing/fast_reach/diffusive.o
rm -f ../../../src/troute-routing/troute/routing/fast_reach/pydiffusive.o
rm -f ../../../src/troute-routing/troute/routing/fast_reach/diffusive.c
rm -f ../../../src/troute-routing/troute/routing/fast_reach/diffusive.cpython*.so
rm -f ../../../src/troute-routing/troute/routing/fast_reach/chxsec_lookuptable.o
rm -f ../../../src/troute-routing/troute/routing/fast_reach/pychxsec_lookuptable.o
rm -f ../../../src/troute-routing/troute/routing/fast_reach/chxsec_lookuptable.c
rm -f ../../../src/troute-routing/troute/routing/fast_reach/chxsec_lookuptable.cpython*.so