From 99719d0b28692683daeb3bbae2f8f959bd74cc94 Mon Sep 17 00:00:00 2001 From: Prakalp Srivastava <psrivas2@illinois.edu> Date: Tue, 18 Nov 2014 23:16:26 +0000 Subject: [PATCH] Changed makefile to use environment var LLVM_SRC_ROOT and not hard code the path --- llvm/projects/visc-rt/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/llvm/projects/visc-rt/Makefile b/llvm/projects/visc-rt/Makefile index 8d1cde4708..19cf518859 100644 --- a/llvm/projects/visc-rt/Makefile +++ b/llvm/projects/visc-rt/Makefile @@ -1,5 +1,8 @@ -LLVM_SRC_ROOT = /home/psrivas2/Hetero/VISC/Code/trunk/llvm -LLVM_INSTALL = /home/psrivas2/Hetero/VISC/Code/trunk/llvm-install +ifndef LLVM_SRC_ROOT + $(info "$$(LLVM_SRC_ROOT) is not defined") +endif + +LLVM_INSTALL = $(LLVM_SRC_ROOT)/../llvm-install CPP_FLAGS = -I $(LLVM_SRC_ROOT)/include -I /usr/local/cuda/include TARGET:=visc-rt -- GitLab