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 ## -----------------------------------------------------------------------
21 LIBS
= ..
/..
/lib
/libcom32.a
$(LIBGCC
)
31 LIBLUA_OBJS
:= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o
32 LIBLUA_OBJS
+= lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
33 LIBLUA_OBJS
+= lstate.o lstring.o ltable.o ltm.o lvm.o lzio.o lundump.o
34 LIBLUA_OBJS
+= syslinux.o
36 LIBLUA_OBJS
+= lauxlib.o lbaselib.o ldblib.o ltablib.o
37 LIBLUA_OBJS
+= lstrlib.o loadlib.o linit.o
38 LIBLUA_OBJS
+= liolib.o
43 all: $(MODULES
) $(TESTFILES
)
45 $(LIBLUA
) : $(LIBLUA_OBJS
)
50 lua.elf
: $(OBJS
) $(LIBLUA
) $(LIBS
) $(C_LIBS
)
51 $(LD
) $(LDFLAGS
) -o
$@
$^
54 rm -f
*.o
*.lo
*.a
*.lst
*.elf .
*.d
*.tmp
60 rm -f
*.lss
*.c32
*.com