aa18e21c5fed8caf081fdd0ef870bafba53d9b11
[openwrt.git] / toolchain / sstrip / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/host-build.mk
3
4 PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/sstrip
5
6 OS:=$(shell uname)
7 ifeq ($(OS),Darwin)
8 CFLAGS += -I./include
9 endif
10
11 define Build/Compile
12         $(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
13 endef
14
15 define Build/Install
16         $(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin
17 endef
18
19 define Build/Clean
20         rm -f $(STAGING_DIR)/bin/sstrip
21 endef
22
23 $(eval $(call HostBuild))