Lua build infrastructure
This commit is contained in:
parent
ee59b191f4
commit
97213731c9
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.3 2010/10/31 11:26:01 mbalmer Exp $
|
||||
|
||||
SUBDIR+= usr.bin
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
|
||||
|
||||
SUBDIR+= liblua
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
# $NetBSD: shlib_version,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
|
||||
major=1
|
||||
minor=0
|
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.1 2010/10/31 11:26:01 mbalmer Exp $
|
||||
|
||||
SUBDIR+= lua luac
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue