uClibc: split the package into the main directory and the headers/ and utils/ subdire...
[openwrt/openwrt.git] / toolchain / uClibc / utils / Makefile
1 PATH_PREFIX=..
2
3 include ../common.mk
4
5 HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.utils_built
6 HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc_utils_installed
7
8 define Host/Compile
9 $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
10 $(UCLIBC_MAKE) $(TOOLCHAIN_JOBS) PREFIX= utils
11 endef
12
13 define Host/Install
14 $(INSTALL_DIR) $(TOOLCHAIN_DIR)/bin
15 $(INSTALL_BIN) \
16 $(HOST_BUILD_DIR)/utils/ldd \
17 $(TOOLCHAIN_DIR)/bin/
18 $(INSTALL_DIR) $(TOOLCHAIN_DIR)/sbin
19 $(INSTALL_BIN) \
20 $(HOST_BUILD_DIR)/utils/ldconfig \
21 $(TOOLCHAIN_DIR)/sbin/
22 endef
23
24 $(eval $(call HostBuild))