summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2012-07-26 17:36:56 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:52 -0700
commit08d9cd2f145cf9676f298d66aadeb8a83d2d73c5 (patch)
treedc6fc99131fd83fccf545978412682d1bcd348ba /Makefile
parent9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (diff)
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]
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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