CC=xlC CFLAGS=-O2 -Igdbm # CFLAGS=-g -Igdbm -DYYDEBUG=1 LEX=flex YACC=bison LIBS= -Lgdbm -lgdbm INDEXOBJS=parse.o indexmain.o lexer.o indextext.o database.o SEARCHOBJS=searchmain.o database.o .c.o: ${CC} ${CFLAGS} -c $*.c .C.o: ${CCC} ${CCFLAGS} -c $*.C all: htmlindex htmlsearch htmlindex: ${INDEXOBJS} ${CC} ${LIBS} ${INDEXOBJS} -o htmlindex htmlsearch: ${SEARCHOBJS} ${CC} ${LIBS} ${SEARCHOBJS} -o htmlsearch lexer.o: parse.h lexer.l parse.o ${LEX} -8 lexer.l ${CC} ${CFLAGS} -c lex.yy.c mv lex.yy.o lexer.o parse.o: parse.h parse.y ${YACC} --verbose parse.y ${YACC} -d parse.y ${CC} ${CFLAGS} -c parse.tab.c mv parse.tab.o parse.o clean: rm -f *.o lex.yy.* *.tab.* main htmlindex htmlsearch *.output core *.db