summaryrefslogtreecommitdiff
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-github-3bb6443131da2285b2311f258dfe37a3dcd38a5f.tar.gz
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 @@
-# $Id: makefile,v 1.14 1995/10/17 14:12:45 roberto Exp $
+# $Id: makefile,v 1.15 1995/10/17 18:16:58 roberto Exp roberto $
#configuration
@@ -15,31 +15,28 @@ AR = ar
ARFLAGS = rvl
# Aplication modules
-LUAMOD = \
- parser \
- lex \
- opcode \
- hash \
- table \
- inout \
- tree \
- fallback\
- mem \
- func
-
-LIBMOD = \
- iolib \
- strlib \
- mathlib
-
-LUAOBJS = $(LUAMOD:%=%.o)
-
-LIBOBJS = $(LIBMOD:%=%.o)
+LUAOBJS = \
+ parser.o \
+ lex.o \
+ opcode.o \
+ hash.o \
+ table.o \
+ inout.o \
+ tree.o \
+ fallback.o \
+ mem.o \
+ func.o
+
+LIBOBJS = \
+ iolib.o \
+ mathlib.o \
+ strlib.o
+
lua : lua.o lua.a lualib.a
$(CC) $(CFLAGS) -o $@ lua.o lua.a lualib.a -lm
-lua.a : parser.c $(LUAOBJS)
+lua.a : parser.o $(LUAOBJS)
$(AR) $(ARFLAGS) $@ $?
ranlib lua.a
@@ -50,9 +47,6 @@ lualib.a : $(LIBOBJS)
liblua.so.1.0 : lua.o
ld -o liblua.so.1.0 $(LUAOBJS)
-%.o : %.c
- $(CC) $(CFLAGS) -c -o $@ $<
-
parser.c : lua.stx
yacc++ -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h