enable iw for all 2.6 versions
[openwrt/openwrt.git] / tools / lua / 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:=lua
12 PKG_VERSION:=5.1.3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
16 http://ftp.gwdg.de/pub/languages/lua/ \
17 http://mirrors.dotsrc.org/lua/ \
18 http://www.tecgraf.puc-rio.br/lua/ftp/
19 PKG_MD5SUM:=a70a8dfaa150e047866dc01a46272599
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 define Build/Configure
24 endef
25
26 TARGET_CFLAGS += -DLUA_USE_LINUX
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR)/src luac-host
30 endef
31
32 define Build/Install
33 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/luac-host $(STAGING_DIR_HOST)/bin/luac
34 endef
35
36 define Build/Clean
37 $(MAKE) -C $(PKG_BUILD_DIR)/src clean
38 rm -f $(PKG_BUILD_DIR)/src/luac-host
39 $(call Build/Clean/Default)
40 endef
41
42 $(eval $(call HostBuild))