summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile42
1 files changed, 24 insertions, 18 deletions
diff --git a/makefile b/makefile
index 37989f9a..cb0b523b 100644
--- a/makefile
+++ b/makefile
@@ -1,13 +1,15 @@
1# $Id: makefile,v 1.25 1996/05/06 14:38:40 roberto Exp $ 1# $Id: makefile,v 1.27 1996/08/28 20:45:48 roberto Exp roberto $
2 2
3#configuration 3#configuration
4 4
5# define (undefine) POPEN if your system (does not) support piped I/O 5# define (undefine) POPEN if your system (does not) support piped I/O
6# define (undefine) POSIX if your system is (not) POSIX compliant 6# define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant
7CONFIG = -DPOPEN -DPOSIX 7#define (undefine) NOSTRERROR if your system does NOT have function "strerror"
8# (although this is ANSI, SunOS does not comply; so, add "-DNOSTRERROR" on SunOS)
9CONFIG = -DPOPEN -D_POSIX_SOURCE
8# Compilation parameters 10# Compilation parameters
9CC = gcc 11CC = gcc
10CFLAGS = $(CONFIG) -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 12CFLAGS = $(CONFIG) -Wall -Wmissing-prototypes -Wshadow -ansi -O2 -pedantic
11 13
12#CC = acc 14#CC = acc
13#CFLAGS = -fast -I/usr/5include 15#CFLAGS = -fast -I/usr/5include
@@ -15,6 +17,7 @@ CFLAGS = $(CONFIG) -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2
15AR = ar 17AR = ar
16ARFLAGS = rvl 18ARFLAGS = rvl
17 19
20
18# Aplication modules 21# Aplication modules
19LUAOBJS = \ 22LUAOBJS = \
20 parser.o \ 23 parser.o \
@@ -35,28 +38,28 @@ LIBOBJS = \
35 strlib.o 38 strlib.o
36 39
37 40
38lua : lua.o lua.a lualib.a 41lua : lua.o liblua.a liblualib.a
39 $(CC) $(CFLAGS) -o $@ lua.o lua.a lualib.a -lm 42 $(CC) $(CFLAGS) -o $@ lua.o -L. -llua -llualib -lm
40 43
41lua.a : $(LUAOBJS) 44liblua.a : $(LUAOBJS)
42 $(AR) $(ARFLAGS) $@ $? 45 $(AR) $(ARFLAGS) $@ $?
43 ranlib lua.a 46 ranlib $@
44 47
45lualib.a : $(LIBOBJS) 48liblualib.a : $(LIBOBJS)
46 $(AR) $(ARFLAGS) $@ $? 49 $(AR) $(ARFLAGS) $@ $?
47 ranlib $@ 50 ranlib $@
48 51
49liblua.so.1.0 : lua.o 52liblua.so.1.0 : lua.o
50 ld -o liblua.so.1.0 $(LUAOBJS) 53 ld -o liblua.so.1.0 $(LUAOBJS)
51 54
52#y.tab.c y.tab.h : lua.stx 55y.tab.c y.tab.h : lua.stx
53# yacc++ -d lua.stx 56 yacc -d lua.stx
54 57
55#parser.c : y.tab.c 58parser.c : y.tab.c
56# sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > parser.c 59 sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > parser.c
57 60
58#parser.h : y.tab.h 61parser.h : y.tab.h
59# sed -e 's/yy/luaY_/g' y.tab.h > parser.h 62 sed -e 's/yy/luaY_/g' y.tab.h > parser.h
60 63
61clear : 64clear :
62 rcsclean 65 rcsclean
@@ -65,8 +68,11 @@ clear :
65 co lua.h lualib.h luadebug.h 68 co lua.h lualib.h luadebug.h
66 69
67 70
68#% : RCS/%,v 71%.h : RCS/%.h,v
69# co $@ 72 co $@
73
74%.c : RCS/%.c,v
75 co $@
70 76
71 77
72fallback.o : fallback.c mem.h fallback.h lua.h opcode.h types.h tree.h func.h \ 78fallback.o : fallback.c mem.h fallback.h lua.h opcode.h types.h tree.h func.h \
@@ -80,7 +86,7 @@ lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h lex.h inout.h \
80 luadebug.h parser.h 86 luadebug.h parser.h
81lua.o : lua.c lua.h lualib.h 87lua.o : lua.c lua.h lualib.h
82mathlib.o : mathlib.c lualib.h lua.h 88mathlib.o : mathlib.c lualib.h lua.h
83mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h 89mem.o : mem.c mem.h lua.h
84opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ 90opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \
85 inout.h table.h fallback.h undump.h 91 inout.h table.h fallback.h undump.h
86parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \ 92parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \