tools/coreutils: update to 9.2
[openwrt/staging/nbd.git] / tools / flock / Makefile
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
9 PKG_NAME := flock
10 PKG_VERSION := 2.18
11 PKG_RELEASE := 1
12
13 include $(INCLUDE_DIR)/host-build.mk
14
15 HOSTCC := $(HOSTCC_NOCACHE)
16 HOSTCXX := $(HOSTCXX_NOCACHE)
17
18 define Host/Compile
19 mkdir -p $(HOST_BUILD_DIR)
20 $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
21 endef
22
23 define Host/Install
24 $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
25 endef
26
27 define Host/Clean
28 rm -f $(STAGING_DIR_HOST)/bin/flock
29 endef
30
31 $(eval $(call HostBuild))