Fixed compile-time dependencies name, and control file
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3 include ../rules.mk
4
5 package-y += base-files
6 package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
7 package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
8 package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
9 package-$(BR2_PACKAGE_KMOD_BCM43XX_DSCAPE) += bcm43xx-dscape
10 package-$(BR2_PACKAGE_KMOD_IEEE80211_DSCAPE) += ieee80211-dscape
11 package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
12 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
13 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
14 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
15 package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
16 package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
17 package-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
18 package-$(BR2_PACKAGE_KMOD_DIAG) += diag
19 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
20 package-$(BR2_PACKAGE_KMOD_ZD1211) += zd1211
21
22 bcm43xx-dscape-compile: ieee80211-dscape-compile
23 wlcompat-compile: base-files-compile
24
25 all: compile install
26 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
27 prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
28 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
29 install: $(patsubst %,%-install,$(package-y))
30
31 KPKG_MAKEOPTS += BUILD_DIR="$(LINUX_BUILD_DIR)"
32
33 %-prepare:
34 @$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
35 $(MAKE) -C $(patsubst %-prepare,%,$@) \
36 $(KPKG_MAKEOPTS) \
37 prepare
38 @$(CMD_TRACE) " done"
39 @$(END_TRACE)
40
41 %-compile:
42 @$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
43 $(MAKE) -C $(patsubst %-compile,%,$@) \
44 $(KPKG_MAKEOPTS) \
45 compile
46 @$(CMD_TRACE) " done"
47 @$(END_TRACE)
48
49 %-install:
50 @$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
51 $(MAKE) -C $(patsubst %-install,%,$@) \
52 $(KPKG_MAKEOPTS) \
53 install
54 @$(CMD_TRACE) " done"
55 @$(END_TRACE)
56
57 %-clean:
58 @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
59 @$(MAKE) -C $(patsubst %-clean,%,$@) \
60 $(KPKG_MAKEOPTS) \
61 clean
62 @$(CMD_TRACE) " done"
63 @$(END_TRACE)
64