1*7cafeaa1SWarner Losh# $FreeBSD$ 2*7cafeaa1SWarner Losh 3*7cafeaa1SWarner Losh.include <bsd.init.mk> 4*7cafeaa1SWarner Losh 5*7cafeaa1SWarner Losh.PATH: ${LUASRC} 6*7cafeaa1SWarner Losh.PATH: ${LIBLUASRC} 7*7cafeaa1SWarner Losh 8*7cafeaa1SWarner LoshLIB= lua 9*7cafeaa1SWarner LoshINTERNALLIB= 10*7cafeaa1SWarner Losh 11*7cafeaa1SWarner Losh# Core Lua. 12*7cafeaa1SWarner LoshSRCS= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \ 13*7cafeaa1SWarner Losh lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \ 14*7cafeaa1SWarner Losh ltm.c lundump.c lvm.c lzio.c 15*7cafeaa1SWarner LoshSRCS+= lauxlib.c lbaselib.c lstrlib.c loadlib.c 16*7cafeaa1SWarner Losh 17*7cafeaa1SWarner Losh# These aren't yet included, but link now, omitting them saves 15k 18*7cafeaa1SWarner Losh#SRCS+= lcorolib.c ldblib.c lutf8lib.c 19*7cafeaa1SWarner Losh 20*7cafeaa1SWarner Losh# These aren't yet compatible with the boot environment, and some may never be 21*7cafeaa1SWarner Losh#SRCS+= lbitlib.c liolib.c lmathlib.c loslib.c ltablib.c 22*7cafeaa1SWarner Losh 23*7cafeaa1SWarner Losh# Our utilities. 24*7cafeaa1SWarner LoshSRCS+= lstd.c lutils.c 25*7cafeaa1SWarner Losh 26*7cafeaa1SWarner LoshWARNS= 3 27*7cafeaa1SWarner Losh 28*7cafeaa1SWarner LoshCFLAGS+= -DLUA_FLOAT_TYPE=LUA_FLOAT_INT64 29*7cafeaa1SWarner LoshCFLAGS+= -DLUA_PATH_DEFAULT=\"/boot/lua/\?.lua\" 30*7cafeaa1SWarner LoshCFLAGS+= -ffreestanding -nostdlib -DBOOT_LUA -DLUA_USE_POSIX 31*7cafeaa1SWarner LoshCFLAGS+= -fno-stack-protector -D__BSD_VISIBLE 32*7cafeaa1SWarner LoshCFLAGS+= -I${BOOTSRC}/include -I${LIBLUASRC} -I${LUASRC} -I${LDRSRC} 33*7cafeaa1SWarner Losh 34*7cafeaa1SWarner Losh.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 35*7cafeaa1SWarner LoshCFLAGS+= -fPIC 36*7cafeaa1SWarner Losh.endif 37*7cafeaa1SWarner Losh 38*7cafeaa1SWarner Losh.include <bsd.lib.mk> 39