Lua build infrastructure

This commit is contained in:
mbalmer 2010-10-31 11:26:01 +00:00
parent ee59b191f4
commit 97213731c9
7 changed files with 69 additions and 0 deletions

5
external/mit/lua/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.3 2010/10/31 11:26:01 mbalmer Exp $
SUBDIR+= usr.bin
.include <bsd.subdir.mk>

5
external/mit/lua/lib/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
SUBDIR+= liblua
.include <bsd.subdir.mk>

19
external/mit/lua/lib/liblua/Makefile vendored Normal file
View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
LIB= lua
SRCS= lapi.c lauxlib.c lbaselib.c lcode.c ldblib.c ldebug.c ldo.c \
ldump.c lfunc.c lgc.c linit.c liolib.c llex.c lmathlib.c \
lmem.c loadlib.c lobject.c lopcodes.c loslib.c lparser.c \
lstate.c lstring.c lstrlib.c ltable.c ltablib.c ltm.c \
lundump.c lvm.c lzio.c
.include <bsd.own.mk>
INCS= lauxlib.h lua.h luaconf.h lualib.h
INCSDIR= /usr/include
CFLAGS= -DLUA_USE_POSIX -DLUA_USE_DLOPEN
.PATH: ${NETBSDSRCDIR}/external/mit/lua/dist/src
.include <bsd.lib.mk>

View File

@ -0,0 +1,3 @@
# $NetBSD: shlib_version,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
major=1
minor=0

5
external/mit/lua/usr.bin/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
SUBDIR+= lua luac
.include <bsd.subdir.mk>

17
external/mit/lua/usr.bin/lua/Makefile vendored Normal file
View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:02 mbalmer Exp $
PROG= lua
SRCS= lua.c
BINDIR= /usr/bin
CPPFLAGS+= -DLUA_USE_READLINE
LDADD+= ${LIBLUA} -lm -ledit
DPADD+= ${LIBLUA}
.include <bsd.own.mk>
.PATH: ${NETBSDSRCDIR}/external/mit/lua/dist/src \
${NETBSDSRCDIR}/external/mit/lua/dist/doc
.include <bsd.prog.mk>

15
external/mit/lua/usr.bin/luac/Makefile vendored Normal file
View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:02 mbalmer Exp $
PROG= luac
SRCS= luac.c print.c
BINDIR= /usr/bin
DPADD+= ${LIBLUA}
LDADD+= ${LIBLUA} -lm
.include <bsd.own.mk>
.PATH: ${NETBSDSRCDIR}/external/mit/lua/dist/src \
${NETBSDSRCDIR}/external/mit/lua/dist/doc
.include <bsd.prog.mk>