2021-11-24 10:49:55 +03:00
|
|
|
includeF = -Iinclude
|
|
|
|
libraryF = -Llib -lSDL2
|
|
|
|
|
2023-07-05 15:58:48 +03:00
|
|
|
bin/main: pre-build src/main.cpp obj/GameOfLife.o
|
|
|
|
g++ -std=c++17 -o bin/main src/main.cpp obj/GameOfLife.o $(includeF) $(libraryF)
|
2021-11-24 10:49:55 +03:00
|
|
|
|
|
|
|
obj/GameOfLife.o: src/GameOfLife.cpp
|
|
|
|
g++ -std=c++17 -c -o obj/GameOfLife.o src/GameOfLife.cpp $(includeF) $(libraryF)
|
2023-07-05 15:58:48 +03:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
mkdir -p obj && mkdir -p bin
|