kernel: sort generic configs
[openwrt/staging/chunkeey.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
11 include $(INCLUDE_DIR)/host-build.mk
12
13 HOSTCC := $(HOSTCC_NOCACHE)
14 HOSTCXX := $(HOSTCXX_NOCACHE)
15
16 define Host/Compile
17 mkdir -p $(HOST_BUILD_DIR)
18 $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
19 endef
20
21 define Host/Install
22 $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
23 endef
24
25 $(eval $(call HostBuild))