From 08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 26 Jul 2012 17:36:56 -0800 Subject: tell new user what version of GPGPU-Sim this is while trying to build (i.e., in case they can't even get it to build) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13549] --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c3439fb..7f0897a 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,10 @@ # comment out next line to disable OpenGL support # export OPENGL_SUPPORT=1 -# for MacOS X +include version_detection.mk + ifeq ($(shell uname), Darwin) + # Note: MacOX support not working for this version export MACOSX_BUILD_FLAGS=-m32 endif @@ -71,7 +73,7 @@ gpgpusim: check_setup_environment makedirs $(TARGETS) check_setup_environment: - @if [ ! -n "$(GPGPUSIM_ROOT)" -o ! -n "$(CUDA_INSTALL_PATH)" -o ! -n "$(GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN)" ]; then \ + @if [ ! -n "$(GPGPUSIM_ROOT)" -o ! -n "$(CUDA_INSTALL_PATH)" -o ! -n "$(GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN)" ]; then \ echo "ERROR *** run 'source setup_environment' before 'make'; please see README."; \ exit 101; \ else \ @@ -83,7 +85,9 @@ check_setup_environment: echo " Please also be sure to read the README file if you have not done so."; \ echo ""; \ exit 102; \ - else true; \ + else \ + echo; echo -n " Building GPGPU-Sim version "; cat version | awk '/Version/ {print $$8}'; echo " on CUDA version $(CUDA_VERSION_STRING)"; echo; \ + true; \ fi \ fi -- cgit v1.3