X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=4b30a7890df1e346f2d81efdc814b5d1fefc6631;hb=8eaab6439da19d5a346eb9cc9ff2e0b19bd0f6c3;hp=edc1d20c7e035efa03b8b33546cd9912fd39b65d;hpb=33d59f0647c4a08446ff0ddc66fdd98fcd56e9a9;p=virtualjaguar diff --git a/Makefile b/Makefile index edc1d20..4b30a78 100644 --- a/Makefile +++ b/Makefile @@ -17,12 +17,17 @@ ifeq "$(findstring Darwin,$(OSTYPE))" "Darwin" QMAKE_EXTRA := -spec macx-g++ endif -# (This will only assign if the var doesn't exist already. Without these flags, -# Virtual Jaguar will run very slow.) -CFLAGS ?= -O2 -ffast-math -fomit-frame-pointer -CPPFLAGS ?= -O2 -ffast-math -fomit-frame-pointer -CXXFLAGS ?= -O2 -ffast-math -fomit-frame-pointer -LDFLAGS ?= +# Set basic flags, these can be overridden from the environment +CFLAGS = -O2 +CXXFLAGS = -O2 + +# Add CPPFLAGS +CFLAGS += $(CPPFLAGS) +CXXFLAGS += $(CPPFLAGS) + +# Without these flags, Virtual Jaguar will run very slow. +CFLAGS += -ffast-math -fomit-frame-pointer +CXXFLAGS += -ffast-math -fomit-frame-pointer # Flags to pass on to qmake... QMAKE_EXTRA += "QMAKE_CFLAGS_RELEASE=$(CFLAGS)"