summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-02-25 21:17:52 +0000
committerRobin Watts <robin.watts@artifex.com>2015-03-20 17:14:06 +0000
commit6c9dc1493cdf4ff11bc8f8f9fc0e26ee328fbaef (patch)
tree768eaf222994013d26b8849e99ef022096faac5d /Makerules
parentd6e0edb9978a6ab2a1fb4926ae13b846e1ea1b88 (diff)
downloadmupdf-6c9dc1493cdf4ff11bc8f8f9fc0e26ee328fbaef.tar.xz
First attempt at mupdf tizen build.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 75573dab..e858ffcb 100644
--- a/Makerules
+++ b/Makerules
@@ -146,6 +146,24 @@ RANLIB_CMD = xcrun ranlib $@
CROSSCOMPILE=yes
endif
+ifeq "$(OS)" "tizen-arm"
+TIZEN_TOOLS=$(TIZEN_SDK)/tools/arm-linux-gnueabi-gcc-4.6/bin/arm-linux-gnueabi-
+TIZEN_FLAGS=--sysroot=$(TIZEN_SDK)/platforms/mobile-2.3/rootstraps/mobile-2.3-device.core
+CC = $(TIZEN_TOOLS)gcc $(TIZEN_FLAGS)
+AR = $(TIZEN_TOOLS)ar
+LD = $(TIZEN_TOOLS)ld $(TIZEN_FLAGS)
+CROSSCOMPILE=yes
+endif
+
+ifeq "$(OS)" "tizen-x86"
+TIZEN_TOOLS=$(TIZEN_SDK)/tools/i386-linux-gnueabi-gcc-4.6/bin/i386-linux-gnueabi-
+TIZEN_FLAGS=--sysroot=$(TIZEN_SDK)/platforms/mobile-2.3/rootstraps/mobile-2.3-emulator.core
+CC = $(TIZEN_TOOLS)gcc $(TIZEN_FLAGS)
+AR = $(TIZEN_TOOLS)ar $(TIZEN_FLAGS)
+LD = $(TIZEN_TOOLS)ld $(TIZEN_FLAGS)
+CROSSCOMPILE=yes
+endif
+
# TODO: If crosscompiling, why not just call "make libs" instead of this exception?
ifeq "$(CROSSCOMPILE)" "yes"
HAVE_X11 ?= no