2006-06-27 00:44:04 +00:00
|
|
|
#
|
2012-08-10 19:26:54 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-12-06 23:42:37 +00:00
|
|
|
PKG_NAME:=sstrip
|
2006-06-21 06:19:43 +00:00
|
|
|
|
2007-05-10 07:02:04 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2012-08-12 12:34:30 +00:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -I./include -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/sstrip src/sstrip.c
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
$(CP) $(HOST_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/sstrip
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|