man9: Delete standalone bus_delayed_attach_children.9
[freebsd/src.git] / libexec / flua / Makefile
blob08ea9c002d61f5128d9cf675d4baf0cc201c0167
1 .include <src.lua.mk>
3 SUBDIR+= libfreebsd
4 SUBDIR+= libhash
5 SUBDIR+= libjail
6 SUBDIR+= libucl
8 LUASRC?= ${SRCTOP}/contrib/lua/src
9 .PATH: ${LUASRC}
11 PROG= flua
12 WARNS?= 3
13 MAN= # No manpage; this is internal.
15 CWARNFLAGS.gcc+= -Wno-format-nonliteral
17 LIBADD= lua
19 # Entry point
20 SRCS+= lua.c
22 # FreeBSD Extensions
23 .PATH: ${.CURDIR}/modules
24 SRCS+= linit_flua.c
25 SRCS+= lfs.c lposix.c lfbsd.c
27 CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
28 CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
30 # readline bits; these aren't needed if we're building a bootstrap flua, as we
31 # don't expect that one to see any REPL usage.
32 .if !defined(BOOTSTRAPPING)
33 CFLAGS+= -DLUA_USE_READLINE
34 CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
35 LIBADD+= edit
36 LDFLAGS+= -Wl,-E
37 .endif
39 .include <bsd.prog.mk>