Minor fixes

This commit is contained in:
Veit Heller
2014-10-08 12:47:26 +02:00
parent c7bf6e5fb7
commit 214e44dad0
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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)