-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
114 lines (98 loc) · 1.86 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# This Makefile was automatically generated by Code::Blocks IDE.
#
SRCS_f90d1 = \
grids.f90 \
newton.f90 \
tauchen.f90 \
kinds.f90 \
nderiv.f90 \
demo_binary_labour_choice.f90 \
main.f90 \
normal_cdf.f90 \
demo_fella11.f90 \
ncegm.f90 \
interpolation.f90
SRCS_d1 = \
README
OBJS_f90d1 = \
grids.o \
newton.o \
tauchen.o \
kinds.o \
nderiv.o \
demo_binary_labour_choice.o \
main.o \
normal_cdf.o \
demo_fella11.o \
ncegm.o \
interpolation.o
OBJS_d1 = \
SRC_DIR_f90d1 =
SRC_DIR_d1 =
OBJS_DIR = obj/
EXE_DIR = bin/
EXE = ncegm
FC = gfortran
IDIR =
CFLAGS = -std=f2003 -ffree-line-length-none -W -Wextra -fexpensive-optimizations -Ofast -J$(OBJS_DIR) $(IDIR)
LFLAGS = -s
LIBS =
VPATH = $(SRC_DIR_f90d1):$(OBJS_DIR):$(SRC_DIR_d1):$(OBJS_DIR)
OBJS = $(addprefix $(OBJS_DIR), $(OBJS_f90d1) $(OBJS_d1))
all : $(EXE)
$(EXE) : $(OBJS_f90d1) $(OBJS_d1)
@mkdir -p $(EXE_DIR)
$(FC) -o $(EXE_DIR)$(EXE) $(OBJS) $(LFLAGS) $(LIBS)
$(OBJS_f90d1):
@mkdir -p $(OBJS_DIR)
$(FC) $(CFLAGS) -c $(SRC_DIR_f90d1)$(@:.o=.f90) -o $(OBJS_DIR)$@
$(OBJS_d1):
@mkdir -p $(OBJS_DIR)
$(FC) $(CFLAGS) -c $(SRC_DIR_d1)$(@:.o=.) -o $(OBJS_DIR)$@
clean :
rm -f $(OBJS_DIR)*.*
rm -f $(EXE_DIR)$(EXE)
# Dependencies of files
grids.o: \
grids.f90 \
kinds.o
newton.o: \
newton.f90 \
kinds.o
tauchen.o: \
tauchen.f90 \
kinds.o \
normal_cdf.o
kinds.o: \
kinds.f90
nderiv.o: \
nderiv.f90 \
kinds.o
demo_binary_labour_choice.o: \
demo_binary_labour_choice.f90 \
grids.o \
kinds.o \
ncegm.o
main.o: \
main.f90 \
demo_binary_labour_choice.o \
demo_fella11.o
normal_cdf.o: \
normal_cdf.f90 \
kinds.o
demo_fella11.o: \
demo_fella11.f90 \
grids.o \
kinds.o \
ncegm.o \
tauchen.o
ncegm.o: \
ncegm.f90 \
interpolation.o \
kinds.o \
nderiv.o \
newton.o
interpolation.o: \
interpolation.f90 \
kinds.o