1*564b9ff2SBrooks Davis#! $FreeBSD$ 2*564b9ff2SBrooks Davis 3*564b9ff2SBrooks DavisLUASRC?= ${SRCTOP}/contrib/lua/src 4*564b9ff2SBrooks Davis.PATH: ${LUASRC} 5*564b9ff2SBrooks Davis 6*564b9ff2SBrooks DavisLIB= lua 7*564b9ff2SBrooks DavisINTERNALLIB= 8*564b9ff2SBrooks DavisWARNS?= 2 9*564b9ff2SBrooks DavisMAN= # No manpage; this is internal. 10*564b9ff2SBrooks Davis 11*564b9ff2SBrooks DavisCWARNFLAGS.gcc+= -Wno-format-nonliteral 12*564b9ff2SBrooks Davis 13*564b9ff2SBrooks DavisLIBADD= m 14*564b9ff2SBrooks Davis 15*564b9ff2SBrooks Davis# Core functions 16*564b9ff2SBrooks DavisSRCS= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c linit.c \ 17*564b9ff2SBrooks Davis llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c \ 18*564b9ff2SBrooks Davis ltable.c ltm.c lundump.c lvm.c lzio.c 19*564b9ff2SBrooks Davis 20*564b9ff2SBrooks Davis# Library functions; any change to these likely needs an accompanying change 21*564b9ff2SBrooks Davis# in our custom linit_flua.c. We use our custom linit.c to make it easier to 22*564b9ff2SBrooks Davis# support bootstrap flua that may not have supporting local libraries. 23*564b9ff2SBrooks DavisSRCS+= lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c \ 24*564b9ff2SBrooks Davis lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c 25*564b9ff2SBrooks Davis 26*564b9ff2SBrooks DavisCFLAGS+= -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC} 27*564b9ff2SBrooks DavisCFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" 28*564b9ff2SBrooks Davis 29*564b9ff2SBrooks Davis.include <bsd.lib.mk> 30