2010-10-29 13:39:18 +00:00
|
|
|
#
|
2012-08-10 19:26:26 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2010-10-29 13:39:18 +00: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
|
2020-07-22 23:49:37 +00:00
|
|
|
PKG_VERSION := 2.18
|
|
|
|
PKG_RELEASE := 1
|
2010-10-29 13:39:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2016-01-21 23:22:11 +00:00
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
HOSTCXX := $(HOSTCXX_NOCACHE)
|
|
|
|
|
2010-10-29 13:39:18 +00:00
|
|
|
define Host/Compile
|
|
|
|
mkdir -p $(HOST_BUILD_DIR)
|
2015-02-06 00:00:43 +00:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
|
2010-10-29 13:39:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
2022-09-28 08:23:56 +00:00
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/flock
|
|
|
|
endef
|
|
|
|
|
2010-10-29 13:39:18 +00:00
|
|
|
$(eval $(call HostBuild))
|