From 054385a11aeb22f184d8619c14100577406c9a2c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Nov 2001 20:23:50 +0000 Subject: [PATCH] Don't forget to make the clean version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1157 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Makefile.target | 6 +++++- test/Makefile.tests | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/test/Makefile.target b/test/Makefile.target index e95724c2f03..5a77e2a8bde 100644 --- a/test/Makefile.target +++ b/test/Makefile.target @@ -52,8 +52,12 @@ ifdef PROG $(PROG).linked.bc: $(BCOBJS) $(LLINK) -f $(BCOBJS) -o $@ + $(PROG).clean.bc: $(PROG).linked.bc + $(LOPT) -cleangcc -raise -constprop -dce < $< > $@ + $(PROG).native: $(OBJS:.o=.c) gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ + endif ## Special target to force target-dependent library to be compiled @@ -90,7 +94,7 @@ clean : %.linked.bc: %.bc $(CP) $< $@ -%.s: %.linked.bc +%.s: %.clean.bc $(LLC) -f $(LLCFLAGS) $< -o $@ %: %.o $(LIBS) diff --git a/test/Makefile.tests b/test/Makefile.tests index e95724c2f03..5a77e2a8bde 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -52,8 +52,12 @@ ifdef PROG $(PROG).linked.bc: $(BCOBJS) $(LLINK) -f $(BCOBJS) -o $@ + $(PROG).clean.bc: $(PROG).linked.bc + $(LOPT) -cleangcc -raise -constprop -dce < $< > $@ + $(PROG).native: $(OBJS:.o=.c) gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ + endif ## Special target to force target-dependent library to be compiled @@ -90,7 +94,7 @@ clean : %.linked.bc: %.bc $(CP) $< $@ -%.s: %.linked.bc +%.s: %.clean.bc $(LLC) -f $(LLCFLAGS) $< -o $@ %: %.o $(LIBS) -- 2.34.1