CC=gcc CFLAGS=-g -Wall `glib-config --cflags` LIBS=`glib-config --libs` -lfl -lpopt YACC=bison -y LEX=flex DEST_DIR=/usr/local all: gob gob: main.o tree.o y.tab.o lex.yy.o ${CC} ${LDFLAGS} -o $@ $^ ${LIBS} y.tab.c y.tab.h: parse.y ${YACC} -d -t -v parse.y lex.yy.c: lexer.l ${LEX} lexer.l parse.o: y.tab.h tree.h lexer.o: y.tab.h tree.h tree.o: tree.h main.o: y.tab.h tree.h install: gob install -d ${DEST_DIR}/bin install -c gob ${DEST_DIR}/bin clean: rm -f gob *.o y.tab.[ch] lex.yy.c y.output core