]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/liblua/Makefile
Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde
[FreeBSD/FreeBSD.git] / lib / liblua / Makefile
1
2 LUASRC?=        ${SRCTOP}/contrib/lua/src
3 .PATH: ${LUASRC}
4
5 LIB=    lua
6 INTERNALLIB=
7 WARNS?= 2
8 MAN=    # No manpage; this is internal.
9
10 CWARNFLAGS.gcc+=        -Wno-format-nonliteral
11
12 LIBADD= m
13
14 # Core functions
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
18
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
24
25 CFLAGS+=        -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
26 CFLAGS+=        -DLUA_PROGNAME="\"${PROG}\""
27
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
33 .endif
34
35 .include <bsd.lib.mk>