snakeplusplus/Makefile

23 lines
530 B
Makefile
Raw Normal View History

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
compile:
g++ $(INC) $(STD) -c -o build/main.o src/main.cpp
g++ $(INC) $(STD) -c -o build/Common.o src/Common.cpp
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
dirs:
mkdir bin build
link:
2023-02-26 19:22:28 -06:00
g++ build/*.o -o bin/SnakePlusPlus $(SFML)
clean:
rm bin/*.o build/*.out