lua/makefile

54 lines
742 B
Makefile
Raw Normal View History

1994-07-19 14:35:36 -07:00
# $Id: makefile,v 1.5 1994/01/10 19:49:56 roberto Exp celes $
1993-12-17 10:59:10 -08:00
# Compilation parameters
CC = gcc
1994-07-19 14:35:36 -07:00
CFLAGS = -I/usr/5include -Wall -O2
1993-12-17 10:59:10 -08:00
AR = ar
ARFLAGS = rvl
# Aplication modules
LUAMOD = \
y.tab \
1993-12-22 13:21:06 -08:00
lex \
1993-12-17 10:59:10 -08:00
opcode \
hash \
table \
1994-07-19 14:35:36 -07:00
inout \
tree
1993-12-17 10:59:10 -08: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-22 13:21:06 -08:00
lua.a : y.tab.c $(LUAOBJS)
1993-12-17 10:59:10 -08:00
$(AR) $(ARFLAGS) $@ $?
ranlib lua.a
lualib.a : $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $?
ranlib $@
.KEEP_STATE:
liblua.so.1.0 : lua.o
ld -o liblua.so.1.0 $(LUAOBJS)
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
1993-12-22 13:21:06 -08:00
y.tab.c : lua.stx exscript
1993-12-17 10:59:10 -08:00
yacc -d lua.stx ; ex y.tab.c <exscript
% : RCS/%,v
co $@