Home | History | Annotate | Download | only in android
      1 SHELL=/bin/bash
      2 
      3 TARGET       ?= android
      4 PRODUCT      ?= beagleboard
      5 ANDROID_ROOT ?= /Android/trunk/0xdroid/beagle-eclair
      6 KERNEL_ROOT  ?= /Android/trunk/0xdroid/kernel
      7 MLSDK_ROOT   ?= $(CURDIR)
      8 
      9 ifeq ($(VERBOSE),1)
     10 	DUMP=1>/dev/stdout
     11 else
     12 	DUMP=1>/dev/null
     13 endif
     14 
     15 include common.mk
     16 
     17 ################################################################################
     18 ## targets
     19 
     20 INV_ROOT = ../..
     21 LIB_FOLDERS  = $(INV_ROOT)/core/mllite/build/$(TARGET)
     22 ifeq ($(BUILD_MPL),1)
     23 	LIB_FOLDERS += $(INV_ROOT)/core/mpl/build/$(TARGET)
     24 endif
     25 APP_FOLDERS  = $(INV_ROOT)/simple_apps/mpu_iio/build/$(TARGET)
     26 APP_FOLDERS += $(INV_ROOT)/simple_apps/self_test/build/$(TARGET)
     27 APP_FOLDERS += $(INV_ROOT)/simple_apps/gesture_test/build/$(TARGET)
     28 APP_FOLDERS += $(INV_ROOT)/simple_apps/playback/linux/build/$(TARGET)
     29 APP_FOLDERS += $(INV_ROOT)/simple_apps/devnode_parser/build/$(TARGET)
     30 
     31 INSTALL_DIR = $(CURDIR)
     32 
     33 ################################################################################
     34 ## macros
     35 
     36 define echo_in_colors
     37 	echo -ne "\e[1;34m"$(1)"\e[0m"
     38 endef
     39 
     40 ################################################################################
     41 ## rules
     42 
     43 .PHONY : all mllite mpl clean
     44 
     45 all:
     46 	for DIR in $(LIB_FOLDERS); do (				\
     47 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     48 	done
     49 	for DIR in $(APP_FOLDERS); do (				\
     50 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     51 	done
     52 
     53 clean: 
     54 	for DIR in $(LIB_FOLDERS); do (				\
     55 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     56 	done
     57 	for DIR in $(APP_FOLDERS); do (				\
     58 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     59 	done
     60 
     61 cleanall:
     62 	for DIR in $(LIB_FOLDERS); do (				\
     63 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     64 	done
     65 	for DIR in $(APP_FOLDERS); do (				\
     66 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     67 	done
     68 
     69 install:
     70 	for DIR in $(LIB_FOLDERS); do (				\
     71 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     72 	done
     73 	for DIR in $(APP_FOLDERS); do (				\
     74 		cd $$DIR && $(MAKE) -f shared.mk $@ ); 	\
     75 	done
     76 
     77