1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
9 ## Boston MA 02110-1301, USA; either version 2 of the License, or
10 ## (at your option) any later version; incorporated herein by reference.
12 ## -----------------------------------------------------------------------
19 MAKEDIR = $(topdir)/mk
20 include $(MAKEDIR)/com32.mk
24 # Temporarily allow warnings not being treated as errors
25 #GCCWARN += -Wno-error
35 LIBLUA_OBJS := lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o
36 LIBLUA_OBJS += lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
37 LIBLUA_OBJS += lstate.o lstring.o ltable.o ltm.o lvm.o lzio.o lundump.o
38 LIBLUA_OBJS += syslinux.o
40 LIBLUA_OBJS += lauxlib.o lbaselib.o ldblib.o ltablib.o
41 LIBLUA_OBJS += lstrlib.o loadlib.o linit.o
42 LIBLUA_OBJS += liolib.o
50 all: $(MODULES) $(TESTFILES)
52 $(LIBLUA) : $(LIBLUA_OBJS)
57 lua.elf : $(OBJS) $(LIBLUA) $(C_LIBS)
58 $(LD) $(LDFLAGS) -o $@ $^
61 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
67 rm -f *.lss *.c32 *.com