ewol/Build/Makefile.mk

34 lines
979 B
Makefile
Raw Normal View History

2012-03-29 17:48:59 +02:00
###############################################################################
### Platform specificity : ###
###############################################################################
SUPPORTED_PLATFORM=Linux IMac IOs Android
DEFAULT_PLATFORM=Linux
# default platform can be overridden
PLATFORM?=$(DEFAULT_PLATFORM)
PROJECT_PATH=$(shell pwd)
PROJECT_MODULE=$(PROJECT_PATH)/../
ifeq ($(PLATFORM), Linux)
PROJECT_NDK?=$(realpath $(PROJECT_MODULE)/ewol/)
else ifeq ($(PLATFORM), IMac)
else ifeq ($(PLATFORM), IOs)
else ifeq ($(PLATFORM), Android)
2012-04-11 01:33:24 +02:00
PROJECT_NDK:=$(PROJECT_MODULE)/android/ndk/
PROJECT_SDK:=$(PROJECT_MODULE)/android/sdk/
2012-03-29 17:48:59 +02:00
else
$(error you must specify a corect platform : make PLATFORM=$(SUPPORTED_PLATFORM))
endif
# get the compilation date and time :
BUILD_TIME=$(shell date)
EWOL_FOLDER?=$(realpath $(PROJECT_MODULE)/ewol)
include $(EWOL_FOLDER)/Build/Makefile.$(PLATFORM).mk