diff options
author | c | 2024-01-28 21:43:37 -0500 |
---|---|---|
committer | c | 2024-01-28 21:43:37 -0500 |
commit | ca20ff4f4d0ac63856e538f9f4cef97197bf6465 (patch) | |
tree | ba8886c8832e082332a284e3b18fb0e4bbce3d05 /Makefile | |
parent | 422606d8b3cc6fba74f97af46f0378fc274d60ad (diff) |
Fixed buffer-overflow.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ PREFIX := /usr/local/bin CC := gcc REG_CFLAGS := -std=c99 -O3 -s DBG_CFLAGS := -std=c99 -Og -ggdb -pedantic -DBG_CFLAGS += -Wall -Wextra -Wformat -Werror -Wpedantic +DBG_CFLAGS += -Wall -Wextra -Wformat -Wpedantic DBG_CFLAGS += -fsanitize=leak,address,undefined -fno-omit-frame-pointer CFLAGS := $(REG_CFLAGS) SRCS := $(wildcard src/*.c) @@ -40,10 +40,10 @@ test: clean dbg $(TEST_OUTS) for f in $(TEST_OUTS); do ./$$f; done %.o: %.c - $(CC) -c $< -o $@ + $(CC) -c $< -o $@ $(CFLAGS) %.out: %.c - $(CC) $< $(filter-out %main.o,$(OBJS)) -o $@ + $(CC) $< $(filter-out %main.o,$(OBJS)) -o $@ $(CFLAGS) install: all mkdir -p $(PREFIX) |