From a3f7e4765f80f6c2f2b5ad28568dac946cbfaaac Mon Sep 17 00:00:00 2001 From: Colin Dean <git@cad.cx> Date: Sun, 8 Apr 2018 12:01:21 -0400 Subject: [PATCH] Adds some compiler-specific configuration Mostly to silence warnings. I hate buzzers going off! --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dc32b61..cd6b04c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,14 @@ CC?=gcc LDFLAGS=-lm -CFLAGS=-O3 -Wall -Wuninitialized -fomit-frame-pointer -funroll-loops \ - -fstrength-reduce -DNODEBUG `libpng-config --I_opts` +ifeq ($(CC), gcc) + SPECIFIC_CFLAGS=-fstrength-reduce +else + SPECIFIC_CFLAGS= +endif +CFLAGS=-O3 -Wall -Wuninitialized \ + -fomit-frame-pointer -funroll-loops \ + $(SPECIFIC_CFLAGS) \ + -DNODEBUG `libpng-config --I_opts` all: optar unoptar