rename set_using_visited to set_using_irn_visited, some cosmetics, remove obsolete...
[libfirm] / ir / be / test / Makefile
index dc4ee07..92323a4 100644 (file)
@@ -43,14 +43,25 @@ gcc/%.exe: %.c
        $(GCC) $(GCC_CFLAGS) $*.c -o $@
 
 firm/%.s: %.c
-       @test -z firm || mkdir -p firm
+       @mkdir -p firm
        @test -z $(RESDIR) || mkdir -p $(RESDIR)
        cd firm ; $(EDG) $(EDG_CFLAGS) ../$*.c || echo "$*.c" >> ../$(RESDIR)/compile_failed.txt
        mv $*.s firm
 
-firm/%.exe: firm/%.s
-       @test -z $(RESDIR) || mkdir -p $(RESDIR)
-       $(GCC) $(ASM_FLAGS) firm/$*.s -o $@ || echo "$*.c" >> $(RESDIR)/link_failed.txt
+firm/%.exe: %.c
+       @mkdir -p firm
+       @mkdir -p $(RESDIR)
+       $(EDG) $(EDG_CFLAGS) $*.c -o $@ || echo "$*.c" >> $(RESDIR)/link_failed.txt
+
+icc/%.s: %.c
+       @test -z icc || mkdir -p icc
+       $(ICC) $(ICC_CFLAGS) -S $*.c -o $@
+
+.PRECIOUS: icc/%.s
+
+icc/%.exe: icc/%.s
+       @test -z icc || mkdir -p icc
+       $(ICC) $(ICC_CFLAGS) $*.c -o $@
 
 clean:
        rm -f gcc/*