1cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# 2cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Hello World Nanoapp Makefile 3cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# 4cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 5cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Environment Checks ########################################################### 6cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 7cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignolifeq ($(CHRE_PREFIX),) 8081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddieifneq ($(ANDROID_BUILD_TOP),) 9081cf58c30107f77283b11f286bb976cc4ce35e3Brian DuddieCHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre 10081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddieelse 11081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddie$(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly define \ 12081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddie the CHRE_PREFIX environment variable to point to the CHRE root \ 13081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddie directory.") 14081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddieendif 15cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignolendif 16cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 17cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Nanoapp Configuration ######################################################## 18cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 19cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew RossignolNANOAPP_NAME = hello_world 20081cf58c30107f77283b11f286bb976cc4ce35e3Brian DuddieNANOAPP_ID = 0x0123456789000001 21081cf58c30107f77283b11f286bb976cc4ce35e3Brian DuddieNANOAPP_VERSION = 0x00000001 22081cf58c30107f77283b11f286bb976cc4ce35e3Brian Duddie 23081cf58c30107f77283b11f286bb976cc4ce35e3Brian DuddieNANOAPP_NAME_STRING = \"Hello\ World\" 24cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 25cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Common Compiler Flags ######################################################## 26cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 27cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew RossignolCOMMON_CFLAGS += -I. 28cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 29cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Common Source Files ########################################################## 30cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 31cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew RossignolCOMMON_SRCS += hello_world.cc 32cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 33cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol# Makefile Includes ############################################################ 34cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignol 35cb0ca9cfdfa880d56d8ce90422a761e61b677cbcAndrew Rossignolinclude $(CHRE_PREFIX)/build/nanoapp/app.mk 36