blob: 4e0a45440fa5cd426635be2936a963b0e0dcf2c3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
10PKG_VERSION := 2.18
11PKG_RELEASE := 1
12
13include $(INCLUDE_DIR)/host-build.mk
14
15HOSTCC := $(HOSTCC_NOCACHE)
16HOSTCXX := $(HOSTCXX_NOCACHE)
17
18define Host/Compile
19 mkdir -p $(HOST_BUILD_DIR)
20 $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
21endef
22
23define Host/Install
24 $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
25endef
26
27define Host/Clean
28 rm -f $(STAGING_DIR_HOST)/bin/flock
29endef
30
31$(eval $(call HostBuild))