aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lua/Makefile
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2008-05-30 18:38:14 +0000
committerSteven Barth <cyrus@openwrt.org>2008-05-30 18:38:14 +0000
commit13f0dea188f0827caddc3395c23af760bc0ae6bd (patch)
treeaa452b2e0bee641f2666b6648eb9c5ed8cda13d8 /tools/lua/Makefile
parente19528fa6a0bc5a9e9df39ae383f9922345ade0e (diff)
downloadupstream-13f0dea188f0827caddc3395c23af760bc0ae6bd.tar.gz
upstream-13f0dea188f0827caddc3395c23af760bc0ae6bd.tar.bz2
upstream-13f0dea188f0827caddc3395c23af760bc0ae6bd.zip
Added lua (lua host bytecode-compiler) to tools/
SVN-Revision: 11304
Diffstat (limited to 'tools/lua/Makefile')
-rw-r--r--tools/lua/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/lua/Makefile b/tools/lua/Makefile
new file mode 100644
index 0000000000..7b1f28faf2
--- /dev/null
+++ b/tools/lua/Makefile
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=lua
+PKG_VERSION:=5.1.3
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
+ http://ftp.gwdg.de/pub/languages/lua/ \
+ http://mirrors.dotsrc.org/lua/ \
+ http://www.tecgraf.puc-rio.br/lua/ftp/
+PKG_MD5SUM:=a70a8dfaa150e047866dc01a46272599
+
+include $(INCLUDE_DIR)/host-build.mk
+
+define Build/Configure
+endef
+
+TARGET_CFLAGS += -DLUA_USE_LINUX
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR)/src luac-host
+endef
+
+define Build/Install
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/luac-host $(STAGING_DIR_HOST)/bin/luac
+endef
+
+define Build/Clean
+ $(MAKE) -C $(PKG_BUILD_DIR)/src clean
+ rm -f $(PKG_BUILD_DIR)/src/luac-host
+ $(call Build/Clean/Default)
+endef
+
+$(eval $(call HostBuild))