Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git] / com32 / lua / src / Makefile
blobac7824a52a0130c593465d564462bcbb865c6e42
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 topdir = ../../..
19 include ../../MCONFIG
21 LIBS = ../../lib/libcom32.a $(LIBGCC)
22 LNXLIBS =
24 MODULES = lua.c32
25 TESTFILES =
27 OBJS = lua.o
29 LIBLUA = liblua.a
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
39 LIBLUA_OBJS += dmi.o
41 CFLAGS += -DLUA_ANSI
43 all: $(MODULES) $(TESTFILES)
45 $(LIBLUA) : $(LIBLUA_OBJS)
46 rm -f $@
47 $(AR) cq $@ $^
48 $(RANLIB) $@
50 lua.elf : $(OBJS) $(LIBLUA) $(LIBS) $(C_LIBS)
51 $(LD) $(LDFLAGS) -o $@ $^
53 tidy dist:
54 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
56 clean: tidy
57 rm -f *.lnx
59 spotless: clean
60 rm -f *.lss *.c32 *.com
61 rm -f *~ \#*
63 install:
65 -include .*.d