diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-05 00:35:56 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-05 00:35:56 +0000 |
commit | 772d091e0046b2bfff4887e0ebf35a2e0b82f4f9 (patch) | |
tree | dc3f3ee9c4e5ce3bae5b051d3f66bcdbefce8caf | |
parent | 2fc372e0cab3a6712c44cdfc4cb2837f7bf6cffb (diff) | |
download | external_llvm-772d091e0046b2bfff4887e0ebf35a2e0b82f4f9.zip external_llvm-772d091e0046b2bfff4887e0ebf35a2e0b82f4f9.tar.gz external_llvm-772d091e0046b2bfff4887e0ebf35a2e0b82f4f9.tar.bz2 |
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
-rw-r--r-- | test/Makefile.target | 10 | ||||
-rw-r--r-- | test/Makefile.tests | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/test/Makefile.target b/test/Makefile.target index c9f1e38..7e54ccc 100644 --- a/test/Makefile.target +++ b/test/Makefile.target @@ -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 $< diff --git a/test/Makefile.tests b/test/Makefile.tests index c9f1e38..7e54ccc 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -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 $< |