]> www.git.momoyon.org Git - lang.git/commitdiff
[Makefile] Add debug target
authormomoyon <momoyon@momoyon.org>
Sat, 10 May 2025 05:54:40 +0000 (10:54 +0500)
committermomoyon <momoyon@momoyon.org>
Sat, 10 May 2025 05:54:40 +0000 (10:54 +0500)
Makefile

index 2e985002798e04d1681bd6d2adea7f6930d971a8..42d9a36011585a6be47bbec2065c21a8fd364c7d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 CC=gcc
-CFLAGS=-Wall -Wextra -ggdb -I./include -Wswitch-enum
+CFLAGS=-Wall -Wextra -ggdb -I./include -Wswitch-enum -Wno-char-subscripts
 LDFLAGS=-L./lib
 LIBS=
 
 lang: main.c
        $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)
+
+debug: main.c
+       $(CC) $(CFLAGS) -DDEBUG=1 -o lang-debug $< $(LDFLAGS) $(LIBS)