diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2020-03-17 17:28:12 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2020-03-17 17:28:12 +0000 |
commit | 564b9ff2a7aa62f1094043b12de56ad75aa30394 (patch) | |
tree | 71e8940b893e458b9bfbeb48a8af2635b40f95c2 /lib/liblua/Makefile | |
parent | 5a2c0ab18b37f6d112a8e654fa770e5a7c69ee77 (diff) | |
download | src-564b9ff2a7aa62f1094043b12de56ad75aa30394.tar.gz src-564b9ff2a7aa62f1094043b12de56ad75aa30394.zip |
Add an internal liblua and use it in flua.
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
Notes
Notes:
svn path=/head/; revision=359045
Diffstat (limited to 'lib/liblua/Makefile')
-rw-r--r-- | lib/liblua/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/liblua/Makefile b/lib/liblua/Makefile new file mode 100644 index 000000000000..40d9c5c924b0 --- /dev/null +++ b/lib/liblua/Makefile @@ -0,0 +1,29 @@ +#! $FreeBSD$ + +LUASRC?= ${SRCTOP}/contrib/lua/src +.PATH: ${LUASRC} + +LIB= lua +INTERNALLIB= +WARNS?= 2 +MAN= # No manpage; this is internal. + +CWARNFLAGS.gcc+= -Wno-format-nonliteral + +LIBADD= m + +# Core functions +SRCS= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c linit.c \ + llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c \ + ltable.c ltm.c lundump.c lvm.c lzio.c + +# Library functions; any change to these likely needs an accompanying change +# in our custom linit_flua.c. We use our custom linit.c to make it easier to +# support bootstrap flua that may not have supporting local libraries. +SRCS+= lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c \ + lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c + +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC} +CFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" + +.include <bsd.lib.mk> |