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