aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <i@glowisle.me>2026-05-20 23:45:26 +0800
committerverdant <i@glowisle.me>2026-05-20 23:45:26 +0800
commit9c7a531c6a60a4263de044d0fa80880a518f4a4b (patch)
tree03652a2b61a9e9ad10781da989e94ec21012f37a
parent0d9c9d805ac3f0bfeca55904bce796652d46333f (diff)
downloadkl-9c7a531c6a60a4263de044d0fa80880a518f4a4b.tar.gz
kl-9c7a531c6a60a4263de044d0fa80880a518f4a4b.zip
Add debug option
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a0f1a5..a4d1b79 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,11 @@ $(TARGET): $(SRCS)
TARGET = kl
SRCS = main.c
+CFLAGS = -g
+
kl: *.c
- gcc *.c -o kl
+ gcc *.c $(CFLAGS) -o kl
clean:
rm -rf *.o kl