From 58c7a71a50318940e747c365cc3f207dba432977 Mon Sep 17 00:00:00 2001 From: c+1 Date: Tue, 10 Oct 2023 11:26:44 -0400 Subject: fixed source.c, fixed preprocessor mem leaks, implemented new lexer --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 63a5068..151bafd 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ BIN := $(shell echo $(NAME) | tr '[:upper:]' '[:lower:]') TMPBIN := $(BIN).out CC := gcc FLAGS := -O3 -s -DEVFLAGS := -ggdb -fsanitize=leak,address,undefined -fno-omit-frame-pointer +DEVFLAGS := -g -ggdb -fsanitize=leak,address,undefined -fno-omit-frame-pointer SRCS := $(wildcard src/*.c) SRCS := $(filter-out src/parser.c, $(SRCS)) # exclude the incomplete parser for now. OBJS := $(SRCS:.c=.o) @@ -47,7 +47,10 @@ clean: rm -f $(TMPBIN) src/*.o %.o: %.c include/%.h - $(CC) -c $(FLAGS) $< -o $@ + $(CC) -c $(DEVFLAGS) $< -o $@ + +%.o: %.c + $(CC) -c $(DEVFLAGS) $< -o $@ me: @[ "$(USER)" = "root" ] && echo "Okay." || echo "What? Make it yourself." -- cgit v1.2.3