2
0

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