2006-06-27 00:44:04 +00: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 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
|
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Compile
|
2007-12-02 21:16:24 +00:00
|
|
|
$(CC) $(HOST_CFLAGS) -I./include -include endian.h -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Install
|
2007-08-07 00:04:25 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/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))
|