-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (66 loc) · 2.04 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
ifeq ($(KERNELRELEASE),)
KVER := $(shell uname -r)
KDIR ?= /lib/modules/$(shell uname -r)/build
TARGETS := install clean
INSTALL_MOD_DIR := kfabric
DEPMOD := /usr/sbin/depmod
PWD := $(shell pwd)
PACKAGE=cray-kfabric
VERSION=0.1.0
DISTFILES = $(shell git ls-files 2>/dev/null || find . -type f)
real_man_pages=\
Documentation/kfi/man3/kfi_atomic.3\
Documentation/kfi/man3/kfi_av.3\
Documentation/kfi/man3/kfi_cm.3\
Documentation/kfi/man3/kfi_cntr.3\
Documentation/kfi/man3/kfi_control.3\
Documentation/kfi/man3/kfi_cq.3\
Documentation/kfi/man3/kfi_domain.3\
Documentation/kfi/man3/kfi_endpoint.3\
Documentation/kfi/man3/kfi_eq.3\
Documentation/kfi/man3/kfi_errno.3\
Documentation/kfi/man3/kfi_fabric.3\
Documentation/kfi/man3/kfi_getinfo.3\
Documentation/kfi/man3/kfi_mr.3\
Documentation/kfi/man3/kfi_msg.3\
Documentation/kfi/man3/kfi_poll.3\
Documentation/kfi/man3/kfi_rma.3\
Documentation/kfi/man3/kfi_tagged.3\
Documentation/kfi/man3/kfi_trigger.3\
Documentation/kfi/man3/kfi_version.3\
\
Documentation/kfi/man7/kfabric.7\
Documentation/kfi/man7/kfi_direct.7\
\
$(__END_OF_LIST__)
.PHONY: build install clean dist rpm
all: build
build:
$(MAKE) -C $(KDIR) M=$(PWD) KBUILD_EXTRA_SYMBOLS=$(PWD)/../cxi-driver/cxi/Module.symvers modules
install:
$(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(PWD) modules_install
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
cxi_check:
cd ./tests/cxi/sharness; ./run_test_vm.sh
dist: $(DISTFILES)
tar czf $(PACKAGE)-$(VERSION).tar.gz --transform 's/^/$(PACKAGE)-$(VERSION)\//' $(DISTFILES)
$(PACKAGE)-$(VERSION).tar.gz: dist
rpm: $(PACKAGE)-$(VERSION).tar.gz
BUILD_METADATA=0 rpmbuild -ta $<
$(real_man_pages): nroff
nroff:
@for file in $(real_man_pages) ; \
do \
source=`echo $$file | sed -e 's@/man[0-9]@@'`; \
perl config/md2nroff.pl --source=$$source.md; \
done
else
.NOTPARALLEL: tests/cxi/single_client/ tests/cxi/multi_client/
obj-y += kfi/
obj-y += prov/cxi/
#obj-y += prov/ibverbs/
#obj-y += tests/ibverbs/simple/
obj-y += tests/cxi/single_client/
obj-y += tests/cxi/multi_client/
endif