1506f3640SKyle Evans.include <src.lua.mk> 2506f3640SKyle Evans 3506f3640SKyle EvansLUASRC?= ${SRCTOP}/contrib/lua/src 4506f3640SKyle Evans.PATH: ${LUASRC} 5506f3640SKyle Evans 6506f3640SKyle EvansPROG= flua 7*bb2d016aSBaptiste DaroussinWARNS?= 3 8506f3640SKyle EvansMAN= # No manpage; this is internal. 9506f3640SKyle Evans 10061f7e2fSKyle EvansCWARNFLAGS.gcc+= -Wno-format-nonliteral 11061f7e2fSKyle Evans 12564b9ff2SBrooks DavisLIBADD= lua 13506f3640SKyle Evans 14506f3640SKyle Evans# Entry point 15506f3640SKyle EvansSRCS+= lua.c 16506f3640SKyle Evans 17506f3640SKyle Evans# FreeBSD Extensions 18506f3640SKyle Evans.PATH: ${.CURDIR}/modules 19506f3640SKyle EvansSRCS+= linit_flua.c 201f31e00eSBaptiste DaroussinSRCS+= lfs.c lposix.c lfbsd.c 21506f3640SKyle Evans 22564b9ff2SBrooks DavisCFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC} 23506f3640SKyle EvansCFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" 24506f3640SKyle Evans 2528d832f9SKyle Evans# readline bits; these aren't needed if we're building a bootstrap flua, as we 2628d832f9SKyle Evans# don't expect that one to see any REPL usage. 2728d832f9SKyle Evans.if !defined(BOOTSTRAPPING) 28b4a19ee2SKyle EvansCFLAGS+= -DLUA_USE_READLINE 29b4a19ee2SKyle EvansCFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit 30b4a19ee2SKyle EvansLIBADD+= edit 31c2a2b4f3SKyle EvansLDFLAGS+= -Wl,-E 3228d832f9SKyle Evans.endif 33b4a19ee2SKyle Evans 34506f3640SKyle Evans.include <bsd.prog.mk> 35