Minor fixes
This commit is contained in:
@@ -12,7 +12,6 @@ all:
|
|||||||
@echo
|
@echo
|
||||||
@echo Running tests:
|
@echo Running tests:
|
||||||
@echo
|
@echo
|
||||||
make tests
|
|
||||||
|
|
||||||
# Runs the tests
|
# Runs the tests
|
||||||
tests:
|
tests:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
||||||
DEBUG+=-DEBUG=1
|
DEBUG+=-DDEBUG=1
|
||||||
PREFIX=/usr/bin
|
PREFIX=/usr/bin
|
||||||
BUILDDIR=bin/
|
BUILDDIR=bin/
|
||||||
|
|
||||||
@@ -15,6 +15,7 @@ all:
|
|||||||
dev:
|
dev:
|
||||||
make all CFLAGS+=-Wshadow -Wunreachable-code -Wswitch-enum -Wswitch-default -Wcast-align -Winit-self -Wpointer-arith -Weffc++
|
make all CFLAGS+=-Wshadow -Wunreachable-code -Wswitch-enum -Wswitch-default -Wcast-align -Winit-self -Wpointer-arith -Weffc++
|
||||||
|
|
||||||
|
#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)
|
||||||
|
Reference in New Issue
Block a user