Fix makefile to compile olden and main benchmarks
authorChris Lattner <sabre@nondot.org>
Mon, 5 Nov 2001 19:43:24 +0000 (19:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Nov 2001 19:43:24 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1142 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.target
test/Makefile.tests

index 13c508f045c84379a5e7632c8df26098478bef75..df3dc8c86daae1fdb334c6030d5dd111eddf6994 100644 (file)
@@ -5,19 +5,6 @@
 
 .PHONY: clean default
 
-## Special targets to build a program from multiple source files
-## 
-ifdef PROG
-
-default:    $(PROG).clean.bc $(PROG).native
-  #.SECONDARY: $(PROG).clean.bc        ## keep %.clean.bc from being deleted
-
-$(PROG).bc: $(OBJS)
-       $(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
-
-$(PROG).native: $(OBJS:.o=.c)
-       gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
-endif
 
 TOOLS    = $(LEVEL)/tools/Debug
 
@@ -46,6 +33,19 @@ CCFLAGS = $(CFLAGS)
 LDFLAGS = $(CFLAGS)
 ASFLAGS = -c $(CFLAGS)
 
+## Special targets to build a program from multiple source files
+## 
+ifdef PROG
+
+default:    $(PROG).clean.bc $(PROG).native
+  #.SECONDARY: $(PROG).clean.bc        ## keep %.clean.bc from being deleted
+
+$(PROG).bc: $(OBJS)
+       $(LLINK) -f $(OBJS) -o $@
+
+$(PROG).native: $(OBJS:.o=.c)
+       gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
+endif
 
 ## Special target to force target-dependent library to be compiled
 ## directly to native code.
index 13c508f045c84379a5e7632c8df26098478bef75..df3dc8c86daae1fdb334c6030d5dd111eddf6994 100644 (file)
@@ -5,19 +5,6 @@
 
 .PHONY: clean default
 
-## Special targets to build a program from multiple source files
-## 
-ifdef PROG
-
-default:    $(PROG).clean.bc $(PROG).native
-  #.SECONDARY: $(PROG).clean.bc        ## keep %.clean.bc from being deleted
-
-$(PROG).bc: $(OBJS)
-       $(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
-
-$(PROG).native: $(OBJS:.o=.c)
-       gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
-endif
 
 TOOLS    = $(LEVEL)/tools/Debug
 
@@ -46,6 +33,19 @@ CCFLAGS = $(CFLAGS)
 LDFLAGS = $(CFLAGS)
 ASFLAGS = -c $(CFLAGS)
 
+## Special targets to build a program from multiple source files
+## 
+ifdef PROG
+
+default:    $(PROG).clean.bc $(PROG).native
+  #.SECONDARY: $(PROG).clean.bc        ## keep %.clean.bc from being deleted
+
+$(PROG).bc: $(OBJS)
+       $(LLINK) -f $(OBJS) -o $@
+
+$(PROG).native: $(OBJS:.o=.c)
+       gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
+endif
 
 ## Special target to force target-dependent library to be compiled
 ## directly to native code.