564b9ff2a7
The new liblua will be used in a forthcoming import of kyua. Reviewed by: kevans Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24090
28 lines
448 B
Makefile
28 lines
448 B
Makefile
#! $FreeBSD$
|
|
|
|
.include <src.lua.mk>
|
|
|
|
LUASRC?= ${SRCTOP}/contrib/lua/src
|
|
.PATH: ${LUASRC}
|
|
|
|
PROG= flua
|
|
WARNS?= 2
|
|
MAN= # No manpage; this is internal.
|
|
|
|
CWARNFLAGS.gcc+= -Wno-format-nonliteral
|
|
|
|
LIBADD= lua
|
|
|
|
# Entry point
|
|
SRCS+= lua.c
|
|
|
|
# FreeBSD Extensions
|
|
.PATH: ${.CURDIR}/modules
|
|
SRCS+= linit_flua.c
|
|
SRCS+= lfs.c lposix.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
|
|
CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
|
|
|
|
.include <bsd.prog.mk>
|