2
0
forked from Ivasoft/openwrt

build system refactoring in preparation for allowing packages to do host-build steps

SVN-Revision: 14610
This commit is contained in:
Felix Fietkau
2009-02-22 04:37:20 +00:00
parent 6ccc1c8e3c
commit 7eb1589875
33 changed files with 493 additions and 460 deletions

View File

@@ -15,8 +15,8 @@ PKG_MD5SUM:=
include $(INCLUDE_DIR)/host-build.mk
define Build/Configure
(cd $(PKG_BUILD_DIR); \
define Host/Configure
(cd $(HOST_BUILD_DIR); \
./configure \
--prefix=$(STAGING_DIR_HOST) \
--build=$(GNU_HOST_NAME) \
@@ -27,16 +27,16 @@ define Build/Configure
);
endef
define Build/Compile
make -C $(PKG_BUILD_DIR) all
define Host/Compile
make -C $(HOST_BUILD_DIR) all
endef
define Build/Install
make -C $(PKG_BUILD_DIR) install
define Host/Install
make -C $(HOST_BUILD_DIR) install
endef
define Build/Clean
rm -rf $(PKG_BUILD_DIR)
define Host/Clean
rm -rf $(HOST_BUILD_DIR)
endef
$(eval $(call HostBuild))