.SUFFIXES: .cc .o .hh .yy .ll .dep # compile rules: # $(outdir)/%.o: %.cc $(DO_CXX_COMPILE) $(outdir)/%.o: $(outdir)/%.cc $(DO_CXX_COMPILE) $(outdir)/%.cc: %.yy $(BISON) $< mv $<.tab.c $@ $(outdir)/%.hh: %.yy $(BISON) -d $< mv $<.tab.h $@ rm $<.tab.c # if this happens in the wrong order it triggers recompile of the .cc file $(outdir)/%.cc: %.ll $(FLEX) -Cfe -p -p -t $< > $@