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

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 10 13:16:02 PST 2004


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.114 -> 1.115

---
Log message:

Add dependencies, so that profile info is rebuilt when certain things are
changed


---
Diffs of the changes:  (+5 -3)

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.114 llvm/test/Programs/Makefile.programs:1.115
--- llvm/test/Programs/Makefile.programs:1.114	Tue Feb 10 12:57:39 2004
+++ llvm/test/Programs/Makefile.programs	Tue Feb 10 13:15:08 2004
@@ -392,16 +392,18 @@
 Output/%.llvm-prof.bc: Output/%.llvm.bc
 	$(LOPT) -insert-block-profiling $< -o $@ -f
 
+LIBPROFILESO := $(LEVEL)/lib/Debug/libprofile_rt.so
+
 $(PROGRAMS_TO_TEST:%=Output/%.prof): \
-Output/%.prof: Output/%.llvm-prof.bc Output/%.out-nat
+Output/%.prof: Output/%.llvm-prof.bc Output/%.out-nat $(LIBPROFILESO)
 	@rm -f $@
 	-$(RUNSAFELY) $(STDIN_FILENAME) Output/$*.out-prof $(LLI) $(JIT_OPTS) \
-            -fake-argv0 'Output/$*.llvm.bc' -load $(LEVEL)/lib/Debug/libprofile_rt.so $< -llvmprof-output $@ $(RUN_OPTIONS)
+            -fake-argv0 'Output/$*.llvm.bc' -load $(LIBPROFILESO) $< -llvmprof-output $@ $(RUN_OPTIONS)
 	@cmp -s Output/$*.out-prof Output/$*.out-nat || \
 		printf "***\n***\n*** WARNING: Output of profiled program (Output/$*.out-prof)\n*** doesn't match the output of the native program (Output/$*.out-nat)!\n***\n***\n";
 
 $(PROGRAMS_TO_TEST:%=Output/%.printprof): \
-Output/%.printprof: Output/%.llvm.bc Output/%.prof
+Output/%.printprof: Output/%.llvm.bc Output/%.prof $(LPROF)
 	$(LPROF) $< Output/$*.prof
 
 





More information about the llvm-commits mailing list