Imported from ../lua-3.0.tar.gz.
[lua.git] / src / Makefile
blob9fe13c834d02421fd8a933e219aab405423a74de
1 # makefile for lua distribution (main library)
3 LUA= ..
5 include $(LUA)/config
7 OBJS= auxlib.o\
8 fallback.o\
9 func.o\
10 hash.o\
11 inout.o\
12 lex.o\
13 luamem.o\
14 opcode.o\
15 parser.o\
16 table.o\
17 tree.o\
18 undump.o\
19 zio.o
21 SRCS= auxlib.c\
22 auxlib.h\
23 fallback.c\
24 fallback.h\
25 func.c\
26 func.h\
27 hash.c\
28 hash.h\
29 inout.c\
30 inout.h\
31 lex.c\
32 lex.h\
33 luamem.c\
34 luamem.h\
35 opcode.c\
36 opcode.h\
37 parser.c\
38 parser.h\
39 table.c\
40 table.h\
41 tree.c\
42 tree.h\
43 types.h\
44 undump.c\
45 undump.h\
46 zio.c\
47 zio.h\
48 lua.stx
50 SLIB= $(LIB)/liblua.a
52 all: $(SLIB)
54 $(SLIB): $(OBJS)
55 ar rcu $@ $(OBJS)
56 $(RANLIB) $@
58 clean:
59 rm -f $(OBJS) $(SLIB)
61 co:
62 co -f -M $(SRCS)
64 parser:
65 yacc -d lua.stx
66 rm -f parser.c parser.h
67 sed -e 's/yy/luaY_/g' y.tab.c > parser.c
68 sed -e 's/yy/luaY_/g' y.tab.h > parser.h
69 rm y.tab.c y.tab.h
71 klean: clean
72 rm -f $(SRCS)