From 628731a5a34ff1a5a98514b5cb89a490f64c9292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Fri, 20 Nov 2015 16:28:18 +0100 Subject: [PATCH] 3d-ice and superlu paths made configurable --- DRAMSys/simulator/simulator.pro | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/DRAMSys/simulator/simulator.pro b/DRAMSys/simulator/simulator.pro index e9594950..9741a915 100644 --- a/DRAMSys/simulator/simulator.pro +++ b/DRAMSys/simulator/simulator.pro @@ -168,13 +168,25 @@ isEmpty(thermalsim) { $$eval(thermalsim) { message(Thermal Simulation Feature Enabled) - LIBS += -L/opt/3D-ICE/lib -lthreed-ice-2.2.5 - LIBS += -L/opt/SuperLU_4.3/lib -lsuperlu_4.3 + libthreed_ice_home = $$(LIBTHREED_ICE_HOME) + isEmpty(libthreed_ice_home) { + libthreed_ice_home = /opt/3D-ICE/ + } + message(LIBTHREED_ICE_HOME path is $${libthreed_ice_home}) + + libsuperlu_home = $$(LIBSUPERLU_HOME) + isEmpty(libsuperlu_home) { + libsuperlu_home = /opt/SuperLU_4.3/ + } + message(LIBSUPERLU_HOME path is $${libthreed_ice_home}) + + LIBS += -L$${libthreed_ice_home}/lib -lthreed-ice-2.2.5 + LIBS += -L$${libsuperlu_home}/lib -lsuperlu_4.3 LIBS += -lblas message(Libraries: $${LIBS}) - INCLUDEPATH += /opt/3D-ICE/include - INCLUDEPATH += /opt/SuperLU_4.3/SRC + INCLUDEPATH += $${libthreed_ice_home}/include + INCLUDEPATH += $${libsuperlu_home}/SRC INCLUDEPATH += $${systemc_home}/include INCLUDEPATH += src/common/third_party/icewrapper message(Include paths: $${INCLUDEPATH})