-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (32 loc) · 1.08 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
CC = g++
CFLAGS = -std=c++20 -O0
SRC = include/RandomEulerian.hpp src/RandomEulerian.cpp include/progressBar.hpp src/progressBar.cpp include/utils.hpp src/utils.cpp
OBJ = $(SRC:.cpp=.o)
# TESTS = tests/test_main.cpp tests/test_naive.cpp tests/test_tarjan.cpp tests/test_fleury.cpp
OUT = bin/program
TEST = bin/test
# Cria a pasta bin se ela não existir
$(shell mkdir -p bin)
all:
$(CC) $(CFLAGS) -o $(TEST) $(SRC) src/main.cpp
./$(TEST)
# tests: $(OUT)
# $(CC) $(CFLAGS) -o bin/test $(TESTS)
# ./bin/test
naive:
$(CC) $(CFLAGS) -o $(TEST) $(SRC) tests/test_naive.cpp src/fleury_naive.cpp
./$(TEST)
tarjan:
$(CC) $(CFLAGS) -o $(TEST) $(SRC) tests/test_tarjan.cpp src/fleury_tarjan.cpp
./$(TEST)
tarjanvsnaive:
$(CC) $(CFLAGS) -o $(TEST) $(SRC) tests/test_tarjanvsnaive.cpp src/fleury_tarjan.cpp src/fleury_naive.cpp
./$(TEST)
random:
$(CC) $(CFLAGS) -o $(TEST) $(SRC) tests/test_random_eulerian.cpp
./$(TEST)
# bar: $(OUT)
# $(CC) $(CFLAGS) -o bin/test tests/test_progressBar.cpp include/progressBar.hpp src/progressBar.cpp
# ./bin/test
clean:
rm -rf $(OBJ) $(OUT) $(TEST)