Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Default Makefile environment variables

Pedro edited this page Feb 1, 2014 · 5 revisions

Here you will find some environment variables that will change building behaviour on projects based on official template.

OS

Possible values:

  • Windows_NT
  • Android

This variable is necessary for forcing system detection. It's unnecessary on Linux and OSX.

DEBUG

Possible values:

  • 1

Compiles project in debug mode.

SHARED

Possible values:

  • 1

Compiles project into a dynamic library.

CROSS

Possible values:

  • MINGW
  • ANDROID

Activate cross compiling mode, where you'll be able to compile for Windows and Android from Linux.

This variable also auto-set the correct value to "OS" variable.

MINGW_PREFIX

Requires:

  • CROSS = MINGW

Common used values:

  • i486
  • i686-w64
  • X86_64-w64

Indicates which MinGW installation to be used during cross compilation.

ANDROID_TOOLCHAIN

Requires:

  • CROSS = ANDROID

Common used values:

  • /opt/android-toolchain/

Indicates Android Toolchain storage path, to be used during cross compilation.

ANDROID_PREFIX

Requires:

  • CROSS = ANDROID

Common used values:

  • arm-linux-androideabi
  • i686-linux-android
  • mipsel-linux-android

Indicates Android Toolchain compiler to be used during cross compilation.

JNI

Possible values:

  • 1

Compiles project as a library to be used with Java Native Interface.