aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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."