1# 
2# Copyright (C) 2007-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=patch-cmdline
10
11include $(INCLUDE_DIR)/host-build.mk
12
13define Host/Compile
14	$(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/$(PKG_NAME) src/$(PKG_NAME).c
15endef
16
17define Host/Install
18	$(CP) $(HOST_BUILD_DIR)/patch-cmdline $(STAGING_DIR_HOST)/bin/
19endef
20
21define Host/Clean
22	rm -f $(STAGING_DIR_HOST)/bin/patch-cmdline
23endef
24
25$(eval $(call HostBuild))
26