mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:40:38 +00:00
Overwrite files when linked
Remove native files when cleaned llvm-svn: 1289
This commit is contained in:
parent
71a0797f80
commit
26fd330950
@ -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 $<"
|
||||
|
@ -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 $<"
|
||||
|
Loading…
Reference in New Issue
Block a user