From 46f4397bf0718fbaf2cee5b4ffd56d4a36f2c4d8 Mon Sep 17 00:00:00 2001 From: s-over-4 Date: Wed, 21 Jun 2023 16:34:22 -0400 Subject: NO MORE MEMORY LEAKS :D --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2a1c7f4..4f1b0ae 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ -.PHONY: install uninstall clean me a sandwich dev - +.PHONY: install uninstall dev clean test me a sandwich name := halk -cc := cc +cc := gcc flags := -s -devflags := -g +devflags := -ggdb -fsanitize=leak -fno-omit-frame-pointer sources := $(wildcard src/*.c) sources := $(filter-out src/parser.c, $(sources)) # exclude the incomplete parser for now. objects := $(sources:.c=.o) -tests := tests $(name): $(objects) $(cc) $(objects) $(flags) -o ./$(name).out @@ -28,9 +26,6 @@ uninstall: clean: rm -f ./$(name).out ./src/*.o -test: - @$(foreach file, $(wildcard $(tests)/*.test.sh), $(file);) - # fun me: @[ "$(USER)" = "root" ] && echo "Okay." || echo "What? Make it yourself." -- cgit v1.2.3