# $Id: makefile,v 1.10 1994/12/23 20:47:59 roberto Exp celes $ # 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 = \ parser \ 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 : parser.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 $@ $< parser.c : lua.stx exscript yacc -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h ; ex parser.c