ewolDrawer/Makefile

66 lines
2.0 KiB
Makefile
Raw Normal View History

2011-12-13 14:29:06 +01:00
2011-12-15 18:16:15 +01:00
###############################################################################
### Some Preject properties : ###
###############################################################################
2011-12-13 14:29:06 +01:00
PROJECT_PATH=$(shell pwd)
2011-12-19 16:45:38 +01:00
ifeq ($(PLATFORM), Linux)
#PROJECT_NDK?=$(PROJECT_PATH)/../ewol/
2011-12-20 23:31:00 +01:00
PROJECT_NDK?=$(PROJECT_PATH)/../ewol/
2011-12-19 16:45:38 +01:00
else ifeq ($(PLATFORM), Android)
2011-12-15 18:16:15 +01:00
PROJECT_NDK?=$(PROJECT_PATH)/../android/ndk-r7/
PROJECT_SDK?=$(PROJECT_PATH)/../android/sdk-r15/
2011-12-19 16:45:38 +01:00
endif
2011-12-16 17:28:06 +01:00
2011-12-15 18:16:15 +01:00
PROJECT_MODULE?=$(PROJECT_PATH)/../
2011-12-16 17:28:06 +01:00
2011-12-13 14:29:06 +01:00
EWOL_FOLDER=$(PROJECT_MODULE)ewol
2011-12-15 18:16:15 +01:00
# group name or constructor ... (no dot, no MAJ no Numerical char)
2011-12-14 14:09:55 +01:00
PROJECT_VENDOR=heeroyui
2011-12-15 18:16:15 +01:00
# Binary name ... (no dot, no MAJ no Numerical char)
2011-12-14 14:09:55 +01:00
PROJECT_NAME=ewoldrawer
2011-12-15 18:16:15 +01:00
2011-12-16 17:28:06 +01:00
#dependence of the librairies :
#PROJECT_LIB_DEPENDENCY= ewol
PROJECT_FILE_DIRECTORY=jni
2011-12-15 18:16:15 +01:00
# get the tag of the current project :
PROJECT_VERSION_TAG=$(shell git describe --tags)
#$(info Project version TAG : $(PROJECT_VERSION_TAG))
PROJECT_VERSION_TAG_SHORT=$(shell git describe --tags --abbrev=0)
#$(info Project version TAG Short: $(PROJECT_VERSION_TAG_SHORT))
# enable or disable debug :
DEBUG:=1
###############################################################################
### Compilation Define ###
###############################################################################
ifeq ("$(DEBUG)", "0")
PROJECT_CXXFLAGS = -DPROJECT_DEBUG_LEVEL=1
PROJECT_CXXFLAGS+= -DPROJECT_NDEBUG
PROJECT_CXXFLAGS+= -DPROJECT_VERSION_TAG_NAME="\"$(VERSION_TAG)-release\""
else
PROJECT_CXXFLAGS = -DPROJECT_DEBUG_LEVEL=3
PROJECT_CXXFLAGS+= -DPROJECT_VERSION_TAG_NAME="\"$(VERSION_TAG)-debug\""
endif
2011-12-16 17:28:06 +01:00
PROJECT_CXXFLAGS+= -DPROJECT_VERSION_BUILD_TIME="\"$(VERSION_BUILD_TIME)\""
PROJECT_CXXFLAGS+= -I$(EWOL_FOLDER)/Sources/
2011-12-15 18:16:15 +01:00
2011-12-16 17:28:06 +01:00
PROJECT_LDFLAGS= -L$(EWOL_FOLDER)
2011-12-15 18:16:15 +01:00
PROJECT_SOURCES= jni/ewolAndroidAbstraction.cpp \
jni/Main.cpp
2011-12-16 17:28:06 +01:00
PROJECT_SOURCES= Main.cpp
2011-12-15 18:16:15 +01:00
#include the specific platefom makefile
include $(EWOL_FOLDER)/Build/Makefile.$(PLATFORM).mk