bab172a95a74c34bb87f195ecb1806227e3902b8
[openwrt/staging/wigyori.git] / tools / sstrip / Makefile
1 #
2 # Copyright (C) 2006-2012 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_VERSION:=2.0
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/host-build.mk
14
15 define Host/Compile
16 $(HOSTCC) $(HOST_CFLAGS) -include endian.h -o $(HOST_BUILD_DIR)/sstrip src/sstrip.c
17 endef
18
19 define Host/Install
20 $(CP) $(HOST_BUILD_DIR)/sstrip $(STAGING_DIR_HOST)/bin/
21 endef
22
23 define Host/Clean
24 rm -f $(STAGING_DIR_HOST)/bin/sstrip
25 endef
26
27 $(eval $(call HostBuild))