From 63b256e3364d86454d9033c7ec9f64f1809d97fb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 6 Feb 2012 15:55:54 +0000 Subject: move MinGW -D hacks to only affect MinGW builds svn path=/trunk/externals/chaos/; revision=15955 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5421fbe..58aea6a 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ MANUAL = # automatically included EXTRA_DIST = chaos.ncb chaos.sln chaos.suo chaos.vcproj Makefile.nt +# Customization Note: added to MinGW's ALL_CFLAGS below #------------------------------------------------------------------------------# @@ -32,7 +33,7 @@ EXTRA_DIST = chaos.ncb chaos.sln chaos.suo chaos.vcproj Makefile.nt # #------------------------------------------------------------------------------# -ALL_CFLAGS = -I"$(PD_INCLUDE)" -D'srand48(n)=srand((n))' -D'drand48()=((double)rand()/RAND_MAX)' +ALL_CFLAGS = -I"$(PD_INCLUDE)" ALL_LDFLAGS = SHARED_LDFLAGS = ALL_LIBS = @@ -217,7 +218,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME))) # MinGW doesn't seem to include cc so force gcc CC=gcc OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer - ALL_CFLAGS += -mms-bitfields + ALL_CFLAGS += -mms-bitfields -D'srand48(n)=srand((n))' -D'drand48()=((double)rand()/RAND_MAX)' ALL_LDFLAGS += -s -shared -Wl,--enable-auto-import -L"$(PD_PATH)/src" -L"$(PD_PATH)/bin" -L"$(PD_PATH)/obj" SHARED_LDFLAGS += -shared ALL_LIBS += -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 $(LIBS_windows) -- cgit v1.2.1