summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 486f8adc..54e568c1 100644
--- a/Makerules
+++ b/Makerules
@@ -43,3 +43,20 @@ CFLAGS += -m32
LDFLAGS += -m32
endif
endif
+
+# The following section is an example of how to simply do cross-compilation
+# using these Makefiles. It builds for a beagleboard running ARM linux,
+# compiling on windows with the CodeSourcery G++ compilers.
+# Invoke this as:
+# make OS=beagle-cross build=release
+# This does rely on the generated directory being populated with the cmap
+# files etc first. Either do a non cross compile build (e.g. windows in MSVC
+# or windows in cygwin) first, or download the generated files from mupdf.com.
+ifeq "$(OS)" "beagle-cross"
+CC = arm-none-linux-gnueabi-gcc
+LD = arm-none-linux-gnueabi-gcc
+AR = arm-none-linux-gnueabi-ar
+CFLAGS += -O3 -mfpu=neon -mcpu=cortex-a8 -mfloat-abi=softfp -ftree-vectorize -ffast-math -fsingle-precision-constant
+CROSSCOMPILE=yes
+NOX11=yes
+endif