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

@@ -10,15 +10,15 @@ PKG_NAME:=sstrip
include $(INCLUDE_DIR)/host-build.mk
define Build/Compile
$(CC) $(HOST_CFLAGS) -I./include -include endian.h -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
define Host/Compile
$(CC) $(HOST_CFLAGS) -I./include -include endian.h -o $(HOST_BUILD_DIR)/sstrip src/sstrip.c
endef
define Build/Install
$(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
define Host/Install
$(CP) $(HOST_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
endef
define Build/Clean
define Host/Clean
rm -f $(STAGING_DIR_HOST)/bin/sstrip
endef