summaryrefslogtreecommitdiff
path: root/stand/lua.mk
diff options
context:
space:
mode:
Diffstat (limited to 'stand/lua.mk')
-rw-r--r--stand/lua.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/stand/lua.mk b/stand/lua.mk
new file mode 100644
index 000000000000..8f5788d4d893
--- /dev/null
+++ b/stand/lua.mk
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+# Common flags to build lua related files
+
+.include "defs.mk"
+
+.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0
+CFLAGS+= -fPIC
+.endif
+
+CFLAGS+= -I${LUASRC} -I${LDRSRC} -I${LIBLUASRC}
+CFLAGS+= -DBOOT_LUA