summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2018-02-23 10:46:13 -0500
committerMahmoud <[email protected]>2018-02-23 10:46:13 -0500
commit423dc13a99e5e23d48569a8d9fa844ff5de06ca0 (patch)
treede5a40d405df5f077ec86d79892e1978b8530de4 /Makefile
parent6a2f9978b9325fb78e8af1be5d5aaf90814e08d7 (diff)
fixing the libcardt link issue
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e83de9a..1f043fa 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ LIBS = cuda-sim gpgpu-sim_uarch $(INTERSIM) gpgpusimlib
TARGETS =
ifeq ($(shell uname),Linux)
- TARGETS += $(SIM_LIB_DIR)/libcudart.so
+ TARGETS += $(SIM_LIB_DIR)/libcudart.so
else # MAC
TARGETS += $(SIM_LIB_DIR)/libcudart.dylib
endif
@@ -75,6 +75,7 @@ else
TARGETS += $(SIM_LIB_DIR)/libOpenCL.so
endif
TARGETS += cuobjdump_to_ptxplus/cuobjdump_to_ptxplus
+ TARGETS += $(SIM_LIB_DIR)/gpgpusim.out
MCPAT=
MCPAT_OBJ_DIR=
@@ -143,7 +144,7 @@ no_opencl_support:
@echo "Warning: gpgpu-sim is building without opencl support. Make sure NVOPENCL_LIBDIR and NVOPENCL_INCDIR are set"
$(SIM_LIB_DIR)/libcudart.so: makedirs $(LIBS) cudalib
- g++ -shared -Wl,-soname,libcudart_$(GPGPUSIM_BUILD).so \
+ g++ -shared -Wl \
$(SIM_OBJ_FILES_DIR)/libcuda/*.o \
$(SIM_OBJ_FILES_DIR)/cuda-sim/*.o \
$(SIM_OBJ_FILES_DIR)/cuda-sim/decuda_pred_table/*.o \
@@ -162,6 +163,9 @@ $(SIM_LIB_DIR)/libcudart.so: makedirs $(LIBS) cudalib
if [ ! -f $(SIM_LIB_DIR)/libcudart.so.7.5 ]; then ln -s libcudart.so $(SIM_LIB_DIR)/libcudart.so.7.5; fi
if [ ! -f $(SIM_LIB_DIR)/libcudart.so.8.0 ]; then ln -s libcudart.so $(SIM_LIB_DIR)/libcudart.so.8.0; fi
+$(SIM_LIB_DIR)/gpgpusim.out: makedirs $(LIBS) cudalib $(SIM_LIB_DIR)/libcudart.so
+ g++ -std=c++0x -L$(SIM_LIB_DIR) -lcudart -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\
$(SIM_OBJ_FILES_DIR)/libcuda/*.o \