mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +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
|
||||
##
|
||||
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