Makefile revision 355345
1#! $FreeBSD: stable/11/libexec/flua/Makefile 355345 2019-12-03 18:25:16Z kevans $
2
3.include <src.lua.mk>
4
5LUASRC?=	${SRCTOP}/contrib/lua/src
6.PATH: ${LUASRC}
7
8PROG=	flua
9WARNS?=	2
10MAN=	# No manpage; this is internal.
11
12CWARNFLAGS.gcc+=	-Wno-format-nonliteral
13
14LIBADD=	m
15
16# Core functions
17SRCS=	lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
18	lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \
19	ltm.c lundump.c lvm.c lzio.c
20
21# Library functions; any change to these likely needs an accompanying change
22# in our custom linit_flua.c.  We use our custom linit.c to make it easier to
23# support bootstrap flua that may not have supporting local libraries.
24SRCS+=	lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c \
25	lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c
26
27# Entry point
28SRCS+=	lua.c
29
30# FreeBSD Extensions
31.PATH: ${.CURDIR}/modules
32SRCS+=	linit_flua.c
33SRCS+=	lfs.c lposix.c
34
35CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
36CFLAGS+=	-DLUA_PROGNAME="\"${PROG}\""
37
38.include <bsd.prog.mk>
39