-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
21 lines (16 loc) · 1.18 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
OBJECTS = Launcher.o Controller.o Tests.o FileReader.o Learning.o NeuralNetwork.o Node.o Car.o Physics.o Track.o
CC = g++
COMPILE = -std=c++11 -Wall -Wextra -c
INCLUDE = -I./src/include
LINK = -Wall -Wextra
qlearn: $(OBJECTS) # Is it good practice to only use the first missing .o file to create multiple of them?
$(CC) $(LINK) $(INCLUDE) $(OBJECTS) -o qlearn -l sfml-graphics -lsfml-window -lsfml-system -L./src/lib -l Box2D
Launcher.o: src/Launcher.hpp src/Launcher.cpp src/Controller.hpp src/Controller.cpp src/Tests.hpp src/Tests.cpp src/FileReader.hpp src/FileReader.cpp
$(CC) $(COMPILE) $(INCLUDE) src/Launcher.cpp src/Controller.cpp src/Tests.cpp src/FileReader.cpp
Learning.o: src/network/Learning.hpp src/network/Learning.cpp src/network/NeuralNetwork.hpp src/network/NeuralNetwork.cpp src/network/Node.hpp src/network/Node.cpp
$(CC) $(COMPILE) $(INCLUDE) src/network/Learning.cpp src/network/NeuralNetwork.cpp src/network/Node.cpp
Car.o: src/car/Car.hpp src/car/Car.cpp src/car/Physics.hpp src/car/Physics.cpp src/car/Track.hpp src/car/Track.cpp
$(CC) $(COMPILE) $(INCLUDE) src/car/Car.cpp src/car/Physics.cpp src/car/Track.cpp
.PHONY: clean
clean:
rm -f *.o *_actions.txt out.txt qlearn *~