Make the olden benchmarks compile again

llvm-svn: 1139
This commit is contained in:
Chris Lattner 2001-11-05 18:25:37 +00:00
parent c3993d28ca
commit 138f1e2a4b
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
##
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 $<

View File

@ -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 $<