mvebu: make flashing more safe
[openwrt.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 define Host/Compile
14         mkdir -p $(HOST_BUILD_DIR)
15         $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c
16 endef
17
18 define Host/Install
19         $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/
20 endef
21
22 $(eval $(call HostBuild))