1506f3640SKyle Evans.include <src.lua.mk> 2506f3640SKyle Evans 3*7899f917SBaptiste DaroussinSUBDIR+= libfreebsd 4*7899f917SBaptiste DaroussinSUBDIR+= libhash 5*7899f917SBaptiste DaroussinSUBDIR+= libjail 6*7899f917SBaptiste DaroussinSUBDIR+= libucl 7*7899f917SBaptiste Daroussin 8506f3640SKyle EvansLUASRC?= ${SRCTOP}/contrib/lua/src 9506f3640SKyle Evans.PATH: ${LUASRC} 10506f3640SKyle Evans 11506f3640SKyle EvansPROG= flua 12bb2d016aSBaptiste DaroussinWARNS?= 3 13506f3640SKyle EvansMAN= # No manpage; this is internal. 14506f3640SKyle Evans 15061f7e2fSKyle EvansCWARNFLAGS.gcc+= -Wno-format-nonliteral 16061f7e2fSKyle Evans 17564b9ff2SBrooks DavisLIBADD= lua 18506f3640SKyle Evans 19506f3640SKyle Evans# Entry point 20506f3640SKyle EvansSRCS+= lua.c 21506f3640SKyle Evans 22506f3640SKyle Evans# FreeBSD Extensions 23506f3640SKyle Evans.PATH: ${.CURDIR}/modules 24506f3640SKyle EvansSRCS+= linit_flua.c 251f31e00eSBaptiste DaroussinSRCS+= lfs.c lposix.c lfbsd.c 26506f3640SKyle Evans 27564b9ff2SBrooks DavisCFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC} 28506f3640SKyle EvansCFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" 29506f3640SKyle Evans 3028d832f9SKyle Evans# readline bits; these aren't needed if we're building a bootstrap flua, as we 3128d832f9SKyle Evans# don't expect that one to see any REPL usage. 3228d832f9SKyle Evans.if !defined(BOOTSTRAPPING) 33b4a19ee2SKyle EvansCFLAGS+= -DLUA_USE_READLINE 34b4a19ee2SKyle EvansCFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit 35b4a19ee2SKyle EvansLIBADD+= edit 36c2a2b4f3SKyle EvansLDFLAGS+= -Wl,-E 3728d832f9SKyle Evans.endif 38b4a19ee2SKyle Evans 39506f3640SKyle Evans.include <bsd.prog.mk> 40