2020-05-04 23:17:22 +02:00
|
|
|
LINKER_FLAGS = -lsfml-graphics -lsfml-window -lsfml-system
|
|
|
|
|
|
|
|
main: main.cpp
|
|
|
|
g++ -c main.cpp
|
|
|
|
|
|
|
|
game: tetris.cpp tetris.hpp
|
|
|
|
g++ -c tetris.cpp -o game.o
|
|
|
|
|
|
|
|
out: main game
|
2020-05-04 23:28:04 +02:00
|
|
|
g++ main.o game.o -o tetris $(LINKER_FLAGS)
|
2020-05-04 23:17:22 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm main.o game.o out
|