Adds some compiler-specific configuration

Mostly to silence warnings. I hate buzzers going off!
This commit is contained in:
Colin Dean 2018-04-08 12:01:21 -04:00
parent 3ecedd11dd
commit a3f7e4765f

View File

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