-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·56 lines (47 loc) · 952 Bytes
/
Makefile
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
MODULES_DPRAM=y
MODULES_WLAN=y
MODULES_MULTIMEDIA=n
MODULES_VIBETONZ=y
MODULES_FMRADIO=n
MODULES_BTGPIO=n
.PHONY: clean install
ifeq ($(MODULES_DPRAM),y)
subdir-y += dpram
subdir-y += multipdp
endif
ifeq ($(MODULES_CAMERA),y)
subdir-y += camera
endif
ifeq ($(MODULES_WLAN),y)
subdir-y += bcm4329
endif
ifeq ($(MODULES_MULTIMEDIA),y)
subdir-y += pvrsrvkm
subdir-y += s3clcd
subdir-y += s3cbc
endif
ifeq ($(MODULES_VIBETONZ),y)
subdir-y += vibetonz
endif
ifeq ($(MODULES_BTGPIO),y)
subdir-y += btgpio
endif
ifeq ($(MODULES_FMRADIO),y)
subdir-y += fm_si4709
endif
SUBDIRS := $(subdir-y)
DO_INSTALL_MODS = y
all: $(SUBDIRS)
$(SUBDIRS)::
@$(MAKE) -C $@
install: $(SUBDIRS)
ifeq ($(strip $(DO_INSTALL_MODS)),y)
@for i in `echo $(SUBDIRS)`; do \
$(MAKE) --no-print-directory -C $$i $@ > /dev/null 2>&1; \
done
endif
@$(MAKE) --no-print-directory -C $(KDIR) modules_install
clean:
@for i in `echo $(SUBDIRS)`; do \
$(MAKE) -C $$i $@; \
done