Makefile 479 B

12345678910111213141516171819202122
  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 := flock
  9. include $(INCLUDE_DIR)/host-build.mk
  10. define Host/Compile
  11. mkdir -p $(HOST_BUILD_DIR)
  12. $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
  13. endef
  14. define Host/Install
  15. $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
  16. endef
  17. $(eval $(call HostBuild))