-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (19 loc) · 974 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
CXX=g++
CXXFLAGS=-std=c++17 -Wall -g
all: compileTest
Strategy.o: src/strategies/Strategy.cpp
@$(CXX) $(CXXFLAGS) -c src/strategies/Strategy.cpp -o Strategy.o
CompleteSearchStrategy.o: src/strategies/CompleteSearchStrategy.cpp
@$(CXX) $(CXXFLAGS) -c src/strategies/CompleteSearchStrategy.cpp -o CompleteSearchStrategy.o
DPStrategy2Machines.o: src/strategies/DPStrategy2Machines.cpp
@$(CXX) $(CXXFLAGS) -c src/strategies/DPStrategy2Machines.cpp -o DPStrategy2Machines.o
Worker.o: src/Worker.cpp
@$(CXX) $(CXXFLAGS) -c src/Worker.cpp -o Worker.o
test.o: test/test.cpp test/resources/testsPayload.json test/resources/testsGen.py
@$(CXX) $(CXXFLAGS) -c test/test.cpp -o test.o
compileTest: Strategy.o CompleteSearchStrategy.o DPStrategy2Machines.o Worker.o test.o
@$(CXX) $(CXXFLAGS) -o emulation.out Strategy.o CompleteSearchStrategy.o DPStrategy2Machines.o Worker.o test.o
@python test/resources/testsGen.py
@./emulation.out
clean:
@rm -f emulation.out *.o