diff options
author | c+1 | 2023-10-10 11:26:44 -0400 |
---|---|---|
committer | c+1 | 2023-10-10 11:26:44 -0400 |
commit | 58c7a71a50318940e747c365cc3f207dba432977 (patch) | |
tree | 7d173f5433fba1b01c531610a0bf70684b8ca1de /Makefile | |
parent | 78befa147eccfb169bf994da3d9bfba9be3631a6 (diff) |
fixed source.c, fixed preprocessor mem leaks, implemented new lexer
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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." |