Makefile 893 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2009-2013 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:=mklibs
  9. PKG_VERSION:=0.1.35
  10. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mklibs/
  12. PKG_HASH:=ccb1023dc1729c5a37ca6c3eca8e4bac3491116763c8820dfce8eea4845c8567
  13. HOST_FIXUP:=autoreconf
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CFLAGS += -I$(CURDIR)/include
  16. HOST_CPPFLAGS += -std=gnu++98
  17. define Host/Install
  18. $(INSTALL_BIN) \
  19. $(HOST_BUILD_DIR)/src/mklibs \
  20. $(HOST_BUILD_DIR)/src/mklibs-copy \
  21. $(HOST_BUILD_DIR)/src/mklibs-readelf/mklibs-readelf \
  22. $(STAGING_DIR_HOST)/bin/
  23. endef
  24. define Host/Clean
  25. rm -f $(STAGING_DIR_HOST)/bin/mklibs*
  26. endef
  27. $(eval $(call HostBuild))