aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:20:22 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:20:52 +0100
commitaf7e23ab119eba7c0579796abd288c027edabfa9 (patch)
treefcd18c9405f33bed0e5f706a8a5d249ee3a63201 /Makefile
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..016f750
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+EXE := bin/NeuroRacers.exe
+SOURCES := $(wildcard src/*.cpp)
+OBJECTS := $(patsubst src/%.cpp,obj/%.o,$(SOURCES))
+DEPS := $(patsubst %.o,%.d,$(OBJECTS))
+CFLAGS := -c -O3 -Wall -std=c++11 -fno-strict-aliasing -MMD -DSFML_DYNAMIC -Iinclude -IC:/TBB/include -IC:/Projects/Libraries/HyperNeat/include -IC:/Projects/Libraries/HyperNeat/plugins/CppnExplorer/include -IC:/Box2D/include -IC:/SFML/include -IC:/cereal/include
+LFLAGS := -LC:/TBB/bin -LC:/Projects/Libraries/HyperNeat/lib -LC:/Projects/Libraries/HyperNeat/plugins/CppnExplorer/lib -lHyperNeat -lCppnExplorer -LC:/Box2D/lib -LC:/SFML/lib -ltbb -lBox2D.dll -lsfml-graphics -lsfml-window -lsfml-system
+
+all: $(OBJECTS)
+ g++ -o $(EXE) $(OBJECTS) $(LFLAGS)
+
+-include $(DEPS)
+
+$(OBJECTS):
+ g++ $(CFLAGS) $(patsubst obj/%.o,src/%.cpp,$@) -o $@
+
+rebuild: clean all
+
+clean:
+ del obj\*.o
+ del obj\*.d
+ del bin\*.exe