Don't forget to make the clean version.
authorChris Lattner <sabre@nondot.org>
Tue, 6 Nov 2001 20:23:50 +0000 (20:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Nov 2001 20:23:50 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1157 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.target
test/Makefile.tests

index e95724c2f030552d886adbb70e08b67efa169f1f..5a77e2a8bde3adcf5c64543e79c0e7109d08281d 100644 (file)
@@ -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)
index e95724c2f030552d886adbb70e08b67efa169f1f..5a77e2a8bde3adcf5c64543e79c0e7109d08281d 100644 (file)
@@ -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)