2010-10-29 16:39:18 +03:00
|
|
|
#
|
2012-08-10 22:26:26 +03:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2010-10-29 16:39:18 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME := flock
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
mkdir -p $(HOST_BUILD_DIR)
|
2012-08-12 15:34:30 +03:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/flock src/flock.c
|
2010-10-29 16:39:18 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|