aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-11-10 15:56:06 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-11-10 15:56:06 -0200
commit3bb6443131da2285b2311f258dfe37a3dcd38a5f (patch)
tree215681d23447156c770609700370411db312de46
parentf57afd6e32f3019ff11c8d0c284e78fa09790ca2 (diff)
downloadlua-3bb6443131da2285b2311f258dfe37a3dcd38a5f.tar.gz
lua-3bb6443131da2285b2311f258dfe37a3dcd38a5f.tar.bz2
lua-3bb6443131da2285b2311f258dfe37a3dcd38a5f.zip
changes to improve portability
-rw-r--r--makefile44
1 files changed, 19 insertions, 25 deletions
diff --git a/makefile b/makefile
index 93e484ab..b1744d3d 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
1# $Id: makefile,v 1.14 1995/10/17 14:12:45 roberto Exp $ 1# $Id: makefile,v 1.15 1995/10/17 18:16:58 roberto Exp roberto $
2 2
3#configuration 3#configuration
4 4
@@ -15,31 +15,28 @@ AR = ar
15ARFLAGS = rvl 15ARFLAGS = rvl
16 16
17# Aplication modules 17# Aplication modules
18LUAMOD = \ 18LUAOBJS = \
19 parser \ 19 parser.o \
20 lex \ 20 lex.o \
21 opcode \ 21 opcode.o \
22 hash \ 22 hash.o \
23 table \ 23 table.o \
24 inout \ 24 inout.o \
25 tree \ 25 tree.o \
26 fallback\ 26 fallback.o \
27 mem \ 27 mem.o \
28 func 28 func.o
29 29
30LIBMOD = \ 30LIBOBJS = \
31 iolib \ 31 iolib.o \
32 strlib \ 32 mathlib.o \
33 mathlib 33 strlib.o
34 34
35LUAOBJS = $(LUAMOD:%=%.o)
36
37LIBOBJS = $(LIBMOD:%=%.o)
38 35
39lua : lua.o lua.a lualib.a 36lua : lua.o lua.a lualib.a
40 $(CC) $(CFLAGS) -o $@ lua.o lua.a lualib.a -lm 37 $(CC) $(CFLAGS) -o $@ lua.o lua.a lualib.a -lm
41 38
42lua.a : parser.c $(LUAOBJS) 39lua.a : parser.o $(LUAOBJS)
43 $(AR) $(ARFLAGS) $@ $? 40 $(AR) $(ARFLAGS) $@ $?
44 ranlib lua.a 41 ranlib lua.a
45 42
@@ -50,9 +47,6 @@ lualib.a : $(LIBOBJS)
50liblua.so.1.0 : lua.o 47liblua.so.1.0 : lua.o
51 ld -o liblua.so.1.0 $(LUAOBJS) 48 ld -o liblua.so.1.0 $(LUAOBJS)
52 49
53%.o : %.c
54 $(CC) $(CFLAGS) -c -o $@ $<
55
56 50
57parser.c : lua.stx 51parser.c : lua.stx
58 yacc++ -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h 52 yacc++ -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h