From 1ecf70937d2517e327a7c8bd580aa2a78f40a9da Mon Sep 17 00:00:00 2001 From: DeLiss <96916811+deliss-btw@users.noreply.github.com> Date: Thu, 11 Jun 2026 13:03:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ Makefile | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 90cdded..916ac50 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ x64/ Debug/ Release/ +-p/ +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9ef97d7 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file