aboutsummaryrefslogtreecommitdiff
path: root/lib/liblua/Makefile
blob: 40d9c5c924b0e1ebd37a5bb242a1b4c146db2caa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! $FreeBSD$

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 lbitlib.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}\""

.include <bsd.lib.mk>