aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorc+12023-10-10 11:26:44 -0400
committerc+12023-10-10 11:26:44 -0400
commit58c7a71a50318940e747c365cc3f207dba432977 (patch)
tree7d173f5433fba1b01c531610a0bf70684b8ca1de /Makefile
parent78befa147eccfb169bf994da3d9bfba9be3631a6 (diff)
fixed source.c, fixed preprocessor mem leaks, implemented new lexer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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."