ewolDrawer/Makefile

51 lines
1.7 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-15 18:16:15 +01:00
PROJECT_NDK?=$(PROJECT_PATH)/../android/ndk-r7/
PROJECT_SDK?=$(PROJECT_PATH)/../android/sdk-r15/
PROJECT_MODULE?=$(PROJECT_PATH)/../
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
# 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
DEFINE+= -DPROJECT_VERSION_BUILD_TIME="\"$(VERSION_BUILD_TIME)\""
PROJECT_LDFLAGS=
PROJECT_SOURCES= jni/ewolAndroidAbstraction.cpp \
jni/Main.cpp
#include the specific platefom makefile
include $(EWOL_FOLDER)/Build/Makefile.$(PLATFORM).mk