33 lines
998 B
Makefile
33 lines
998 B
Makefile
|
|
###############################################################################
|
|
### Platform specificity : ###
|
|
###############################################################################
|
|
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/)
|
|
else ifeq ($(PLATFORM), MacOs)
|
|
TARGET_OS=MacOs
|
|
else ifeq ($(PLATFORM), IOs)
|
|
|
|
else ifeq ($(PLATFORM), Windows)
|
|
|
|
else ifeq ($(PLATFORM), Android)
|
|
PROJECT_NDK:=$(PROJECT_MODULE)/android/ndk/
|
|
PROJECT_SDK:=$(PROJECT_MODULE)/android/sdk/
|
|
else
|
|
$(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
|