mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 18:29:45 +00:00
Make gcc generate assembly files (%.ll) until Chris has a stable
version of his gccas. Plus another dumb bug fix (the bug, not the fix). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2fc372e0ca
commit
772d091e00
@ -1,3 +1,8 @@
|
||||
## -*-Makefile-*-
|
||||
##------------------------------------------------------------------------
|
||||
## Common rules for generating, linking, and compiling via LLVM.
|
||||
##------------------------------------------------------------------------
|
||||
|
||||
.PHONY: clean default
|
||||
|
||||
## Special targets to build a program from multiple source files
|
||||
@ -20,7 +25,7 @@ LLINK = $(TOOLS)/link
|
||||
LLCFLAGS =
|
||||
|
||||
LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
|
||||
LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall
|
||||
LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall
|
||||
|
||||
LLCLIB = $(LEVEL)/test/runtime.o
|
||||
LIBS = $(LLCLIB) $(LOCAL_LIBS)
|
||||
@ -58,7 +63,8 @@ clean :
|
||||
$(LLC) -f -trace $(LLCFLAGS) $<
|
||||
|
||||
%.o: %.c
|
||||
$(LCC) $(LCFLAGS) -c $<
|
||||
$(LCC) $(LCFLAGS) -S -o $*.ll $<
|
||||
$(LAS) -o $@ $*.ll
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
@ -1,3 +1,8 @@
|
||||
## -*-Makefile-*-
|
||||
##------------------------------------------------------------------------
|
||||
## Common rules for generating, linking, and compiling via LLVM.
|
||||
##------------------------------------------------------------------------
|
||||
|
||||
.PHONY: clean default
|
||||
|
||||
## Special targets to build a program from multiple source files
|
||||
@ -20,7 +25,7 @@ LLINK = $(TOOLS)/link
|
||||
LLCFLAGS =
|
||||
|
||||
LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
|
||||
LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall
|
||||
LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall
|
||||
|
||||
LLCLIB = $(LEVEL)/test/runtime.o
|
||||
LIBS = $(LLCLIB) $(LOCAL_LIBS)
|
||||
@ -58,7 +63,8 @@ clean :
|
||||
$(LLC) -f -trace $(LLCFLAGS) $<
|
||||
|
||||
%.o: %.c
|
||||
$(LCC) $(LCFLAGS) -c $<
|
||||
$(LCC) $(LCFLAGS) -S -o $*.ll $<
|
||||
$(LAS) -o $@ $*.ll
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
Loading…
Reference in New Issue
Block a user