summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-09-19 22:06:15 -0400
committerMahmoud <[email protected]>2019-09-19 22:06:15 -0400
commit5db69b3e5b058c030075c066db64922bf1e6af02 (patch)
tree1de5df881f370ee4e74796c02acf5c0772ff436f /Makefile
parentde903552c8d716e6b2bd6d0c816063523e35c6c5 (diff)
support trace-driven and changing the shader.cc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5cd3101..73f22c6 100644
--- a/Makefile
+++ b/Makefile
@@ -171,7 +171,15 @@ $(SIM_LIB_DIR)/libcudart.so: makedirs $(LIBS) cudalib
$(SIM_LIB_DIR)/gpgpusim.out: makedirs $(LIBS) cudalib $(SIM_LIB_DIR)/libcudart.so
- g++ -std=c++0x -L$(SIM_LIB_DIR) -I$(CUDA_INSTALL_PATH)/include -lcudart -o $(SIM_LIB_DIR)/gpgpusim.out src/trace-driven/gpgpusim_trace_driven_main.cc
+ ar rvs $(SIM_LIB_DIR)/libcudart_static.a\
+ $(SIM_OBJ_FILES_DIR)/libcuda/*.o \
+ $(SIM_OBJ_FILES_DIR)/cuda-sim/*.o \
+ $(SIM_OBJ_FILES_DIR)/cuda-sim/decuda_pred_table/*.o \
+ $(SIM_OBJ_FILES_DIR)/gpgpu-sim/*.o \
+ $(SIM_OBJ_FILES_DIR)/$(INTERSIM)/*.o \
+ $(SIM_OBJ_FILES_DIR)/*.o \
+ $(MCPAT)
+ g++ -std=c++0x -L$(SIM_LIB_DIR) -I$(CUDA_INSTALL_PATH)/include -lcudart -lm -lz -lGL -pthread -o $(SIM_LIB_DIR)/gpgpusim.out src/trace-driven/gpgpusim_trace_driven_main.cc
$(SIM_LIB_DIR)/libcudart.dylib: makedirs $(LIBS) cudalib
g++ -dynamiclib -Wl,-headerpad_max_install_names,-undefined,dynamic_lookup,-compatibility_version,1.1,-current_version,1.1\