Make the olden benchmarks compile again

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-11-05 18:25:37 +00:00
parent c352d2c530
commit 8448fb5b24
2 changed files with 18 additions and 12 deletions

View File

@ -8,11 +8,15 @@
## Special targets to build a program from multiple source files ## Special targets to build a program from multiple source files
## ##
ifdef PROG ifdef PROG
default: $(PROG)
.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
$(PROG).bc: $(OBJS) default: $(PROG).clean.bc $(PROG).native
$(LLINK) -f $(OBJS) -o $@ #.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 endif
TOOLS = $(LEVEL)/tools/Debug TOOLS = $(LEVEL)/tools/Debug
@ -63,8 +67,7 @@ clean :
$(LLC) -f -trace $(LLCFLAGS) $< $(LLC) -f -trace $(LLCFLAGS) $<
%.o: %.c %.o: %.c
$(LCC) $(LCFLAGS) -S -o $*.ll $< $(LCC) $(LCFLAGS) -c -o $@ $<
$(LAS) -o $@ $*.ll
%.bc: %.ll %.bc: %.ll
$(LAS) -f $< $(LAS) -f $<

View File

@ -8,11 +8,15 @@
## Special targets to build a program from multiple source files ## Special targets to build a program from multiple source files
## ##
ifdef PROG ifdef PROG
default: $(PROG)
.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
$(PROG).bc: $(OBJS) default: $(PROG).clean.bc $(PROG).native
$(LLINK) -f $(OBJS) -o $@ #.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 endif
TOOLS = $(LEVEL)/tools/Debug TOOLS = $(LEVEL)/tools/Debug
@ -63,8 +67,7 @@ clean :
$(LLC) -f -trace $(LLCFLAGS) $< $(LLC) -f -trace $(LLCFLAGS) $<
%.o: %.c %.o: %.c
$(LCC) $(LCFLAGS) -S -o $*.ll $< $(LCC) $(LCFLAGS) -c -o $@ $<
$(LAS) -o $@ $*.ll
%.bc: %.ll %.bc: %.ll
$(LAS) -f $< $(LAS) -f $<