Add support for C++ tests
authorChris Lattner <sabre@nondot.org>
Mon, 2 Jun 2003 05:49:11 +0000 (05:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Jun 2003 05:49:11 +0000 (05:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6540 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.tests

index fc93463c746ae5e8f945181812eaaf79f9b3edd3..8ae3465605cf39d75e49db8ff2451ddffed4694e 100644 (file)
@@ -87,6 +87,10 @@ Output/%.ll: $(SourceDir)%.c $(LCC1) Output/.dir $(INCLUDES)
 Output/%.ll: $(SourceDir)%.cpp $(LCC1XX) Output/.dir $(INCLUDES)
        $(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
 
+# Compile from X.cc to Output/X.ll
+Output/%.ll: $(SourceDir)%.cc $(LCC1XX) Output/.dir $(INCLUDES)
+       $(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
+
 # LLVM Assemble from Output/X.ll to Output/X.bc.  Output/X.ll must have come
 # from GCC output, so use GCCAS.
 #