summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-27 00:51:41 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-27 00:54:12 +0100
commitc88b0849511b970abe9864993c011af89e0daccc (patch)
treea1df509a2afa47913dd73b4e4da114b8e3f9f1b5
parent8de9bfd5c1e62fc9cdcd720303c15edd251a7c2c (diff)
downloadmupdf-c88b0849511b970abe9864993c011af89e0daccc.tar.xz
Makefile tweaks
Add an all-nojs target to make all the non-js dependent targets; I envisage the cluster using this for normal runs so that having a broken v8 library won't stop normal tests working. Add macosx detection for the choice of v8 library to use.
-rw-r--r--Makefile4
-rw-r--r--Makethird9
2 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61428623..be889ed4 100644
--- a/Makefile
+++ b/Makefile
@@ -201,7 +201,9 @@ install: $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUBUSY)
# --- Clean and Default ---
-all: $(THIRD_LIBS) $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUBUSY) $(JSTARGETS)
+all: all-nojs $(JSTARGETS)
+
+all-nojs: $(THIRD_LIBS) $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUBUSY)
clean:
rm -rf $(OUT)
diff --git a/Makethird b/Makethird
index 36d83a13..290c612d 100644
--- a/Makethird
+++ b/Makethird
@@ -25,9 +25,16 @@ V8LIB_CHOICE := debug
endif
# If you are building for 32bit linux use V8_ARCH=ia32
+# MacOSX has a 64bit kernel, but a 32 bit userspace.
+ifeq "$(OS)" "Darwin"
+V8_ARCH ?= ia32
+V8_DIR ?= out-mac
+else
V8_ARCH ?= x64
+V8_DIR ?= out
+endif
-V8LIBS = -L$(V8_DIR)/out/$(V8_ARCH).$(V8LIB_CHOICE)/obj.target/tools/gyp
+V8LIBS = -L$(V8_DIR)/$(V8_DIR)/$(V8_ARCH).$(V8LIB_CHOICE)/obj.target/tools/gyp
V8_PRESENT := 1
else