summaryrefslogtreecommitdiffstats
path: root/tools/lua/Makefile
blob: 13d06b107c6af8f8035ddb1437bc390232ce69da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.4

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:=d0870f2de55d59c1c8419f36e8fac150

include $(INCLUDE_DIR)/host-build.mk

define Host/Configure
endef

TARGET_CFLAGS += -DLUA_USE_LINUX

define Host/Compile
	$(MAKE) -C $(HOST_BUILD_DIR)/src luac-host
endef

define Host/Install
	$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/luac-host $(STAGING_DIR_HOST)/bin/luac
endef

define Host/Clean
	$(MAKE) -C $(HOST_BUILD_DIR)/src clean
	rm -f $(HOST_BUILD_DIR)/src/luac-host
	$(call Host/Clean/Default)
endef

$(eval $(call HostBuild))