summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lua/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lua/src/Makefile')
-rw-r--r--contrib/syslinux-4.02/com32/lua/src/Makefile71
1 files changed, 71 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lua/src/Makefile b/contrib/syslinux-4.02/com32/lua/src/Makefile
new file mode 100644
index 0000000..d31c9bd
--- /dev/null
+++ b/contrib/syslinux-4.02/com32/lua/src/Makefile
@@ -0,0 +1,71 @@
+## -----------------------------------------------------------------------
+##
+## Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
+## Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+## Boston MA 02110-1301, USA; either version 2 of the License, or
+## (at your option) any later version; incorporated herein by reference.
+##
+## -----------------------------------------------------------------------
+
+##
+## Lua Makefile
+##
+
+topdir = ../../..
+include ../../MCONFIG
+
+LIBS = ../../lib/libcom32.a $(LIBGCC)
+LNXLIBS =
+
+# Temporarily allow warnings not being treated as errors
+GCCWARN += -Wno-error
+
+MODULES = lua.c32
+TESTFILES =
+
+OBJS = lua.o
+
+LIBLUA = liblua.a
+
+LIBLUA_OBJS := lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o
+LIBLUA_OBJS += lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
+LIBLUA_OBJS += lstate.o lstring.o ltable.o ltm.o lvm.o lzio.o lundump.o
+LIBLUA_OBJS += syslinux.o
+
+LIBLUA_OBJS += lauxlib.o lbaselib.o ldblib.o ltablib.o
+LIBLUA_OBJS += lstrlib.o loadlib.o linit.o
+LIBLUA_OBJS += liolib.o
+LIBLUA_OBJS += dmi.o
+
+LIBLUA_OBJS += pci.o
+LIBLUA_OBJS += vesa.o
+
+CFLAGS += -DLUA_ANSI
+
+all: $(MODULES) $(TESTFILES)
+
+$(LIBLUA) : $(LIBLUA_OBJS)
+ rm -f $@
+ $(AR) cq $@ $^
+ $(RANLIB) $@
+
+lua.elf : $(OBJS) $(LIBLUA) $(LIBS) $(C_LIBS)
+ $(LD) $(LDFLAGS) -o $@ $^
+
+tidy dist:
+ rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
+
+clean: tidy
+ rm -f *.lnx
+
+spotless: clean
+ rm -f *.lss *.c32 *.com
+ rm -f *~ \#*
+
+install:
+
+-include .*.d