]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - libexec/flua/Makefile
defaults: oomprotect sshd and local_unbound
[FreeBSD/FreeBSD.git] / libexec / flua / Makefile
1
2 .include <src.lua.mk>
3
4 LUASRC?=        ${SRCTOP}/contrib/lua/src
5 .PATH: ${LUASRC}
6
7 PROG=   flua
8 WARNS?= 2
9 MAN=    # No manpage; this is internal.
10
11 CWARNFLAGS.gcc+=        -Wno-format-nonliteral
12
13 LIBADD= lua
14
15 # Entry point
16 SRCS+=  lua.c
17
18 # FreeBSD Extensions
19 .PATH: ${.CURDIR}/modules
20 SRCS+=  linit_flua.c
21 SRCS+=  lfs.c lposix.c lfbsd.c
22
23 CFLAGS+=        -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
24 CFLAGS+=        -DLUA_PROGNAME="\"${PROG}\""
25
26 # readline bits; these aren't needed if we're building a bootstrap flua, as we
27 # don't expect that one to see any REPL usage.
28 .if !defined(BOOTSTRAPPING)
29 CFLAGS+=        -DLUA_USE_READLINE
30 CFLAGS+=        -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
31 LIBADD+=        edit
32 LDFLAGS+=       -Wl,-E
33 .endif
34
35 UCLSRC?=        ${SRCTOP}/contrib/libucl
36 .PATH: ${UCLSRC}/lua
37 SRCS+=  lua_ucl.c
38 CFLAGS+=        -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
39 LIBADD+=        ucl
40
41 .include <bsd.prog.mk>