aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authors-over-42023-06-21 16:34:22 -0400
committers-over-42023-06-21 16:34:22 -0400
commit46f4397bf0718fbaf2cee5b4ffd56d4a36f2c4d8 (patch)
tree9e582eef34f67fd47117445e22a316e6c855ad5d /Makefile
parent069204d6151326acc77bfd1f9072bd19882b948a (diff)
NO MORE MEMORY LEAKS :D
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 3 insertions, 8 deletions
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."