snakeplusplus/Makefile

24 lines
560 B
Makefile
Raw Normal View History

INC := -I include
STD := -std=c++11
SFML := -lsfml-graphics -lsfml-window -lsfml-system
all: compile link
fresh: dirs compile link
compile:
g++ $(INC) $(STD) -c -o build/main.o src/main.cpp
g++ $(INC) $(STD) -c -o build/display.o src/display.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-03-17 20:13:50 -05:00
g++ build/*.o -o bin/SnakePlusPlus.out $(SFML)
clean:
2023-03-17 20:13:50 -05:00
rm bin/*.out build/*.o