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