-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (47 loc) · 1.89 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
CC := g++
TO := -o
C_OPTS := -O0 -std=c++11 -pedantic-errors -Wall -Wextra \
-Wunused -Wunused-function -Wunused-label -Wunused-local-typedefs \
-Wunused-macros -Wunused-parameter -Wno-unused-result \
-Wunused-value -Wunused-variable -Wunused-const-variable \
-Wunused-but-set-parameter -Wunused-but-set-variable -Wuseless-cast
L_OPTS := -lstdc++ -lm
# Debug
C_OPTS += -ggdb -DROB_DEBUG
COMPILE := $(CC) -c $(OPTS) $(C_OPTS)
LINK := $(CC) $(OPTS) $(L_OPTS)
##############################################################################
# Rules
##############################################################################
%.o : %.cpp
@echo "***** Compiling -> $@"
@$(COMPILE) $(TO) $@ $<
run.o: main.o \
list_from_edges.o read_edges.o read_tasks.o \
parent_task_count.o \
ltf_schedule.o tbls_schedule.o clear_tasks.o contingency_schedule.o uniform_scale.o
$(REPORT)
@echo "***** Linking -> $@"
@$(LINK) $(TO) $@ $(filter %.o,$^)
@echo
plot_data.o: plot.o \
list_from_edges.o read_edges.o read_tasks.o \
parent_task_count.o \
ltf_schedule.o tbls_schedule.o clear_tasks.o contingency_schedule.o uniform_scale.o
$(REPORT)
@echo "***** Linking -> $@"
@$(LINK) $(TO) $@ $(filter %.o,$^)
@echo
plot.o: plot.cpp task.hpp adj_list.hpp schedule.hpp
main.o: main.cpp task.hpp adj_list.hpp schedule.hpp
contingency_schedule.o: contingency_schedule.cpp schedule.hpp
list_from_edges.o: list_from_edges.cpp adj_list.hpp
ltf_schedule.o: ltf_schedule.cpp clear_tasks.cpp task.hpp schedule.hpp
parent_task_count.o: parent_task_count.cpp schedule.hpp
read_edges.o: read_edges.cpp task.hpp
read_tasks.o: read_tasks.cpp task.hpp
tbls_schedule.o: tbls_schedule.cpp clear_tasks.cpp schedule.hpp task.hpp
clear_tasks.o: clear_tasks.cpp schedule.hpp task.hpp
uniform_scale.o: uniform_scale.cpp schedule.hpp
clean:
rm -rf ./run ./*.o