[openib-general] perftest-03: put C code in .c file

Bernhard Fischer blist at aon.at
Wed May 11 06:00:04 PDT 2005


Hi,
On Tue, May 10, 2005 at 06:40:14PM -0700, Grant Grundler wrote:
>Hi Michael,
>Patch below fixes up the Makefile and getclock.h so C code is in C files


>--- Makefile	(revision 2296)
>+++ Makefile	(working copy)
>@@ -1,6 +1,9 @@
> CFLAGS = -Wall -O2 -g -D_GNU_SOURCE 
+ CC = gcc
> 
>-rdma_lat: rdma_lat.c get_clock.h
>-	gcc $(CFLAGS) -o rdma_lat rdma_lat.c -libverbs

please replace that gcc with $(CC)
>+RDMA_LAT_OBJ = rdma_lat.o get_clock.o
>+
>+rdma_lat: $(RDMA_LAT_OBJ)
>+	gcc -o rdma_lat $(RDMA_LAT_OBJ) -libverbs
ditto
>+
> clean:
>-	rm -f rdma_lat
>+	rm -f rdma_lat $(RDMA_LAT_OBJ)

thank you



More information about the general mailing list