mirror of
https://github.com/opnsense/src.git
synced 2026-06-23 07:30:15 -04:00
Flua is a minimal Lua interpreter integrated into the FreeBSD base system. It is intended for internal use and is not designed for general-purpose scripting or use by third-party applications, and was originally intentionally undocumented. There have been questions about its purpose, and questions about the available functionality from internal users, so provide a minimal man page including these details. Reviewed by: kevans, Isaac Freund <ifreund@freebsdfoundation.org> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49835
38 lines
758 B
Makefile
38 lines
758 B
Makefile
.include <src.lua.mk>
|
|
|
|
SUBDIR+= libfreebsd
|
|
SUBDIR+= libhash
|
|
SUBDIR+= libjail
|
|
SUBDIR+= libucl
|
|
|
|
LUASRC?= ${SRCTOP}/contrib/lua/src
|
|
.PATH: ${LUASRC}
|
|
|
|
PROG= flua
|
|
WARNS?= 3
|
|
|
|
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 lfbsd.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
|
|
CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
|
|
|
|
# readline bits; these aren't needed if we're building a bootstrap flua, as we
|
|
# don't expect that one to see any REPL usage.
|
|
.if !defined(BOOTSTRAPPING)
|
|
CFLAGS+= -DLUA_USE_READLINE
|
|
CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
|
|
LIBADD+= edit
|
|
LDFLAGS+= -Wl,-E
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|