aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..b4ed4bd
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,15 @@
+CXX = g++
+CXXFLAGS = --std=c++14 -g -O2 -Wall
+SRC_DIR = src/
+OBJECTS = main.o State.o Game.o Global.o Enemy1.o Enemy2.o Enemy3.o Powerup.o Entity.o Player.o
+
+all: sfml-rpg
+
+sfml-rpg: $(OBJECTS)
+ $(CXX) $(CXXFLAGS) $(OBJECTS) -o sfml-rpg -lsfml-graphics -lsfml-window -lsfml-system
+
+%.o : %.cpp
+ $(CXX) $(CXXFLAGS) -c $<
+
+clean:
+ rm -f $(OBJECTS) sfml-rpg