aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-09-28 13:39:24 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-09-28 13:39:24 -0700
commitbc53100f1ef063e09d77e8670e1796bc67017411 (patch)
treee84b23c3afceb88f75088be2749683b407d1cea2 /rules.mk
parent83cd586ea304d6f6aa190c65ee796baaba1941a7 (diff)
Checkin: various small changes
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 2532936..8d41f66 100644
--- a/rules.mk
+++ b/rules.mk
@@ -4,7 +4,13 @@
all: targets
+debug: CC := clang
debug: CFLAGS += -DDEBUG -g -fsanitize=address
+debug: INCS := -I $(INC_DIR)
+debug: ELIBS := -fsanitize=address
+debug: STATIC :=
+debug: CINIT :=
+debug: CFINI :=
debug: targets
release: CFLAGS += -O3 -mtune=native -flto -ffast-math #-DNDEBUG