aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6abc124..b91f6b9 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,24 @@ libsmctrl.a: libsmctrl.c libsmctrl.h
14 ar rcs $@ libsmctrl.o 14 ar rcs $@ libsmctrl.o
15 15
16# Use static linking with tests to avoid LD_LIBRARY_PATH issues 16# Use static linking with tests to avoid LD_LIBRARY_PATH issues
17libsmctrl_test_gpc_info: libsmctrl_test_gpc_info.c libsmctrl.a 17libsmctrl_test_gpc_info: libsmctrl_test_gpc_info.c libsmctrl.a testbench.h
18 $(CC) $< -o $@ -g -L. -l:libsmctrl.a $(LDFLAGS) 18 $(CC) $< -o $@ -g -L. -l:libsmctrl.a $(LDFLAGS)
19 19
20libsmctrl_test_global_mask: libsmctrl_test_global_mask.cu libsmctrl.a 20libsmctrl_test_mask_shared.o: libsmctrl_test_mask_shared.cu testbench.h
21 $(NVCC) $< -o $@ -g -L. -l:libsmctrl.a $(LDFLAGS) 21 $(NVCC) $< -c -g
22 22
23tests: libsmctrl_test_gpc_info libsmctrl_test_global_mask 23libsmctrl_test_global_mask: libsmctrl_test_global_mask.c libsmctrl.a libsmctrl_test_mask_shared.o
24 $(NVCC) $@.c -o $@ libsmctrl_test_mask_shared.o -g -L. -l:libsmctrl.a $(LDFLAGS)
25
26libsmctrl_test_stream_mask: libsmctrl_test_stream_mask.c libsmctrl.a libsmctrl_test_mask_shared.o
27 $(NVCC) $@.c -o $@ libsmctrl_test_mask_shared.o -g -L. -l:libsmctrl.a $(LDFLAGS)
28
29libsmctrl_test_next_mask: libsmctrl_test_next_mask.c libsmctrl.a libsmctrl_test_mask_shared.o
30 $(NVCC) $@.c -o $@ libsmctrl_test_mask_shared.o -g -L. -l:libsmctrl.a $(LDFLAGS)
31
32tests: libsmctrl_test_gpc_info libsmctrl_test_global_mask libsmctrl_test_stream_mask libsmctrl_test_next_mask
24 33
25clean: 34clean:
26 rm -f libsmctrl.so libsmctrl.a libsmctrl_test_gpu_info \ 35 rm -f libsmctrl.so libsmctrl.a libsmctrl_test_gpu_info \
27 libsmctrl_test_global_mask 36 libsmctrl_test_mask_shared.o libmsctrl_test_global_mask \
37 libsmctrl_test_stream_mask libmsctrl_test_next_mask