2023-02-26 18:18:45 -06:00
|
|
|
INC := -I include
|
|
|
|
STD := -std=c++11
|
|
|
|
SFML := -lsfml-graphics -lsfml-window -lsfml-system
|
|
|
|
|
2023-03-12 08:50:50 -05:00
|
|
|
all: compile link
|
|
|
|
|
|
|
|
fresh: dirs compile link
|
2023-02-26 19:56:00 -06:00
|
|
|
|
2023-02-26 18:18:45 -06:00
|
|
|
compile:
|
|
|
|
g++ $(INC) $(STD) -c -o build/main.o src/main.cpp
|
2023-03-12 21:57:46 -05:00
|
|
|
g++ $(INC) $(STD) -c -o build/Common.o src/Common.cpp
|
2023-02-26 18:18:45 -06:00
|
|
|
g++ $(INC) $(STD) -c -o build/GameState.o src/GameState.cpp
|
|
|
|
g++ $(INC) $(STD) -c -o build/Snake.o src/Snake.cpp
|
|
|
|
g++ $(INC) $(STD) -c -o build/SnakeFood.o src/SnakeFood.cpp
|
|
|
|
|
2023-03-12 21:57:46 -05:00
|
|
|
dirs:
|
|
|
|
mkdir bin build
|
|
|
|
|
2023-02-26 18:18:45 -06:00
|
|
|
link:
|
2023-02-26 19:22:28 -06:00
|
|
|
g++ build/*.o -o bin/SnakePlusPlus $(SFML)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm bin/*.o build/*.out
|