build system refactoring in preparation for allowing packages to do host-build steps
[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.4
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:=d0870f2de55d59c1c8419f36e8fac150
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 define Host/Configure
24 endef
25
26 TARGET_CFLAGS += -DLUA_USE_LINUX
27
28 define Host/Compile
29 $(MAKE) -C $(HOST_BUILD_DIR)/src luac-host
30 endef
31
32 define Host/Install
33 $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/luac-host $(STAGING_DIR_HOST)/bin/luac
34 endef
35
36 define Host/Clean
37 $(MAKE) -C $(HOST_BUILD_DIR)/src clean
38 rm -f $(HOST_BUILD_DIR)/src/luac-host
39 $(call Host/Clean/Default)
40 endef
41
42 $(eval $(call HostBuild))
This page took 0.044101 seconds and 5 git commands to generate.