From d340dcbfccc356f0a98696e808eba179bf0d9131 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Thu, 23 Jun 2011 16:02:09 -0700 Subject: [PATCH] Modify makefile to print out llvm version and install directory it's using --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 30a75dcc..6be3182f 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ OBJS=$(addprefix objs/, $(CXX_SRC:.cpp=.o) $(STDLIB_SRC:.ll=.o) stdlib-c.o stdli default: ispc ispc_test -.PHONY: dirs clean depend doxygen +.PHONY: dirs clean depend doxygen print_llvm_src .PRECIOUS: objs/stdlib-%.cpp depend: $(CXX_SRC) $(HEADERS) @@ -56,6 +56,9 @@ dirs: @echo Creating objs/ directory @/bin/mkdir -p objs +print_llvm_src: + @echo Using LLVM `llvm-config --version` from `llvm-config --libdir` + clean: /bin/rm -rf objs ispc ispc_test @@ -63,7 +66,7 @@ doxygen: /bin/rm -rf docs/doxygen doxygen doxygen.cfg -ispc: dirs $(OBJS) +ispc: print_llvm_src dirs $(OBJS) @echo Creating ispc executable @$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LLVM_LIBS)