From 8cfdb2a3b97a28cc212099d6dbd797190f50a04d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 14 Jun 2017 14:11:00 +0200 Subject: [PATCH] fix warning on OS X --- makefile_include.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/makefile_include.mk b/makefile_include.mk index df2dd7e..842afda 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -23,6 +23,7 @@ VERSION_LIB=1:0:0 # by giving them as a parameter to make: # make CFLAGS="-I./src/headers/ -DLTC_SOURCE ..." ... # + CFLAGS += -Wall -W -Wshadow -Isrc/headers ifdef COMPILE_DEBUG @@ -31,7 +32,12 @@ CFLAGS += -g3 else ifndef IGNORE_SPEED -CFLAGS += -O3 -funroll-loops +CFLAGS += -O3 + +PLATFORM := $(shell uname | sed -e 's/_.*//') +ifneq ($(PLATFORM), Darwin) +CFLAGS += -funroll-loops +endif #profiling #PROF=-pg -g