[llvm-commits] CVS: llvm/test/Programs/MultiSource/Makefile.multisrc

Chris Lattner lattner at cs.uiuc.edu
Thu Jan 16 16:55:01 PST 2003


Changes in directory llvm/test/Programs/MultiSource:

Makefile.multisrc updated: 1.18 -> 1.19

---
Log message:

Simplify makefile with $*


---
Diffs of the changes:

Index: llvm/test/Programs/MultiSource/Makefile.multisrc
diff -u llvm/test/Programs/MultiSource/Makefile.multisrc:1.18 llvm/test/Programs/MultiSource/Makefile.multisrc:1.19
--- llvm/test/Programs/MultiSource/Makefile.multisrc:1.18	Thu Jan 16 16:44:55 2003
+++ llvm/test/Programs/MultiSource/Makefile.multisrc	Thu Jan 16 16:54:22 2003
@@ -1,5 +1,4 @@
-##-----------------------------------------------------------*-Makefile-*-
-#                   test/Programs/MultiSource/Makefile.multisrc
+##- test/Programs/MultiSource/Makefile.multisrc ---------------*- Makefile -*-##
 #
 # This makefile should be used by subdirectories that have multiple source files
 # to be linked together.  This contains all of the common makefile code required
@@ -9,7 +8,7 @@
 #
 # 1. LEVEL - Must be set as per normal semantics: The depth from the top of tree
 #
-##------------------------------------------------------------------------
+##----------------------------------------------------------------------------##
 
 LCCFLAGS := $(CFLAGS) $(CPPFLAGS)
 PROGRAMS_TO_TEST := $(PROG)
@@ -58,7 +57,7 @@
 # Link the program to the libraries it uses, then perform postlink
 # optimization...
 Output/%.llvm Output/%.llvm.bc: Output/%.linked.bc
-	$(LGCCLD) $(STATS) $< -lgcc -lc $(LIBS) -o $(<:.linked.bc=.llvm)
+	$(LGCCLD) $(STATS) $< -lgcc -lc $(LIBS) -o Output/$*.llvm
 
 Output/%.native: $(NObjects)
 	$(CC) -o $@ $(NObjects) $(LDFLAGS) $(CFLAGS)





More information about the llvm-commits mailing list