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