add ipset patch for 2.6
[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-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
9 package-y += openwrt
10
11 ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
12 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
13 wlcompat-compile: openwrt-compile
14 endif
15
16 all: compile install
17 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
18 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
19 install: $(patsubst %,%-install,$(package-y))
20
21 MAKEOPTS:= BOARD="$(BOARD)" \
22 KERNEL="$(KERNEL)" \
23 IPKG="$(IPKG)" \
24 TARGET_DIR="$(TARGET_DIR)" \
25 BUILD_DIR="$(BUILD_DIR)" \
26 KERNEL_DIR="$(KERNEL_DIR)" \
27 LINUX_VERSION="$(LINUX_VERSION)" \
28 KERNEL_RELEASE="$(KERNEL_RELEASE)"
29
30
31 %-prepare:
32 $(MAKE) -C $(patsubst %-prepare,%,$@) \
33 $(MAKEOPTS) \
34 prepare
35
36 %-compile: %-prepare
37 $(MAKE) -C $(patsubst %-compile,%,$@) \
38 $(MAKEOPTS) \
39 compile
40
41 %-install: %-compile
42 $(MAKE) -C $(patsubst %-install,%,$@) \
43 $(MAKEOPTS) \
44 install
45
46 %-clean:
47 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
48
This page took 0.041657 seconds and 5 git commands to generate.