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