add libtool to tools/
[openwrt/svn-archive/archive.git] / tools / libtool / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libtool
12 PKG_VERSION:=1.5.22
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/libtool
17 PKG_MD5SUM:=8e0ac9797b62ba4dcc8a2fb7936412b0
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 define Build/Configure
24 $(call Build/Configure/Default, \
25 --disable-shared \
26 --disable-static \
27 )
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR)
32 endef
33
34 define Build/Install
35 $(MAKE) -C $(PKG_BUILD_DIR) install
36 endef
37
38 define Build/Clean
39 $(MAKE) -C $(PKG_BUILD_DIR) uninstall clean
40 $(call Build/Clean/Default)
41 endef
42
43 $(eval $(call HostBuild))