summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f7ddfd..133184a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,12 +11,20 @@ OBJECTS:=$(patsubst $(SRC)/%.c,$(BUILD)/%.c.o,$(SOURCES))
INCLUDE+=include
INCLUDE:=$(patsubst %,-I%,$(INCLUDE))
+#COMMON+=-fsanitize=leak
+
+CFLAGS+=$(COMMON)
CFLAGS+=$(INCLUDE)
CFLAGS+=-Wall
+CFLAGS+=-Wextra
+CFLAGS+=-Wpedantic
+CFLAGS+=-Wduplicated-branches
+CFLAGS+=-Wduplicated-cond
CFLAGS+=-std=c11
CFLAGS+=-g3
CFLAGS+=-O0
+LDFLAGS+=$(COMMON)
LDFLAGS+=-lcsfml-graphics
LDFLAGS+=-lcsfml-window
LDFLAGS+=-lcsfml-system