forked from mblockso/ofi-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 880 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#######################################################################
# Ping-Pong Tests
# for
# Open Fabric Interface 1.x
#
# Jianxin Xiong
# 2013-2017
#######################################################################
OFI_HOME ?= /usr/local/ofi
CFLAGS = -I$(OFI_HOME)/include -g
LDFLAGS = -L$(OFI_HOME)/lib -Xlinker -R$(OFI_HOME)/lib -lfabric
TARGETS=pingpong pingpong-sep pingpong-sep-mt pingpong-self
all: $(TARGETS)
pingpong: pingpong.c Makefile
cc pingpong.c -o pingpong $(CFLAGS) $(LDFLAGS)
pingpong-sep: pingpong-sep.c Makefile
cc pingpong-sep.c -o pingpong-sep $(CFLAGS) $(LDFLAGS)
pingpong-sep-mt: pingpong-sep-mt.c Makefile
cc pingpong-sep-mt.c -o pingpong-sep-mt $(CFLAGS) $(LDFLAGS) -lpthread
pingpong-self: pingpong-self.c Makefile
cc pingpong-self.c -o pingpong-self $(CFLAGS) $(LDFLAGS)
clean:
rm $(TARGETS)