dmi: check both the AC and ID flags at the same time
[syslinux.git] / com32 / lua / src / Makefile
blobc8a141f55ff5746cf29da465d3ceedd844e70d59
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.
12 ## -----------------------------------------------------------------------
15 ## Lua Makefile
18 VPATH = $(SRC)
19 include $(MAKEDIR)/elf.mk
21 LNXLIBS =
23 # Temporarily allow warnings not being treated as errors
24 #GCCWARN += -Wno-error
26 CFLAGS += -DSYSLINUX
27 MODULES = lua.c32
28 MODULES += cpu.c32
29 MODULES += dhcp.c32
30 MODULES += dmi.c32
31 MODULES += lfs.c32
32 MODULES += pci.c32
33 MODULES += syslinux.c32
34 MODULES += vesa.c32
35 MODULES += cmenu.c32
36 TESTFILES =
38 OBJS = lua.o
40 LIBLUA = liblua.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
49 CFLAGS += -DLUA_ANSI
51 all: $(MODULES) $(TESTFILES)
53 liblua.elf : $(LIBLUA_OBJS)
54 $(LD) $(LDFLAGS) -shared -soname $(patsubst %.elf,%.c32,$(@F)) \
55 -o $@ $^
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
63 tidy dist:
64 rm -f *.o *.lo *.lst *.elf .*.d *.tmp
66 clean: tidy
67 rm -f *.lnx
69 spotless: clean
70 rm -f *.lss *.c32 *.com
71 rm -f *~ \#*
73 install:
75 -include .*.d