-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (42 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
CL=g++ -pthread
CC=g++
FLAGS=-Wall -pedantic -Wno-long-long -O3 -ggdb -std=c++11 -lpthread
PROGRAM=PFutil.out
PROGRAMTEST=test.out
PROGRAMSGSEARCH=SG.out
all: ctest cSGsearch cmain
run:
./$(PROGRAM)
test:
./$(PROGRAMTEST)
SG:
./$(PROGRAMSGSEARCH)
clean:
rm -rf ./bin/ $(PROGRAMTEST) $(PROGRAMSGSEARCH)
cmain: bin/fraction.o bin/arithmancy.o bin/dices.o bin/sacredGeometry.o bin/sacredGeometry.o bin/dices.o bin/InvalidNoArgumentsException.o bin/InvalidArgumentException.o bin/CommandLine.o bin/main.o
$(CL) $^ -o $(PROGRAM)
ctest: bin/fraction.o bin/arithmancy.o bin/dices.o bin/sacredGeometry.o bin/test.o
$(CL) $^ -o $(PROGRAMTEST)
cSGsearch: bin/fraction.o bin/sacredGeometry.o bin/SGsearch.o
$(CL) $^ -o $(PROGRAMSGSEARCH)
count:
wc -l src/*/*.?pp src/*.?pp
bin/%.o: src/%.cpp
mkdir -p bin
$(CC) $(FLAGS) -c $< -o $@
#for cpp files in folders
bin/%.o: src/*/%.cpp
mkdir -p bin
$(CC) $(FLAGS) -c $< -o $@
bin/InvalidArgumentException.o: src/Exceptions/InvalidArgumentException.cpp src/Exceptions/InvalidArgumentException.hpp src/Exceptions/Exception.hpp
bin/InvalidCommandUseException.o: src/Exceptions/InvalidCommandUseException.cpp src/Exceptions/InvalidCommandUseException.hpp src/Exceptions/Exception.hpp
bin/InvalidNoArgumentsException.o: src/Exceptions/InvalidNoArgumentsException.cpp src/Exceptions/InvalidNoArgumentsException.hpp src/Exceptions/Exception.hpp
bin/InvalidUseException.o: src/Exceptions/InvalidUseException.cpp src/Exceptions/InvalidUseException.hpp src/Exceptions/Exception.hpp
bin/fraction.o: src/Helpers/fraction.cpp src/Helpers/fraction.hpp
bin/arithmancy.o: src/arithmancy.cpp
bin/CommandLine.o: src/CommandLine.cpp src/CommandLine.hpp src/Exceptions/Exception.hpp src/Exceptions/InvalidNoArgumentsException.hpp src/Exceptions/Exception.hpp
bin/dices.o: src/dices.cpp src/dices.hpp
bin/main.o: src/main.cpp src/dices.hpp
bin/sacredGeometry.o: src/sacredGeometry.cpp src/sacredGeometry.hpp src/Helpers/fraction.hpp
bin/SGsearch.o: src/SGsearch.cpp src/sacredGeometry.hpp
bin/test.o: src/test.cpp src/arithmancy.hpp src/sacredGeometry.hpp src/Helpers/fraction.hpp