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 include $(MAKEDIR
)/elf.mk
23 # Temporarily allow warnings not being treated as errors
24 #GCCWARN += -Wno-error
33 MODULES
+= syslinux.c32
42 LIBLUA_OBJS
:= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o
43 LIBLUA_OBJS
+= lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
44 LIBLUA_OBJS
+= lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
46 LIBLUA_OBJS
+= lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o
47 LIBLUA_OBJS
+= loslib.o lstrlib.o ltablib.o loadlib.o linit.o
51 all: $(MODULES
) $(TESTFILES
)
53 liblua.elf
: $(LIBLUA_OBJS
)
54 $(LD
) $(LDFLAGS
) -shared
-soname
$(patsubst %.elf
,%.c32
,$(@F
)) \
57 lua.elf
: $(OBJS
) $(LIBLUA
) $(C_LIBS
)
58 $(LD
) $(LDFLAGS
) -o
$@
$^
60 cmenu.o
: CFLAGS
+= -I
$(com32
)/cmenu
/libmenu
61 cmenu.elf
: $(objdir
)/com32
/cmenu
/libmenu
/libmenu.c32
64 rm -f
*.o
*.lo
*.lst
*.elf .
*.d
*.tmp
70 rm -f
*.lss
*.c32
*.com