-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
62 lines (45 loc) · 973 Bytes
/
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
#
# This Makefile was generated by Code::Blocks IDE.
#
SRCS_f90d1 = \
ogpf.f90
SRCS_f90d2 = \
demo.f90
OBJS_f90d1 = \
ogpf.o
OBJS_f90d2 = \
demo.o
SRC_DIR_f90d1 = \
./src/
SRC_DIR_f90d2 = \
./example/
OBJS_DIR = ./obj/Debug/
EXE_DIR = ./bin/Debug/
EXE = ogpf.exe
FC = gfortran.exe
LD = gfortran.exe
IDIR =
CFLAGS = -Wall -std=f2008 -Wl, -J$(OBJS_DIR) $(IDIR)
LFLAGS =
LIBS =
VPATH = $(SRC_DIR_f90d1):$(OBJS_DIR):$(SRC_DIR_f90d2)
OBJS = $(addprefix $(OBJS_DIR), $(OBJS_f90d1) $(OBJS_f90d2))
all : $(EXE)
$(EXE) : $(OBJS_f90d1) $(OBJS_f90d2)
@mkdir -p $(EXE_DIR)
$(LD) -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_f90d2):
@mkdir -p $(OBJS_DIR)
$(FC) $(CFLAGS) -c $(SRC_DIR_f90d2)$(@:.o=.f90) -o $(OBJS_DIR)$@
clean :
rm -f $(OBJS_DIR)*.*
rm -f $(EXE_DIR)$(EXE)
# Dependencies of files
demo.o: \
demo.f90 \
ogpf.o
ogpf.o: \
ogpf.f90