From 4c6e7e086a3541f8d7db77cd6023856b782b33d5 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 21 Feb 2014 13:53:47 +0100 Subject: [PATCH] build: Add more cflags to the Makefile --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index c63ff38a..94383ad7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,7 +24,7 @@ ifneq ( ,$(findstring Windows, $(OS))) ASMFLAGS += -f win64 else ASMFLAGS += -f win32 - ASMFLAGS += -DPREFIX + ASMFLAGS += -DPREFIX endif LDFLAGS += -lws2_32 # OS X specific flags @@ -37,7 +37,7 @@ else ifeq ($(SYSTEM),Darwin) ASMFLAGS += -DPREFIX # Default to Linux/elf specific flags else - ifeq ($(ARCH), x86_64) + ifeq ($(ARCH), x86_64) ASMFLAGS += -f elf64 else ASMFLAGS += -f elf32 @@ -45,7 +45,7 @@ else endif CC = gcc -CCFLAGS = $(DFLAGS) -I. -I/usr/local/include -L/usr/local/lib +CCFLAGS = $(DFLAGS) -I. -I/usr/local/include -L/usr/local/lib -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=declaration-after-statement -Werror=vla -Wno-maybe-uninitialized LDFLAGS += -lm LD = gcc YASM = yasm