diff options
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -36,6 +36,7 @@ ifeq "$(OS)" "Darwin" SYS_FREETYPE_INC := -I/usr/X11R6/include/freetype2 CFLAGS += -I/usr/X11R6/include LDFLAGS += -L/usr/X11R6/lib +RANLIB_CMD = ranlib $@ X11_LIBS := -lX11 -lXext ifeq "$(arch)" "amd64" CFLAGS += -m64 @@ -58,6 +59,7 @@ endif # cygwin) # 2) do a non cross compile build (e.g. windows in MSVC) first. # 3) download the generated files from mupdf.com. + ifeq "$(OS)" "beagle-cross" CC = arm-none-linux-gnueabi-gcc LD = arm-none-linux-gnueabi-gcc @@ -84,3 +86,15 @@ CFLAGS += -O3 -mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -ffast-math -fsingl CROSSCOMPILE=yes NOX11=yes endif + +# Most variables when building for iOS are set up in ios/build_libs.sh, +# which is called from the Xcode project as a "Run Script" build step. +# The following section works for both device and simulator builds. + +ifeq "$(OS)" "ios" +CC = $(PLATFORM_DEVELOPER_BIN_DIR)/clang +AR = $(PLATFORM_DEVELOPER_BIN_DIR)/ar +RANLIB_CMD = $(PLATFORM_DEVELOPER_BIN_DIR)/ranlib $@ +CROSSCOMPILE=yes +NOX11=yes +endif |