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# 7include $(TOPDIR)/rules.mk 8 9PKG_NAME := flock 10 11include $(INCLUDE_DIR)/host-build.mk 12 13define Host/Compile 14 mkdir -p $(HOST_BUILD_DIR) 15 $(HOSTCC) $(HOST_CFLAGS) $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/flock src/flock.c 16endef 17 18define Host/Install 19 $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/ 20endef 21 22$(eval $(call HostBuild)) 23