diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-06 20:44:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-06 20:44:15 +0000 |
commit | 54b7741dff59cd96647cee18e63df7689de28ca2 (patch) | |
tree | 6a3ef7803d8f1d6b4389229c3eaa83ac39c82ae8 /test/Makefile.tests | |
parent | 054385a11aeb22f184d8619c14100577406c9a2c (diff) | |
download | external_llvm-54b7741dff59cd96647cee18e63df7689de28ca2.zip external_llvm-54b7741dff59cd96647cee18e63df7689de28ca2.tar.gz external_llvm-54b7741dff59cd96647cee18e63df7689de28ca2.tar.bz2 |
Build .bc from .c better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r-- | test/Makefile.tests | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests index 5a77e2a..491ae53 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -41,7 +41,7 @@ ASFLAGS = -c $(CFLAGS) ## ifdef PROG - default: $(PROG) $(PROG).native + default: $(PROG).clean.bc $(PROG).native $(PROG) ifeq ($(strip $(OBJS)),) BCOBJS = $(PROG).bc @@ -53,7 +53,7 @@ ifdef PROG $(LLINK) -f $(BCOBJS) -o $@ $(PROG).clean.bc: $(PROG).linked.bc - $(LOPT) -cleangcc -raise -constprop -dce < $< > $@ + $(LOPT) -cleangcc -raise -constprop -dce -o $@ -f $< $(PROG).native: $(OBJS:.o=.c) gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ @@ -84,9 +84,7 @@ clean : ## $(LCC) $(LCFLAGS) -S $< -o $*.ll %.bc: %.c - $(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc - $(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@ - $(RM) $*.tmp.bc + $(LCC) $(LCFLAGS) -c $< -o $@ %.bc: %.ll $(LAS) -f $< |