1506f3640SKyle Evans 2506f3640SKyle Evans.include <src.lua.mk> 3506f3640SKyle Evans 4506f3640SKyle EvansLUASRC?= ${SRCTOP}/contrib/lua/src 5506f3640SKyle Evans.PATH: ${LUASRC} 6506f3640SKyle Evans 7506f3640SKyle EvansPROG= flua 8506f3640SKyle EvansWARNS?= 2 9506f3640SKyle EvansMAN= # No manpage; this is internal. 10506f3640SKyle Evans 11061f7e2fSKyle EvansCWARNFLAGS.gcc+= -Wno-format-nonliteral 12061f7e2fSKyle Evans 13564b9ff2SBrooks DavisLIBADD= lua 14506f3640SKyle Evans 15506f3640SKyle Evans# Entry point 16506f3640SKyle EvansSRCS+= lua.c 17506f3640SKyle Evans 18506f3640SKyle Evans# FreeBSD Extensions 19506f3640SKyle Evans.PATH: ${.CURDIR}/modules 20506f3640SKyle EvansSRCS+= linit_flua.c 21*1f31e00eSBaptiste DaroussinSRCS+= lfs.c lposix.c lfbsd.c 22506f3640SKyle Evans 23564b9ff2SBrooks DavisCFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC} 24506f3640SKyle EvansCFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" 25506f3640SKyle Evans 2628d832f9SKyle Evans# readline bits; these aren't needed if we're building a bootstrap flua, as we 2728d832f9SKyle Evans# don't expect that one to see any REPL usage. 2828d832f9SKyle Evans.if !defined(BOOTSTRAPPING) 29b4a19ee2SKyle EvansCFLAGS+= -DLUA_USE_READLINE 30b4a19ee2SKyle EvansCFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit 31b4a19ee2SKyle EvansLIBADD+= edit 32c2a2b4f3SKyle EvansLDFLAGS+= -Wl,-E 3328d832f9SKyle Evans.endif 34b4a19ee2SKyle Evans 3594a82666SRyan MoellerUCLSRC?= ${SRCTOP}/contrib/libucl 3694a82666SRyan Moeller.PATH: ${UCLSRC}/lua 3794a82666SRyan MoellerSRCS+= lua_ucl.c 3894a82666SRyan MoellerCFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash 3994a82666SRyan MoellerLIBADD+= ucl 4094a82666SRyan Moeller 41506f3640SKyle Evans.include <bsd.prog.mk> 42