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