20 lines
454 B
Makefile
20 lines
454 B
Makefile
INC := -I include
|
|
STD := -std=c++11
|
|
SFML := -lsfml-graphics -lsfml-window -lsfml-system
|
|
|
|
all: dirs compile link
|
|
|
|
dirs:
|
|
mkdir bin build
|
|
|
|
compile:
|
|
g++ $(INC) $(STD) -c -o build/main.o src/main.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
|
|
|
|
link:
|
|
g++ build/*.o -o bin/SnakePlusPlus $(SFML)
|
|
|
|
clean:
|
|
rm bin/*.o build/*.out
|