Update syslinux to 4.05 to support mic-0.15
[external/syslinux.git] / com32 / lua / src / Makefile
1 ## -----------------------------------------------------------------------
2 ##
3 ##   Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
4 ##   Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
5 ##
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.
11 ##
12 ## -----------------------------------------------------------------------
13
14 ##
15 ## Lua Makefile
16 ##
17
18 topdir = ../../..
19 MAKEDIR = $(topdir)/mk
20 include $(MAKEDIR)/com32.mk
21
22 LNXLIBS    = 
23
24 # Temporarily allow warnings not being treated as errors
25 #GCCWARN          += -Wno-error
26
27 CFLAGS    += -DSYSLINUX
28 MODULES   = lua.c32
29 TESTFILES =
30
31 OBJS      = lua.o
32
33 LIBLUA    = liblua.a
34
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
39
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
43 LIBLUA_OBJS += dmi.o
44 LIBLUA_OBJS += cpu.o
45 LIBLUA_OBJS += pci.o
46 LIBLUA_OBJS += vesa.o
47
48 CFLAGS += -DLUA_ANSI
49
50 all: $(MODULES) $(TESTFILES)
51
52 $(LIBLUA) : $(LIBLUA_OBJS)
53         rm -f $@
54         $(AR) cq $@ $^
55         $(RANLIB) $@
56
57 lua.elf : $(OBJS) $(LIBLUA) $(C_LIBS)
58         $(LD) $(LDFLAGS) -o $@ $^
59
60 tidy dist:
61         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
62
63 clean: tidy
64         rm -f *.lnx
65
66 spotless: clean
67         rm -f *.lss *.c32 *.com
68         rm -f *~ \#*
69
70 install:
71
72 -include .*.d