2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 include $(INCLUDE_DIR
)/host-build.mk
15 HOSTCC
:= $(HOSTCC_NOCACHE
)
16 HOSTCXX
:= $(HOSTCXX_NOCACHE
)
19 mkdir
-p
$(HOST_BUILD_DIR
)
20 $(HOSTCC
) $(HOST_CFLAGS
) -o
$(HOST_BUILD_DIR
)/flock src
/flock.c
24 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/flock
$(STAGING_DIR_HOST
)/bin
/
28 rm -f
$(STAGING_DIR_HOST
)/bin
/flock
31 $(eval
$(call HostBuild
))