From: Chris Lattner Date: Tue, 13 Nov 2001 05:44:27 +0000 (+0000) Subject: Overwrite files when linked X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02b5d1386e3386fa6e35a2cbe294a4ce94bd0024;p=oota-llvm.git Overwrite files when linked Remove native files when cleaned git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1289 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Makefile.target b/test/Makefile.target index beac97847c5..37ebbbc4c34 100644 --- a/test/Makefile.target +++ b/test/Makefile.target @@ -51,7 +51,7 @@ ifdef PROG $(PROG).linked.bc: $(BCOBJS) $(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc - $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ + $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ -f $(RM) $(PROG).tmp.bc $(PROG).native: $(OBJS:.o=.c) @@ -68,7 +68,7 @@ runtime.o: runtime.c $(CC) -c $(CCFLAGS) $< clean : - $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) + $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) $(PROG).native %.mc: %.bc $(LLC) $(AS) @echo "Generating machine instructions for $<" diff --git a/test/Makefile.tests b/test/Makefile.tests index beac97847c5..37ebbbc4c34 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -51,7 +51,7 @@ ifdef PROG $(PROG).linked.bc: $(BCOBJS) $(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc - $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ + $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ -f $(RM) $(PROG).tmp.bc $(PROG).native: $(OBJS:.o=.c) @@ -68,7 +68,7 @@ runtime.o: runtime.c $(CC) -c $(CCFLAGS) $< clean : - $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) + $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) $(PROG).native %.mc: %.bc $(LLC) $(AS) @echo "Generating machine instructions for $<"