Updated Makefile
This commit is contained in:
9
Makefile
9
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
|
DEBUG+=-DDEBUG_ON
|
||||||
PREFIX=/usr/bin/
|
PREFIX=/usr/bin/
|
||||||
BUILDDIR=bin/
|
BUILDDIR=bin/
|
||||||
|
|
||||||
|
CC=cc
|
||||||
|
|
||||||
TARGET=vvm
|
TARGET=vvm
|
||||||
SOURCES=$(wildcard src/*.c)
|
SOURCES=$(wildcard src/*.c)
|
||||||
|
|
||||||
#Makes everything
|
#Makes everything
|
||||||
all:
|
all:
|
||||||
mkdir $(BUILDDIR) 2> /dev/null || true
|
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)
|
#Uses picky extensions and makes everything(Extensions may break compiling)
|
||||||
dev:
|
dev:
|
||||||
@@ -18,7 +21,7 @@ dev:
|
|||||||
#Makes a debug build
|
#Makes a debug build
|
||||||
debug:
|
debug:
|
||||||
mkdir $(BUILDDIR) 2> /dev/null || true
|
mkdir $(BUILDDIR) 2> /dev/null || true
|
||||||
cc $(CFLAGS) $(DEBUG) $(SOURCES) -o $(BUILDDIR)$(TARGET)
|
$(CC) $(CFLAGS) $(DEBUG) $(SOURCES) -o $(BUILDDIR)$(TARGET)
|
||||||
|
|
||||||
#Runs all tests
|
#Runs all tests
|
||||||
runtests:
|
runtests:
|
||||||
|
Reference in New Issue
Block a user