Makefile 526 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright (C) 2006-2012 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:=sstrip
  9. include $(INCLUDE_DIR)/host-build.mk
  10. define Host/Compile
  11. $(HOSTCC) $(HOST_CFLAGS) -include endian.h -o $(HOST_BUILD_DIR)/sstrip src/sstrip.c
  12. endef
  13. define Host/Install
  14. $(CP) $(HOST_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
  15. endef
  16. define Host/Clean
  17. rm -f $(STAGING_DIR_HOST)/bin/sstrip
  18. endef
  19. $(eval $(call HostBuild))