summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-04-05 20:03:45 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-04-05 20:03:45 +0200
commit703bc407b4565736eb1c40f85887c84c33e37696 (patch)
tree5be967527bb217538e78c2aadfd5284b40d2fcf8
parentea0bfe7520742ac5dec97c6ac4cdc54d2410445c (diff)
downloadrockbox-703bc407b4565736eb1c40f85887c84c33e37696.tar.gz
rockbox-703bc407b4565736eb1c40f85887c84c33e37696.zip
Fix ipodpatcher on OS X.
Fix a typo and update CC handling for OS X. Change-Id: Icde3cb5956ffe45ee1d610ff34957ed7b17f3f02
-rw-r--r--rbutil/ipodpatcher/Makefile2
-rw-r--r--rbutil/libtools.make10
2 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile
index 0b0b404ca2..382423b4f2 100644
--- a/rbutil/ipodpatcher/Makefile
+++ b/rbutil/ipodpatcher/Makefile
@@ -28,7 +28,7 @@ CFLAGS += -DWITH_BOOTOBJS
28endif 28endif
29 29
30# additional frameworks to link on on OS X 30# additional frameworks to link on on OS X
31LDOPTS_OSX += -framework CoreFoundation -framework IOKit 31LDOPTS_OSX = -framework CoreFoundation -framework IOKit
32 32
33LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \ 33LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
34 ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c 34 ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index 44ed5fef3d..de70388010 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -27,6 +27,8 @@ APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..)
27CFLAGS += -DVERSION=\""$(APPVERSION)"\" 27CFLAGS += -DVERSION=\""$(APPVERSION)"\"
28TARGET_DIR ?= $(abspath .)/ 28TARGET_DIR ?= $(abspath .)/
29 29
30NATIVECC = gcc
31CC = gcc
30CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -) 32CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -)
31# use POSIX/C99 printf on windows 33# use POSIX/C99 printf on windows
32CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 34CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
@@ -44,7 +46,7 @@ COMPILETARGET = mingw
44else 46else
45ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) 47ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
46COMPILETARGET = darwin 48COMPILETARGET = darwin
47LDOPTS += $(LDFLAGS_OSX) 49LDOPTS += $(LDOPTS_OSX)
48else 50else
49COMPILETARGET = posix 51COMPILETARGET = posix
50endif 52endif
@@ -52,8 +54,6 @@ endif
52endif 54endif
53$(info Compiler creates $(COMPILETARGET) binaries) 55$(info Compiler creates $(COMPILETARGET) binaries)
54 56
55NATIVECC ?= gcc
56CC ?= gcc
57# OS X specifics. Needs to consider cross compiling for Windows. 57# OS X specifics. Needs to consider cross compiling for Windows.
58ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) 58ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
59# when building libs for OS X build for both i386 and ppc at the same time. 59# when building libs for OS X build for both i386 and ppc at the same time.
@@ -62,9 +62,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
62CFLAGS += -arch ppc -arch i386 62CFLAGS += -arch ppc -arch i386
63# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode) 63# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
64# might need adjustment for older Xcode. 64# might need adjustment for older Xcode.
65CC ?= gcc-4.0 65CC = gcc-4.0
66CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 66CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
67NATIVECC ?= gcc-4.0 67NATIVECC = gcc-4.0
68endif 68endif
69WINDRES = windres 69WINDRES = windres
70 70