-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.debug
110 lines (99 loc) · 1.51 KB
/
Makefile.debug
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
#
# This Makefile was generated by Code::Blocks IDE.
#
SRCS_f90d1 = \
trees.f90 \
graphs.f90 \
day01.f90 \
day02.f90 \
day03.f90 \
day04.f90 \
day05.f90 \
day06.f90 \
day07.f90 \
day08.f90 \
day09.f90 \
day10.f90 \
day11.f90 \
main.f90
OBJS_f90d1 = \
trees.o \
graphs.o \
day01.o \
day02.o \
day03.o \
day04.o \
day05.o \
day06.o \
day07.o \
day08.o \
day09.o \
day10.o \
day11.o \
main.o
SRC_DIR_f90d1 = src/
OBJS_DIR = obj/Debug/src/
EXE_DIR = bin/Debug/
EXE = Advent2018
FC = gfortran
LD = gfortran
IDIR =
CFLAGS = -Wextra -Wall -lrt -pg -g -Og -J$(OBJS_DIR) $(IDIR)
LFLAGS = -pg
LIBS =
VPATH = $(SRC_DIR_f90d1):$(OBJS_DIR)
OBJS = $(addprefix $(OBJS_DIR), $(OBJS_f90d1))
all : $(EXE)
$(EXE) : $(OBJS_f90d1)
@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)$@
clean :
rm -f $(OBJS_DIR)*.*
rm -f $(EXE_DIR)$(EXE)
# Dependencies of files
trees.o: \
trees.f90
graphs.o: \
graphs.f90 \
trees.o
day01.o: \
day01.f90 \
trees.o
day02.o: \
day02.f90
day03.o: \
day03.f90
day04.o: \
day04.f90
day05.o: \
day05.f90
day06.o: \
day06.f90
day07.o: \
day07.f90 \
graphs.o \
trees.o
day08.o: \
day09.f90
day09.o: \
day09.f90
day10.o: \
day10.f90
day11.o: \
day11.f90
main.o: \
main.f90 \
day01.o \
day02.o \
day03.o \
day04.o \
day05.o \
day06.o \
day07.o \
day08.o \
day09.o \
day10.o \
day11.o