3
3
#
4
4
# GNU Make required
5
5
#
6
-
7
- COMPILE_PLATFORM =$(shell uname|sed -e s/_.* //|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
8
-
9
- COMPILE_ARCH =$(shell uname -m | sed -e s/i.86/x86/ | sed -e 's/^arm.* /arm/')
6
+ COMPILE_PLATFORM =$(shell uname | sed -e 's/_.* //' | tr '[:upper:]' '[:lower:]' | sed -e 's/\//_/g')
7
+ COMPILE_ARCH =$(shell uname -m | sed -e 's/i.86/x86/' | sed -e 's/^arm.* /arm/')
10
8
11
9
ifeq ($(COMPILE_PLATFORM ) ,sunos)
12
10
# Solaris uname and GNU uname differ
13
- COMPILE_ARCH =$(shell uname -p | sed -e s/i.86/x86/)
14
- endif
15
- ifeq ($(COMPILE_PLATFORM ) ,darwin)
16
- # Apple does some things a little differently...
17
- COMPILE_ARCH =$(shell uname -p | sed -e s/i.86/x86/)
11
+ COMPILE_ARCH =$(shell uname -p | sed -e 's/i.86/x86/')
18
12
endif
19
13
20
14
ifndef BUILD_STANDALONE
@@ -231,7 +225,7 @@ USE_RENDERER_DLOPEN=1
231
225
endif
232
226
233
227
ifndef DEBUG_CFLAGS
234
- DEBUG_CFLAGS =-g -O0
228
+ DEBUG_CFLAGS =-ggdb -O0
235
229
endif
236
230
237
231
# ############################################################################
@@ -408,8 +402,7 @@ ifeq ($(PLATFORM),darwin)
408
402
RENDERER_LIBS =
409
403
OPTIMIZEVM =
410
404
411
- BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes -mmacosx-version-min=10.5 \
412
- -DMAC_OS_X_VERSION_MIN_REQUIRED=1050
405
+ BASE_CFLAGS += -mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070
413
406
414
407
ifeq ($(ARCH),ppc)
415
408
BASE_CFLAGS += -arch ppc -faltivec
@@ -447,11 +440,9 @@ ifeq ($(PLATFORM),darwin)
447
440
$(error Architecture $(ARCH) is not supported when cross compiling)
448
441
endif
449
442
endif
450
- else
451
- TOOLS_CFLAGS += -DMACOS_X
452
443
endif
453
444
454
- BASE_CFLAGS += -fno-strict-aliasing -DMACOS_X - fno-common -pipe
445
+ BASE_CFLAGS += -fno-strict-aliasing -fno-common -pipe
455
446
456
447
ifeq ($(USE_OPENAL),1)
457
448
ifneq ($(USE_OPENAL_DLOPEN),1)
@@ -468,6 +459,9 @@ ifeq ($(PLATFORM),darwin)
468
459
469
460
BASE_CFLAGS += -D_THREAD_SAFE=1
470
461
462
+ # FIXME: It is not possible to build using system SDL2 framework
463
+ # 1. IF you try, this Makefile will still drop libSDL-2.0.0.dylib into the builddir
464
+ # 2. Debugger warns that you have 2- which one will be used is undefined
471
465
ifeq ($(USE_LOCAL_HEADERS),1)
472
466
BASE_CFLAGS += -I$(SDLHDIR ) /include
473
467
endif
0 commit comments