2006-06-27 08:44:04 +08: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 14:19:43 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2006-12-07 07:42:37 +08:00
|
|
|
PKG_NAME:=sstrip
|
2006-09-25 04:49:31 +08:00
|
|
|
PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/sstrip
|
2006-06-21 14:19:43 +08:00
|
|
|
|
|
|
|
OS:=$(shell uname)
|
2006-10-11 03:19:24 +08:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
2006-09-25 04:49:31 +08:00
|
|
|
CFLAGS += -I./include
|
2006-06-21 14:19:43 +08:00
|
|
|
endif
|
2006-10-15 06:11:21 +08:00
|
|
|
CFLAGS += -I $(TOPDIR)/tools/include -include endian.h
|
2006-06-21 14:19:43 +08:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Install
|
2006-09-25 04:49:31 +08:00
|
|
|
mkdir -p $(STAGING_DIR)/bin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin/
|
2006-06-21 14:19:43 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
|
|
|
rm -f $(STAGING_DIR)/bin/sstrip
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|