aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 30369a0..4a1dfb4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,9 @@
BIN=pathfind
-$(BIN): *.cpp *.hpp
- g++ -o $@ *.cpp -lm -O2 -std=c++11
+OBJ=problem.o ui.o main.o
+
+$(BIN): *.hpp $(OBJ)
+ g++ -o $@ $(OBJ) -lm -lsfml-system -lsfml-window -lsfml-graphics -O2 -std=c++11
+
+%.o: %.cpp *.hpp
+ g++ -c -o $@ $< -std=c++11 -O2