2005-05-28 12:17:29 +03:00
|
|
|
# Main makefile for the packages
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
|
2005-07-21 02:50:51 +03:00
|
|
|
package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
|
2005-05-28 12:17:29 +03:00
|
|
|
package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
|
|
|
|
package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
|
2005-08-14 00:27:45 +03:00
|
|
|
package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
|
2005-07-21 17:02:53 +03:00
|
|
|
package-y += openwrt
|
2005-07-21 14:45:36 +03:00
|
|
|
|
2005-09-10 20:21:57 +03:00
|
|
|
ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
|
2005-05-28 13:54:32 +03:00
|
|
|
package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
|
2005-07-24 22:58:14 +03:00
|
|
|
wlcompat-compile: openwrt-compile
|
2005-05-28 13:54:32 +03:00
|
|
|
endif
|
2005-07-21 14:45:36 +03:00
|
|
|
|
2005-05-28 12:17:29 +03:00
|
|
|
all: compile install
|
|
|
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
|
|
|
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
|
|
|
install: $(patsubst %,%-install,$(package-y))
|
|
|
|
|
2005-06-11 18:36:31 +03:00
|
|
|
MAKEOPTS:= BOARD="$(BOARD)" \
|
2005-09-10 20:21:57 +03:00
|
|
|
KERNEL="$(KERNEL)" \
|
2005-07-16 15:56:21 +03:00
|
|
|
IPKG="$(IPKG)" \
|
2005-05-28 13:54:32 +03:00
|
|
|
TARGET_DIR="$(TARGET_DIR)" \
|
2005-05-28 12:17:29 +03:00
|
|
|
BUILD_DIR="$(BUILD_DIR)" \
|
|
|
|
KERNEL_DIR="$(KERNEL_DIR)" \
|
|
|
|
LINUX_VERSION="$(LINUX_VERSION)" \
|
2005-06-11 18:36:31 +03:00
|
|
|
KERNEL_RELEASE="$(KERNEL_RELEASE)"
|
|
|
|
|
|
|
|
|
|
|
|
%-prepare:
|
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) \
|
|
|
|
$(MAKEOPTS) \
|
2005-05-28 12:17:29 +03:00
|
|
|
prepare
|
|
|
|
|
|
|
|
%-compile: %-prepare
|
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) \
|
2005-06-11 18:36:31 +03:00
|
|
|
$(MAKEOPTS) \
|
2005-05-28 12:17:29 +03:00
|
|
|
compile
|
|
|
|
|
|
|
|
%-install: %-compile
|
|
|
|
$(MAKE) -C $(patsubst %-install,%,$@) \
|
2005-06-11 18:36:31 +03:00
|
|
|
$(MAKEOPTS) \
|
2005-05-28 12:17:29 +03:00
|
|
|
install
|
|
|
|
|
|
|
|
%-clean:
|
|
|
|
@$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
|
|
|
|