fix wlcompat build
[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_SHFS) += shfs
6 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
7 ifeq ($(LINUX_VERSION),2.4.30)
8 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
9 endif
10
11 all: compile install
12 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
13 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
14 install: $(patsubst %,%-install,$(package-y))
15
16 %-prepare:
17 $(MAKE) -C $(patsubst %-prepare,%,$@) \
18 TARGET_DIR="$(TARGET_DIR)" \
19 BUILD_DIR="$(BUILD_DIR)" \
20 KERNEL_DIR="$(KERNEL_DIR)" \
21 LINUX_VERSION="$(LINUX_VERSION)" \
22 prepare
23
24 %-compile: %-prepare
25 $(MAKE) -C $(patsubst %-compile,%,$@) \
26 TARGET_DIR="$(TARGET_DIR)" \
27 BUILD_DIR="$(BUILD_DIR)" \
28 KERNEL_DIR="$(KERNEL_DIR)" \
29 LINUX_VERSION="$(LINUX_VERSION)" \
30 compile
31
32 %-install: %-compile
33 $(MAKE) -C $(patsubst %-install,%,$@) \
34 TARGET_DIR="$(TARGET_DIR)" \
35 BUILD_DIR="$(BUILD_DIR)" \
36 KERNEL_DIR="$(KERNEL_DIR)" \
37 LINUX_VERSION="$(LINUX_VERSION)" \
38 install
39
40 %-clean:
41 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
42
This page took 0.043082 seconds and 5 git commands to generate.