mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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:
parent
c352d2c530
commit
8448fb5b24
@ -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 $<
|
||||||
|
@ -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 $<
|
||||||
|
Loading…
Reference in New Issue
Block a user