2007-07-01 09:45:27 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 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:=patch-cmdline
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-08-07 00:04:25 +00:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -include endian.h -o $(PKG_BUILD_DIR)/$(PKG_NAME) src/$(PKG_NAME).c
|
2007-07-01 09:45:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Install
|
2007-08-07 00:04:25 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/patch-cmdline $(STAGING_DIR_HOST)/bin/
|
2007-07-01 09:45:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/patch-cmdline
|
2007-07-01 09:45:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|