aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-08-31 06:07:43 +0000
committer_ov4 <ov4@ov4.org>2026-08-31 06:07:43 +0000
commit1bb837ef6716ce74742e8660912050863dbcdf86 (patch)
tree375974720c007d4c16e9368c3c924f6fb6c755b0
parent256466fc44ed0264d92be328fea1d7f8c84d0de6 (diff)
1
-rw-r--r--.gitignore2
-rw-r--r--src/Makefile18
2 files changed, 19 insertions, 1 deletions
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