Добавлен Makefile

This commit is contained in:
DeLiss
2026-06-11 13:03:30 +05:00
parent dbe901c071
commit 1ecf70937d
2 changed files with 18 additions and 0 deletions

2
.gitignore vendored
View File

@@ -2,3 +2,5 @@
x64/ x64/
Debug/ Debug/
Release/ Release/
-p/
build

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra -Iinclude
SRC = $(wildcard src/*.cpp)
OUT = build/game
all: $(OUT)
$(OUT): $(SRC)
mkdir -p build
$(CXX) $(CXXFLAGS) $(SRC) -o $(OUT)
run: all
./$(OUT)
clean:
rm -rf build