summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 52fb93f..a146436 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,9 @@ $(SIM_LIB_DIR)/libcudart.so: $(LIBS) cudalib
$(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 -lm -lz -lGL -pthread \
+ $(SIM_OBJ_FILES_DIR)/*.o -lm -lz -lGL -pthread \
+ $(GPGPUSIM_ROOT)/cuobjdump_to_ptxplus/cuobjdump_parser.o \
+ $(GPGPUSIM_ROOT)/cuobjdump_to_ptxplus/cuobjdump_lexer.o \
-o $(SIM_LIB_DIR)/libcudart.so
if [ ! -f $(SIM_LIB_DIR)/libcudart.so.2 ]; then ln -s libcudart.so $(SIM_LIB_DIR)/libcudart.so.2; fi
if [ ! -f $(SIM_LIB_DIR)/libcudart.so.3 ]; then ln -s libcudart.so $(SIM_LIB_DIR)/libcudart.so.3; fi
@@ -89,6 +91,8 @@ $(SIM_LIB_DIR)/libcudart.dylib: $(LIBS) cudalib
$(SIM_OBJ_FILES_DIR)/gpgpu-sim/*.o \
$(SIM_OBJ_FILES_DIR)/intersim/*.o \
$(SIM_OBJ_FILES_DIR)/*.o -lm -lz -pthread \
+ $(GPGPUSIM_ROOT)/cuobjdump_to_ptxplus/cuobjdump_parser.o \
+ $(GPGPUSIM_ROOT)/cuobjdump_to_ptxplus/cuobjdump_lexer.o \
-o $(SIM_LIB_DIR)/libcudart.dylib
$(SIM_LIB_DIR)/libOpenCL.so: $(LIBS) opencllib
@@ -106,6 +110,7 @@ $(SIM_LIB_DIR)/libOpenCL.so: $(LIBS) opencllib
cudalib: cuda-sim
$(MAKE) -C ./libcuda/ depend
$(MAKE) -C ./libcuda/
+ $(MAKE) -C cuobjdump_to_ptxplus/
cuda-sim:
$(MAKE) -C ./src/cuda-sim/ depend
@@ -165,5 +170,6 @@ endif
$(MAKE) clean -C ./src/gpgpu-sim/
$(MAKE) clean -C ./src/
$(MAKE) clean -C ./decuda_to_ptxplus/
+ $(MAKE) clean -C ./cuobjdump_to_ptxplus/
rm -rf $(SIM_LIB_DIR)
rm -rf $(SIM_OBJ_FILES_DIR)