bugfix
[openwrt.git] / 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
9 PKG_NAME:=sstrip
10 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/sstrip
11
12 include $(INCLUDE_DIR)/host-build.mk
13
14 OS:=$(shell uname)
15 ifeq ($(HOST_OS),Darwin)
16 CFLAGS += -I./include
17 endif
18 CFLAGS += -I $(TOPDIR)/tools/include -include endian.h
19
20 define Build/Compile
21 $(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
22 endef
23
24 define Build/Install
25 mkdir -p $(STAGING_DIR)/bin
26 $(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin/
27 endef
28
29 define Build/Clean
30 rm -f $(STAGING_DIR)/bin/sstrip
31 endef
32
33 $(eval $(call HostBuild))
This page took 0.041265 seconds and 5 git commands to generate.