17cafeaa1SWarner Losh# $FreeBSD$ 27cafeaa1SWarner Losh 37cafeaa1SWarner Losh.include <bsd.init.mk> 47cafeaa1SWarner Losh 57cafeaa1SWarner Losh.PATH: ${LUASRC} 67cafeaa1SWarner Losh.PATH: ${LIBLUASRC} 77cafeaa1SWarner Losh 8ff4cd9bfSWarner Losh.include "${BOOTSRC}/lua.mk" 9ff4cd9bfSWarner Losh 107cafeaa1SWarner LoshLIB= lua 117cafeaa1SWarner LoshINTERNALLIB= 127cafeaa1SWarner Losh 137cafeaa1SWarner Losh# Core Lua. 147cafeaa1SWarner LoshSRCS= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \ 157cafeaa1SWarner Losh lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \ 167cafeaa1SWarner Losh ltm.c lundump.c lvm.c lzio.c 177cafeaa1SWarner LoshSRCS+= lauxlib.c lbaselib.c lstrlib.c loadlib.c 187cafeaa1SWarner Losh 197cafeaa1SWarner Losh# These aren't yet included, but link now, omitting them saves 15k 207cafeaa1SWarner Losh#SRCS+= lcorolib.c ldblib.c lutf8lib.c 217cafeaa1SWarner Losh 227cafeaa1SWarner Losh# These aren't yet compatible with the boot environment, and some may never be 237cafeaa1SWarner Losh#SRCS+= lbitlib.c liolib.c lmathlib.c loslib.c ltablib.c 247cafeaa1SWarner Losh 257cafeaa1SWarner Losh# Our utilities. 260a0d522bSKyle EvansSRCS+= lerrno.c lpager.c lstd.c lutils.c 27506f3640SKyle Evans 28506f3640SKyle Evans.PATH: ${FLUASRC}/modules 29506f3640SKyle EvansSRCS+= lfs.c 307cafeaa1SWarner Losh 31ecebb3ccSKyle EvansWARNS?= 3 327cafeaa1SWarner Losh 33ee74c236SKyle EvansCFLAGS+= -DLUA_PATH=\"${LUAPATH}\" -DLUA_PATH_DEFAULT=\"${LUAPATH}/\?.lua\" 34ff4cd9bfSWarner LoshCFLAGS+= -ffreestanding -nostdlib -DLUA_USE_POSIX 357cafeaa1SWarner LoshCFLAGS+= -fno-stack-protector -D__BSD_VISIBLE 367cafeaa1SWarner LoshCFLAGS+= -I${BOOTSRC}/include -I${LIBLUASRC} -I${LUASRC} -I${LDRSRC} 377cafeaa1SWarner Losh 383630506bSToomas SoomeCFLAGS.lutils.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite 393630506bSToomas Soome 407cafeaa1SWarner Losh.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 417cafeaa1SWarner LoshCFLAGS+= -fPIC 427cafeaa1SWarner Losh.endif 43*eda28febSEric van Gyzen 44*eda28febSEric van Gyzen.include "${BOOTSRC}/veriexec.mk" 457cafeaa1SWarner Losh 467cafeaa1SWarner Losh.include <bsd.lib.mk> 47