mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
e9ac41698b
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
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 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}\""
|
|
|
|
.if defined(BOOTSTRAPPING)
|
|
CFLAGS+= -DLUA_PATH_DEFAULT="\"/nonexistent/?.lua\""
|
|
CFLAGS+= -DLUA_CPATH_DEFAULT="\"/nonexistent/?.so\""
|
|
# We don't support dynamic libs on bootstrap builds.
|
|
CFLAGS+= -DBOOTSTRAPPING
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|