cleanup
[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 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 CFLAGS += -I $(TOPDIR)/tools/include -include endian.h
17
18 define Build/Compile
19 $(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
20 endef
21
22 define Build/Install
23 mkdir -p $(STAGING_DIR)/bin
24 $(CP) $(PKG_BUILD_DIR)/sstrip $(STAGING_DIR)/bin/
25 endef
26
27 define Build/Clean
28 rm -f $(STAGING_DIR)/bin/sstrip
29 endef
30
31 $(eval $(call HostBuild))
This page took 0.037652 seconds and 5 git commands to generate.