From a36519a2cc933b933bfafa255b30c7c6b8eab9f0 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Fri, 6 Feb 2015 18:41:17 +0100 Subject: [PATCH] Updated Makefile --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bf230f1..c71cf51 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,18 @@ -override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized -pedantic +STD=-std=c11 +override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized -pedantic -fsanitize=address $(STD) DEBUG+=-DDEBUG_ON PREFIX=/usr/bin/ BUILDDIR=bin/ +CC=cc + TARGET=vvm SOURCES=$(wildcard src/*.c) #Makes everything all: mkdir $(BUILDDIR) 2> /dev/null || true - cc $(CFLAGS) $(SOURCES) -o $(BUILDDIR)$(TARGET) + $(CC) $(CFLAGS) $(SOURCES) -o $(BUILDDIR)$(TARGET) #Uses picky extensions and makes everything(Extensions may break compiling) dev: @@ -18,7 +21,7 @@ dev: #Makes a debug build debug: mkdir $(BUILDDIR) 2> /dev/null || true - cc $(CFLAGS) $(DEBUG) $(SOURCES) -o $(BUILDDIR)$(TARGET) + $(CC) $(CFLAGS) $(DEBUG) $(SOURCES) -o $(BUILDDIR)$(TARGET) #Runs all tests runtests: