Makefile 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2009 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ppl
  9. PKG_VERSION:=0.10.2
  10. PKG_SOURCE_URL:=ftp://gcc.gnu.org/pub/gcc/infrastructure
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_MD5SUM:=e7dd265afdeaea81f7e87a72b182d875
  13. include $(INCLUDE_DIR)/host-build.mk
  14. unexport CFLAGS
  15. ifeq ($(HOST_OS),Darwin)
  16. GNU_HOST_NAME:=
  17. HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
  18. endif
  19. HOST_CONFIGURE_ARGS += \
  20. --enable-static \
  21. --disable-shared
  22. define Host/Configure
  23. (cd $(HOST_BUILD_DIR)/$(3); \
  24. $(HOST_CONFIGURE_CMD) \
  25. $(HOST_CONFIGURE_VARS) \
  26. $(HOST_CONFIGURE_ARGS); \
  27. )
  28. endef
  29. $(eval $(call HostBuild))