summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitccbe5663879aa702dfb7cc5930a7990adc1484b1 (patch)
treed79746f51dafee043641d69b331ed65b3bb70572 /llvm
parent192623ec93444785a100d64a5a7218dec4d36d1e (diff)
downloadbcm5719-llvm-ccbe5663879aa702dfb7cc5930a7990adc1484b1.tar.gz
bcm5719-llvm-ccbe5663879aa702dfb7cc5930a7990adc1484b1.zip
Add flexibility
llvm-svn: 6246
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Makefile.tests12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Makefile.tests b/llvm/test/Makefile.tests
index 61312795350..fc93463c746 100644
--- a/llvm/test/Makefile.tests
+++ b/llvm/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)
OpenPOWER on IntegriCloud