change OS to HOST_OS
[openwrt/staging/dedeckeh.git] / openwrt / tools / 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 ($(HOST_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 mkdir -p $(STAGING_DIR)/bin
23 $(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin/
24 endef
25
26 define Build/Clean
27 rm -f $(STAGING_DIR)/bin/sstrip
28 endef
29
30 $(eval $(call HostBuild))