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})