# $Id: makefile,v 1.9 1994/11/23 20:15:04 roberto Exp roberto $ # Compilation parameters CC = gcc CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 #CC = acc #CFLAGS = -fast -I/usr/5include AR = ar ARFLAGS = rvl # Aplication modules LUAMOD = \ y.tab \ lex \ opcode \ hash \ table \ inout \ tree \ fallback\ mem 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 lua.a : y.tab.c $(LUAOBJS) $(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 $@ $< y.tab.c : lua.stx exscript yacc -d lua.stx ; ex y.tab.c