lutin/Makefile.mk

33 lines
998 B
Makefile
Raw Normal View History

###############################################################################
### Platform specificity : ###
###############################################################################
2012-08-10 12:17:29 +02:00
SUPPORTED_PLATFORM=Linux Windows MacOs IOs Android
DEFAULT_PLATFORM=Linux
# default platform can be overridden
PLATFORM?=$(DEFAULT_PLATFORM)
PROJECT_PATH=$(shell pwd)
PROJECT_MODULE=$(shell realpath $(PROJECT_PATH)/../)
ifeq ($(PLATFORM), Linux)
PROJECT_NDK?=$(realpath $(PROJECT_MODULE)/ewol/)
2012-08-10 12:17:29 +02:00
else ifeq ($(PLATFORM), MacOs)
TARGET_OS=MacOs
2012-08-10 12:17:29 +02:00
else ifeq ($(PLATFORM), IOs)
2012-08-10 12:17:29 +02:00
else ifeq ($(PLATFORM), Windows)
else ifeq ($(PLATFORM), Android)
PROJECT_NDK:=$(PROJECT_MODULE)/android/ndk/
PROJECT_SDK:=$(PROJECT_MODULE)/android/sdk/
else
2012-08-10 12:17:29 +02:00
$(error you must specify a corect platform : make PLATFORM=[$(SUPPORTED_PLATFORM)])
endif
EWOL_FOLDER?=$(realpath $(PROJECT_MODULE)/ewol)
include $(EWOL_FOLDER)/Build/Makefile.$(PLATFORM).mk