2 LUASRC?= ${SRCTOP}/contrib/lua/src
8 MAN= # No manpage; this is internal.
10 CWARNFLAGS.gcc+= -Wno-format-nonliteral
15 SRCS= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c linit.c \
16 llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c \
17 ltable.c ltm.c lundump.c lvm.c lzio.c
19 # Library functions; any change to these likely needs an accompanying change
20 # in our custom linit_flua.c. We use our custom linit.c to make it easier to
21 # support bootstrap flua that may not have supporting local libraries.
22 SRCS+= lauxlib.c lbaselib.c lcorolib.c ldblib.c liolib.c \
23 lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c
25 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
26 CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
28 .if defined(BOOTSTRAPPING)
29 CFLAGS+= -DLUA_PATH_DEFAULT="\"/nonexistent/?.lua\""
30 CFLAGS+= -DLUA_CPATH_DEFAULT="\"/nonexistent/?.so\""
31 # We don't support dynamic libs on bootstrap builds.
32 CFLAGS+= -DBOOTSTRAPPING