diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-29 13:39:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-29 13:39:18 +0000 |
commit | 731877c5d95f0caefdd1484fe983083131f8eff2 (patch) | |
tree | d8b78a2f61433f69fac3ff4caf8a2181d1bbf064 /tools/flock/Makefile | |
parent | 387c2adead9e0820dfb7c79e0cedde280f877732 (diff) | |
download | mtk-20170518-731877c5d95f0caefdd1484fe983083131f8eff2.zip mtk-20170518-731877c5d95f0caefdd1484fe983083131f8eff2.tar.gz mtk-20170518-731877c5d95f0caefdd1484fe983083131f8eff2.tar.bz2 |
add a stripped down (and portable) version of flock to the host tools
SVN-Revision: 23707
Diffstat (limited to 'tools/flock/Makefile')
-rw-r--r-- | tools/flock/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/flock/Makefile b/tools/flock/Makefile new file mode 100644 index 0000000..64a8655 --- /dev/null +++ b/tools/flock/Makefile @@ -0,0 +1,22 @@ +# +# Copyright (C) 2006-2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME := flock + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Compile + mkdir -p $(HOST_BUILD_DIR) + $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/flock src/flock.c +endef + +define Host/Install + $(INSTALL_BIN) $(HOST_BUILD_DIR)/flock $(STAGING_DIR_HOST)/bin/ +endef + +$(eval $(call HostBuild)) |