]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/liblua/Makefile
mpsutil(8): Remove trailing whitespace
[FreeBSD/FreeBSD.git] / lib / liblua / Makefile
1 #! $FreeBSD$
2
3 LUASRC?=        ${SRCTOP}/contrib/lua/src
4 .PATH: ${LUASRC}
5
6 LIB=    lua
7 INTERNALLIB=
8 WARNS?= 2
9 MAN=    # No manpage; this is internal.
10
11 CWARNFLAGS.gcc+=        -Wno-format-nonliteral
12
13 LIBADD= m
14
15 # Core functions
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
19
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
25
26 CFLAGS+=        -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
27 CFLAGS+=        -DLUA_PROGNAME="\"${PROG}\""
28
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
34 .endif
35
36 .include <bsd.lib.mk>