mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Eliminate cleaning step for individual %.bc files created by our gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f87fc32e35
commit
19560c3fd3
@ -52,6 +52,7 @@ ifdef PROG
|
|||||||
$(PROG).linked.bc: $(BCOBJS)
|
$(PROG).linked.bc: $(BCOBJS)
|
||||||
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
|
$(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 $@
|
||||||
|
$(RM) $(PROG).tmp.bc
|
||||||
|
|
||||||
$(PROG).native: $(OBJS:.o=.c)
|
$(PROG).native: $(OBJS:.o=.c)
|
||||||
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
||||||
@ -81,9 +82,7 @@ clean :
|
|||||||
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
||||||
|
|
||||||
%.bc: %.c
|
%.bc: %.c
|
||||||
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc
|
$(LCC) $(LCFLAGS) -c $< -o $@
|
||||||
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
|
|
||||||
$(RM) $*.tmp.bc
|
|
||||||
|
|
||||||
%.bc: %.ll
|
%.bc: %.ll
|
||||||
$(LAS) -f $<
|
$(LAS) -f $<
|
||||||
|
@ -52,6 +52,7 @@ ifdef PROG
|
|||||||
$(PROG).linked.bc: $(BCOBJS)
|
$(PROG).linked.bc: $(BCOBJS)
|
||||||
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
|
$(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 $@
|
||||||
|
$(RM) $(PROG).tmp.bc
|
||||||
|
|
||||||
$(PROG).native: $(OBJS:.o=.c)
|
$(PROG).native: $(OBJS:.o=.c)
|
||||||
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
||||||
@ -81,9 +82,7 @@ clean :
|
|||||||
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
||||||
|
|
||||||
%.bc: %.c
|
%.bc: %.c
|
||||||
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc
|
$(LCC) $(LCFLAGS) -c $< -o $@
|
||||||
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
|
|
||||||
$(RM) $*.tmp.bc
|
|
||||||
|
|
||||||
%.bc: %.ll
|
%.bc: %.ll
|
||||||
$(LAS) -f $<
|
$(LAS) -f $<
|
||||||
|
Loading…
Reference in New Issue
Block a user