xref: /freebsd-14.2/libexec/flua/Makefile (revision 506f3640)
1#! $FreeBSD$
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
12LIBADD=	m
13
14# Core functions
15SRCS=	lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
16	lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \
17	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.
22SRCS+=	lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c \
23	lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c
24
25# Entry point
26SRCS+=	lua.c
27
28# FreeBSD Extensions
29.PATH: ${.CURDIR}/modules
30SRCS+=	linit_flua.c
31SRCS+=	lfs.c lposix.c
32
33CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
34CFLAGS+=	-DLUA_PROGNAME="\"${PROG}\""
35
36.include <bsd.prog.mk>
37