diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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 |
17 | libsmctrl_test_gpc_info: libsmctrl_test_gpc_info.c libsmctrl.a | 17 | libsmctrl_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 | ||
20 | libsmctrl_test_global_mask: libsmctrl_test_global_mask.cu libsmctrl.a | 20 | libsmctrl_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 | ||
23 | tests: libsmctrl_test_gpc_info libsmctrl_test_global_mask | 23 | libsmctrl_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 | |||
26 | libsmctrl_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 | |||
29 | libsmctrl_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 | |||
32 | tests: libsmctrl_test_gpc_info libsmctrl_test_global_mask libsmctrl_test_stream_mask libsmctrl_test_next_mask | ||
24 | 33 | ||
25 | clean: | 34 | clean: |
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 | ||