forked from metno/NORTRIP_multiroad_combined
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (40 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include Makefile.SRCS
###################################################
F90 = ifort
DEBUG_FLAGS = -init=snan,arrays -check all -check noarg_temp_created -debug-parameters all \
-traceback -ftrapuv -g -fpe0 -O0
#F90FLAGS = -qopenmp -O3 -r8 -g -ftz $(shell nf-config --cflags)
#F90FLAGS = -O3 -r8 -g -ftz $(shell nf-config --fflags)
F90FLAGS = -O3 -g -ftz $(shell nf-config --fflags)
LLIB = $(shell nf-config --flibs)
LDFLAGS = $(F90FLAGS) $(LLIB)
#PROG = NORTRIP_multiroad_combined_v2-el7
PROG = NORTRIP_multiroad_combined_v2-r8_testbinary
NILU_DIR = NORTRIP_multiroad/NILU
NORTRIP_DIR = NORTRIP
NORTRIPMULTI_DIR = NORTRIP_multiroad
OSPM_DIR = NORTRIP/OSPM
UEMEP_DIR = NORTRIP_multiroad/uEMEP
%.o: $(NILU_DIR)/%.for
$(F90) $(F90FLAGS) -c $< -o $@
%.o: $(NILU_DIR)/%.f90
$(F90) $(F90FLAGS) -c $< -o $@
%.o: $(NORTRIP_DIR)/%.f90
$(F90) $(F90FLAGS) -c $< -o $@
%.o: $(NORTRIPMULTI_DIR)/%.f90
$(F90) $(F90FLAGS) -c $< -o $@
%.o: $(OSPM_DIR)/%.f90
$(F90) $(F90FLAGS) -c $< -o $@
%.o: $(UEMEP_DIR)/%.f90
$(F90) $(F90FLAGS) -c $< -o $@
%.o: %.f90
$(F90) $(F90FLAGS) -c $< -o $@
### $(F90) $(F90FLAGS) $(DEBUG_FLAGS) -c $< -o $@
all: $(PROG)
$(PROG): dependencies
include dependencies
$(PROG): $(FOBJ)
$(F90) -o $@ $(FOBJ) $(LDFLAGS)
all: $(PROG)
clean:
rm -f $(PROG) $(FOBJ)