CFLAGS_EVAL=-g

lexer.o: lexer.c ../debug.h
	gcc $(CFLAGS_EVAL) -c lexer.c
lexer_test: lexer.c
	gcc $(CFLAGS_EVAL) -o lexer_test lexer.c
eval.o: expression.y ../debug.h
	yacc expression.y
	gcc $(CFLAGS_EVAL) -c y.tab.c
	mv y.tab.o eval.o
test: test.c
	gcc $(CFLAGS_EVAL) -o test eval.o lexer.o test.c
clean: 
	rm -f *.o core lexer_test
