1
0

Makefile 637 B

12345678910111213141516171819202122232425262728293031
  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. PKG_VERSION := 2.18
  10. PKG_RELEASE := 1
  11. include $(INCLUDE_DIR)/host-build.mk
  12. HOSTCC := $(HOSTCC_NOCACHE)
  13. HOSTCXX := $(HOSTCXX_NOCACHE)
  14. define Host/Compile
  15. mkdir -p $(HOST_BUILD_DIR)
  16. $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
  17. endef
  18. define Host/Install
  19. $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
  20. endef
  21. define Host/Clean
  22. rm -f $(STAGING_DIR_HOST)/bin/flock
  23. endef
  24. $(eval $(call HostBuild))