49983e9129fc19cd645196100832ba2ab2952c6e
[openwrt/staging/wigyori.git] / openwrt / toolchain / sstrip / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/host-build.mk
9
10 PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/sstrip
11
12 OS:=$(shell uname)
13 ifeq ($(OS),Darwin)
14 CFLAGS += -I./include
15 endif
16
17 define Build/Compile
18 $(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
19 endef
20
21 define Build/Install
22 $(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin
23 endef
24
25 define Build/Clean
26 rm -f $(STAGING_DIR)/bin/sstrip
27 endef
28
29 $(eval $(call HostBuild))