1994-12-23 23:47:59 +03:00
|
|
|
# $Id: makefile,v 1.9 1994/11/23 20:15:04 roberto Exp roberto $
|
1993-12-17 21:59:10 +03:00
|
|
|
# Compilation parameters
|
|
|
|
CC = gcc
|
1994-11-23 23:15:04 +03:00
|
|
|
CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2
|
|
|
|
|
|
|
|
#CC = acc
|
|
|
|
#CFLAGS = -fast -I/usr/5include
|
1993-12-17 21:59:10 +03:00
|
|
|
|
|
|
|
AR = ar
|
|
|
|
ARFLAGS = rvl
|
|
|
|
|
|
|
|
# Aplication modules
|
|
|
|
LUAMOD = \
|
|
|
|
y.tab \
|
1993-12-23 00:21:06 +03:00
|
|
|
lex \
|
1993-12-17 21:59:10 +03:00
|
|
|
opcode \
|
|
|
|
hash \
|
|
|
|
table \
|
1994-07-20 01:35:36 +04:00
|
|
|
inout \
|
1994-11-23 23:15:04 +03:00
|
|
|
tree \
|
|
|
|
fallback\
|
|
|
|
mem
|
1993-12-17 21:59:10 +03:00
|
|
|
|
|
|
|
LIBMOD = \
|
|
|
|
iolib \
|
|
|
|
strlib \
|
|
|
|
mathlib
|
|
|
|
|
|
|
|
LUAOBJS = $(LUAMOD:%=%.o)
|
|
|
|
|
|
|
|
LIBOBJS = $(LIBMOD:%=%.o)
|
|
|
|
|
|
|
|
lua : lua.o lua.a lualib.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ lua.c lua.a lualib.a -lm
|
|
|
|
|
1993-12-23 00:21:06 +03:00
|
|
|
lua.a : y.tab.c $(LUAOBJS)
|
1993-12-17 21:59:10 +03:00
|
|
|
$(AR) $(ARFLAGS) $@ $?
|
|
|
|
ranlib lua.a
|
|
|
|
|
|
|
|
lualib.a : $(LIBOBJS)
|
|
|
|
$(AR) $(ARFLAGS) $@ $?
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
liblua.so.1.0 : lua.o
|
|
|
|
ld -o liblua.so.1.0 $(LUAOBJS)
|
|
|
|
|
|
|
|
%.o : %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
|
1993-12-23 00:21:06 +03:00
|
|
|
y.tab.c : lua.stx exscript
|
1993-12-17 21:59:10 +03:00
|
|
|
yacc -d lua.stx ; ex y.tab.c <exscript
|
|
|
|
|
1994-07-20 02:04:51 +04:00
|
|
|
clear :
|
|
|
|
rcsclean
|
|
|
|
rm -f *.o
|
|
|
|
rm -f y.tab.c y.tab.h
|
1994-12-23 23:47:59 +03:00
|
|
|
co lua.h lualib.h
|
1994-07-20 02:04:51 +04:00
|
|
|
|
1994-01-10 22:49:56 +03:00
|
|
|
% : RCS/%,v
|
1993-12-22 23:55:06 +03:00
|
|
|
co $@
|
1994-01-10 22:49:56 +03:00
|
|
|
|
1994-11-23 23:15:04 +03:00
|
|
|
|
1994-12-23 23:47:59 +03:00
|
|
|
fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h inout.h
|
|
|
|
hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h
|
|
|
|
inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h
|
1994-11-23 23:15:04 +03:00
|
|
|
iolib.o : iolib.c mem.h lua.h lualib.h
|
1994-12-23 23:47:59 +03:00
|
|
|
lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h y.tab.h ugly.h
|
1994-11-23 23:15:04 +03:00
|
|
|
lua.o : lua.c lua.h lualib.h
|
|
|
|
mathlib.o : mathlib.c lualib.h lua.h
|
|
|
|
mem.o : mem.c mem.h lua.h
|
1994-12-23 23:47:59 +03:00
|
|
|
opcode.o : opcode.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \
|
|
|
|
fallback.h
|
1994-11-23 23:15:04 +03:00
|
|
|
strlib.o : strlib.c mem.h lua.h lualib.h
|
1994-12-23 23:47:59 +03:00
|
|
|
table.o : table.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \
|
|
|
|
fallback.h
|
|
|
|
tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h
|
|
|
|
y.tab.o : y.tab.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h
|