summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-04-05 19:49:04 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-04-05 19:49:04 +0200
commitea0bfe7520742ac5dec97c6ac4cdc54d2410445c (patch)
tree12503bd7ff199df05dee75b952e1802c9ad64ded /rbutil/ipodpatcher/Makefile
parent891351db6001f51d7615f7190a8751adea861376 (diff)
downloadrockbox-ea0bfe7520742ac5dec97c6ac4cdc54d2410445c.tar.gz
rockbox-ea0bfe7520742ac5dec97c6ac4cdc54d2410445c.zip
Replace the use of uname to get the build output.
Using uname has a couple of problems, especially when cross compiling. Instead check the defines set by the preprocessor to figure the type of binaries it produces. This improves support for cross compiling as it allows to (1) select the correct default target and (2) makes it possible to use separate build folders for different targets. Change-Id: I69a32904dab97755034f2f0d63f8402309d479d2
Diffstat (limited to 'rbutil/ipodpatcher/Makefile')
-rw-r--r--rbutil/ipodpatcher/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile
index 79fe4c7c03..0b0b404ca2 100644
--- a/rbutil/ipodpatcher/Makefile
+++ b/rbutil/ipodpatcher/Makefile
@@ -27,10 +27,8 @@ BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini1g.c \
27CFLAGS += -DWITH_BOOTOBJS 27CFLAGS += -DWITH_BOOTOBJS
28endif 28endif
29 29
30ifeq ($(findstring Darwin,$(shell uname)),Darwin)
31# additional frameworks to link on on OS X 30# additional frameworks to link on on OS X
32LDOPTS += -framework CoreFoundation -framework IOKit 31LDOPTS_OSX += -framework CoreFoundation -framework IOKit
33endif
34 32
35LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \ 33LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
36 ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c 34 ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c