-define Build/Compile
- $(CC) -O -c src/crc32.c -o $(PKG_BUILD_DIR)/crc32.o
- $(CC) -O -c src/mkimage.c -o $(PKG_BUILD_DIR)/mkimage.o
- $(CC) -O -o $(PKG_BUILD_DIR)/mkimage $(PKG_BUILD_DIR)/mkimage.o $(PKG_BUILD_DIR)/crc32.o
+define Host/Compile
+ rm -f $(HOST_BUILD_DIR)/tools/.depend
+ touch $(HOST_BUILD_DIR)/include/config.{h,mk} $(HOST_BUILD_DIR)/include/autoconf.mk{.dep,}
+ $(MAKE) -C $(HOST_BUILD_DIR) SUBDIRS=tools BIN_FILES-y="mkimage" tools