From bf0e5690a31d4c3cecd2ba512729a0b73989bbda Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 25 Jun 2018 15:50:58 +0300 Subject: Major refactoring Fix memleak in KeyMap, fix memleak caused by loading a yaml file in main.c. Change Copyright information. Rename functions.c and .h to engine.c and .h. Take field and shape related functions to separate file (still not all of them) and refactor them a lot. Refactor collision detection. Add more warnings. Add sanitizer option commented out. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3