84402cce2ed73b8704a92535b8ba601d04774d5c
[openwrt.git] / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
5 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
6 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
7 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
8 package-y += openwrt
9
10 ifeq ($(BOARD),brcm)
11 package-$(BR2_PACKAGE_WIFICONF) += wificonf
12 package-y += nvram
13
14 ifeq ($(LINUX_VERSION),2.4.30)
15 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
16 endif
17
18 nvram-compile: openwrt-compile
19 endif
20
21 all: compile install
22 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
23 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
24 install: $(patsubst %,%-install,$(package-y))
25
26 MAKEOPTS:= BOARD="$(BOARD)" \
27 IPKG="$(IPKG)" \
28 TARGET_DIR="$(TARGET_DIR)" \
29 BUILD_DIR="$(BUILD_DIR)" \
30 KERNEL_DIR="$(KERNEL_DIR)" \
31 LINUX_VERSION="$(LINUX_VERSION)" \
32 KERNEL_RELEASE="$(KERNEL_RELEASE)"
33
34
35 %-prepare:
36 $(MAKE) -C $(patsubst %-prepare,%,$@) \
37 $(MAKEOPTS) \
38 prepare
39
40 %-compile: %-prepare
41 $(MAKE) -C $(patsubst %-compile,%,$@) \
42 $(MAKEOPTS) \
43 compile
44
45 %-install: %-compile
46 $(MAKE) -C $(patsubst %-install,%,$@) \
47 $(MAKEOPTS) \
48 install
49
50 %-clean:
51 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
52
This page took 0.046094 seconds and 3 git commands to generate.