$(outdir)/%.lo: $(outdir)/%.cc
$(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
-$(outdir)/%.cc: %.yy
- $(BISON) $<
- @-mv -f $(*F).yy.tab.c $(*F).tab.cc # bison < 1.30
- mv $(*F).tab.cc $@
-
-$(outdir)/%.hh: %.yy
- $(BISON) -d $<
- @-mv -f $(*F).yy.tab.h $(*F).tab.hh # bison < 1.30
- mv $(*F).tab.hh $@
- rm -f $(*F).tab.c $(*F).tab.cc # if this happens in the wrong order it triggers recompile of the .cc file
+$(outdir)/%.cc $(outdir)/%.hh: %.yy
+ $(BISON) -d -o $(outdir)/$*.cc $<
$(outdir)/%.cc: %.ll
- $(FLEX) -Cfe -p -p -t $< > $@
+ $(FLEX) -Cfe -p -p -o$@ $<
+
+$(outdir)/%-rc.o: $(outdir)/%.rc
+ $(WINDRES) $(WINDRES_FLAGS) -o$@ $<