From: momoyon Date: Sat, 10 May 2025 05:54:40 +0000 (+0500) Subject: [Makefile] Add debug target X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=f1653b1abf8bbc69410feae8489f2b3eebee44fd;p=lang.git [Makefile] Add debug target --- diff --git a/Makefile b/Makefile index 2e98500..42d9a36 100644 --- 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)