Home | History | Annotate | Download | only in hello_world
      1 #
      2 # Hello World Nanoapp Makefile
      3 #
      4 
      5 # Environment Checks ###########################################################
      6 
      7 ifeq ($(CHRE_PREFIX),)
      8 ifneq ($(ANDROID_BUILD_TOP),)
      9 CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
     10 else
     11 $(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly define \
     12          the CHRE_PREFIX environment variable to point to the CHRE root \
     13 	 directory.")
     14 endif
     15 endif
     16 
     17 # Nanoapp Configuration ########################################################
     18 
     19 NANOAPP_NAME = hello_world
     20 NANOAPP_ID = 0x0123456789000001
     21 NANOAPP_VERSION = 0x00000001
     22 
     23 NANOAPP_NAME_STRING = \"Hello\ World\"
     24 
     25 # Common Compiler Flags ########################################################
     26 
     27 COMMON_CFLAGS += -I.
     28 
     29 # Common Source Files ##########################################################
     30 
     31 COMMON_SRCS += hello_world.cc
     32 
     33 # Makefile Includes ############################################################
     34 
     35 include $(CHRE_PREFIX)/build/nanoapp/app.mk
     36