[llvm-commits] CVS: llvm/test/Programs/SingleSource/Makefile.singlesrc
Chris Lattner
lattner at cs.uiuc.edu
Tue May 13 15:09:02 PDT 2003
Changes in directory llvm/test/Programs/SingleSource:
Makefile.singlesrc updated: 1.17 -> 1.18
---
Log message:
Add support for C++ tests
---
Diffs of the changes:
Index: llvm/test/Programs/SingleSource/Makefile.singlesrc
diff -u llvm/test/Programs/SingleSource/Makefile.singlesrc:1.17 llvm/test/Programs/SingleSource/Makefile.singlesrc:1.18
--- llvm/test/Programs/SingleSource/Makefile.singlesrc:1.17 Fri Feb 14 18:30:44 2003
+++ llvm/test/Programs/SingleSource/Makefile.singlesrc Tue May 13 15:06:56 2003
@@ -16,7 +16,7 @@
#
##===----------------------------------------------------------------------===##
-PROGRAMS_TO_TEST = $(Source:.c=)
+PROGRAMS_TO_TEST = $(basename $(Source))
include $(LEVEL)/test/Programs/Makefile.programs
.PRECIOUS: Output/%.linked.rll
@@ -32,3 +32,5 @@
# FIXME: LIBS should be specified, not hardcoded to -lm
Output/%.native: %.c Output/.dir
$(CC) $(CFLAGS) $< -lm -o $@
+Output/%.native: %.cpp Output/.dir
+ $(CXX) $(CXXFLAGS) $< -lm -o $@
More information about the llvm-commits
mailing list