]> git.proxmox.com Git - mirror_iproute2.git/blob - rdma/Makefile
Merge ../iproute2-next
[mirror_iproute2.git] / rdma / Makefile
1 # SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2 include ../config.mk
3
4 TARGETS :=
5
6 ifeq ($(HAVE_MNL),y)
7 CFLAGS += -I./include/uapi/
8
9 RDMA_OBJ = rdma.o utils.o dev.o link.o res.o res-pd.o res-mr.o res-cq.o \
10 res-cmid.o res-qp.o sys.o stat.o
11
12 TARGETS += rdma
13 endif
14
15 all: $(TARGETS) $(LIBS)
16
17 rdma: $(RDMA_OBJ) $(LIBS)
18 $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
19
20 install: all
21 for i in $(TARGETS); \
22 do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
23 done
24
25 clean:
26 rm -f $(RDMA_OBJ) $(TARGETS)