From 1bb837ef6716ce74742e8660912050863dbcdf86 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 31 Aug 2026 06:07:43 +0000 Subject: 1 --- .gitignore | 2 +- src/Makefile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/Makefile diff --git a/.gitignore b/.gitignore index 0ba1c63..f152158 100644 --- a/.gitignore +++ b/.gitignore @@ -48,7 +48,7 @@ build-*/ CMakeFiles/ CMakeCache.txt cmake_install.cmake -Makefile +#Makefile install_manifest.txt compile_commands.json diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..47cea41 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,18 @@ +CC = gcc +CXX = g++ +CXXFLAGS = -Wall -Wextra -std=c++21 + +TARGET = ccshell +SRCS = main.cc +OBJS = $(SRCS:.cc=.o) + +$(TARGET): $(OBJS) + $(CXX) $(OBJS) -o $(TARGET) + +%.o: %.cc + $(CXX) $(CXXFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJS) $(TARGET) + +.PHONY: clean -- cgit v1.3.1-4-g156e