[ofa-general] ***SPAM*** [PATCH] perftest/Makefile: Make rdma_lat and rdma_bw executable names rdma neutral
Hal Rosenstock
hnrose at comcast.net
Sat Apr 18 04:32:18 PDT 2009
Since rdma_lat and rdma_bw use RDMA CM, they can be used with both IB and
iWARP so make their executable names neutral (by removing ib_)
Also, IB only tests only require linking with libibverbs
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/Makefile b/Makefile
index 8042531..ad1a40c 100755
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
-TESTS = write_bw_postlist rdma_lat rdma_bw send_lat send_bw write_lat write_bw read_lat read_bw
+RDMACM_TESTS = rdma_lat rdma_bw
+TESTS = write_bw_postlist send_lat send_bw write_lat write_bw read_lat read_bw
UTILS = clock_test
-all: ${TESTS} ${UTILS}
+all: ${RDMACM_TESTS} ${TESTS} ${UTILS}
CFLAGS += -Wall -g -D_GNU_SOURCE -O2
EXTRA_FILES = get_clock.c
@@ -10,11 +11,15 @@ EXTRA_HEADERS = get_clock.h
LOADLIBES +=
LDFLAGS +=
-${TESTS}: LOADLIBES += -libverbs -lrdmacm
+${RDMACM_TESTS} ${UTILS}: LOADLIBES += -libverbs -lrdmacm
+${TESTS}: LOADLIBES += -libverbs
-${TESTS} ${UTILS}: %: %.c ${EXTRA_FILES} ${EXTRA_HEADERS}
+${RDMACM_TESTS} ${UTILS}: %: %.c ${EXTRA_FILES} ${EXTRA_HEADERS}
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $< ${EXTRA_FILES} $(LOADLIBES) $(LDLIBS) -o $@
+${TESTS}: %: %.c ${EXTRA_FILES} ${EXTRA_HEADERS}
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $< ${EXTRA_FILES} $(LOADLIBES) $(LDLIBS) -o ib_$@
clean:
- $(foreach fname,${TESTS} ${UTILS}, rm -f ib_${fname})
+ $(foreach fname,${RDMACM_TESTS} ${UTILS}, rm -f ${fname})
+ $(foreach fname,${TESTS}, rm -f ib_${fname})
.DELETE_ON_ERROR:
.PHONY: all clean
More information about the general
mailing list