mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:40:38 +00:00
Make the olden benchmarks compile again
llvm-svn: 1139
This commit is contained in:
parent
c3993d28ca
commit
138f1e2a4b
@ -8,11 +8,15 @@
|
||||
## Special targets to build a program from multiple source files
|
||||
##
|
||||
ifdef PROG
|
||||
default: $(PROG)
|
||||
.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||
|
||||
$(PROG).bc: $(OBJS)
|
||||
$(LLINK) -f $(OBJS) -o $@
|
||||
default: $(PROG).clean.bc $(PROG).native
|
||||
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||
|
||||
$(PROG).bc: $(OBJS)
|
||||
$(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
|
||||
|
||||
$(PROG).native: $(OBJS:.o=.c)
|
||||
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
||||
endif
|
||||
|
||||
TOOLS = $(LEVEL)/tools/Debug
|
||||
@ -63,8 +67,7 @@ clean :
|
||||
$(LLC) -f -trace $(LLCFLAGS) $<
|
||||
|
||||
%.o: %.c
|
||||
$(LCC) $(LCFLAGS) -S -o $*.ll $<
|
||||
$(LAS) -o $@ $*.ll
|
||||
$(LCC) $(LCFLAGS) -c -o $@ $<
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
@ -8,11 +8,15 @@
|
||||
## Special targets to build a program from multiple source files
|
||||
##
|
||||
ifdef PROG
|
||||
default: $(PROG)
|
||||
.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||
|
||||
$(PROG).bc: $(OBJS)
|
||||
$(LLINK) -f $(OBJS) -o $@
|
||||
default: $(PROG).clean.bc $(PROG).native
|
||||
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||
|
||||
$(PROG).bc: $(OBJS)
|
||||
$(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
|
||||
|
||||
$(PROG).native: $(OBJS:.o=.c)
|
||||
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
||||
endif
|
||||
|
||||
TOOLS = $(LEVEL)/tools/Debug
|
||||
@ -63,8 +67,7 @@ clean :
|
||||
$(LLC) -f -trace $(LLCFLAGS) $<
|
||||
|
||||
%.o: %.c
|
||||
$(LCC) $(LCFLAGS) -S -o $*.ll $<
|
||||
$(LAS) -o $@ $*.ll
|
||||
$(LCC) $(LCFLAGS) -c -o $@ $<
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
Loading…
Reference in New Issue
Block a user