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