iproute2/rdma/Makefile
<<
>>
Prefs
   1# SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
   2include ../config.mk
   3
   4TARGETS :=
   5
   6ifeq ($(HAVE_MNL),y)
   7CFLAGS += -I./include/uapi/
   8
   9RDMA_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 stat-mr.o res-ctx.o res-srq.o
  11
  12TARGETS += rdma
  13endif
  14
  15all:    $(TARGETS) $(LIBS)
  16
  17rdma:   $(RDMA_OBJ) $(LIBS)
  18        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
  19
  20install: all
  21        for i in $(TARGETS); \
  22        do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
  23        done
  24
  25clean:
  26        rm -f $(RDMA_OBJ) $(TARGETS)
  27