summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-10-13 20:19:30 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-11-01 23:46:56 +0100
commit33483b52654822b58390ebd2711b13b2dece8740 (patch)
tree981549a13f6754b5980d796ef886a57144636155 /Makefile
parenta89c74cd325b3ee670ba430756eec267a49400c0 (diff)
downloadmupdf-33483b52654822b58390ebd2711b13b2dece8740.tar.xz
Add skeleton iOS viewer project.
Support cross compiling for iPhone and iPad targets using the makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c798d350..df6f85c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,12 @@
build ?= debug
+ifneq "$(OS)" ""
+OUT := build/$(build)-$(OS)
+else
OUT := build/$(build)
+endif
+
GEN := generated
# --- Variables, Commands, etc... ---
@@ -41,6 +46,7 @@ $(OUT) $(GEN) :
$(OUT)/%.a :
$(AR_CMD)
+ $(RANLIB_CMD)
$(OUT)/% : $(OUT)/%.o
$(LINK_CMD)