ver = 3
COPS = -DLEX

hoc$(ver): hoc$(ver).cpp.l hoc$(ver).cpp.y makefile
ifdef COPS
	lex hoc$(ver).cpp.l
endif
	yacc hoc$(ver).cpp.y
	g++ -o hoc$(ver) $(COPS) y.tab.c

clean:
	rm -f y.tab.c lex.yy.c hoc$(ver)
