summaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-17 22:33:18 +0000
committerChris Lattner <sabre@nondot.org>2003-05-17 22:33:18 +0000
commit433f1d8c1d460ffb34d3ed5102afb18ad04efafd (patch)
treec519632015aa2e33f8ad9983c87f991b21ce31b7 /test/Makefile.tests
parentc436b37262fd1552fd591f50e14a7ff0067465e2 (diff)
downloadllvm-433f1d8c1d460ffb34d3ed5102afb18ad04efafd.tar.gz
llvm-433f1d8c1d460ffb34d3ed5102afb18ad04efafd.tar.bz2
llvm-433f1d8c1d460ffb34d3ed5102afb18ad04efafd.tar.xz
Add flexibility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index 6131279535..fc93463c74 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -80,12 +80,12 @@ clean::
$(RM) -rf Output/
# Compile from X.c to Output/X.ll
-Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
- $(LCC) $(LCCFLAGS) -S $< -o $@
+Output/%.ll: $(SourceDir)%.c $(LCC1) Output/.dir $(INCLUDES)
+ $(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@
# Compile from X.cpp to Output/X.ll
-Output/%.ll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
- $(LCXX) $(LCXXFLAGS) -S $< -o $@
+Output/%.ll: $(SourceDir)%.cpp $(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.
@@ -104,12 +104,12 @@ Output/%.bc: %.ll $(LAS) Output/.dir
#
Output/%.tll: %.c $(LCC1) Output/.dir $(INCLUDES)
@echo "======== Compiling $<"
- $(LCC) $(LCCFLAGS) -S $< -o $@ || \
+ $(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@ || \
( rm -f $@; $(FAILURE) $@ )
Output/%.tll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
@echo "======== Compiling $<"
- $(LCXX) $(LCXXFLAGS) -S $< -o $@ || \
+ $(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@ || \
( rm -f $@; $(FAILURE) $@ )
Output/%.tbc: Output/%.tll $(LAS)