diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |