1
0

Makefile 635 B

123456789101112131415161718192021222324252627
  1. PATH_PREFIX:=..
  2. include ../common.mk
  3. HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.headers_built
  4. HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc_headers_installed
  5. define Host/Compile
  6. endef
  7. define Host/Install
  8. PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
  9. PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
  10. DEVEL_PREFIX=/ \
  11. RUNTIME_PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
  12. HOSTCC="$(HOSTCC)" \
  13. CC="$(TARGET_CC)" \
  14. CPU_CFLAGS="$(TARGET_CFLAGS)" \
  15. ARCH="$(CONFIG_ARCH)" \
  16. pregen \
  17. install_headers
  18. $(CP) $(BUILD_DIR_TOOLCHAIN)/linux-dev/* $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/
  19. endef
  20. $(eval $(call HostBuild))