Blame rdma/Makefile

Packit d3f73b
# SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
Packit d3f73b
include ../config.mk
Packit d3f73b
Packit d3f73b
TARGETS :=
Packit d3f73b
Packit d3f73b
ifeq ($(HAVE_MNL),y)
Packit d3f73b
CFLAGS += -I./include/uapi/
Packit d3f73b
Packit d3f73b
RDMA_OBJ = rdma.o utils.o dev.o link.o res.o res-pd.o res-mr.o res-cq.o \
Packit d3f73b
	   res-cmid.o res-qp.o sys.o stat.o
Packit d3f73b
Packit d3f73b
TARGETS += rdma
Packit d3f73b
endif
Packit d3f73b
Packit d3f73b
all:	$(TARGETS) $(LIBS)
Packit d3f73b
Packit d3f73b
rdma:	$(RDMA_OBJ) $(LIBS)
Packit d3f73b
	$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
Packit d3f73b
Packit d3f73b
install: all
Packit d3f73b
	for i in $(TARGETS); \
Packit d3f73b
	do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
Packit d3f73b
	done
Packit d3f73b
Packit d3f73b
clean:
Packit d3f73b
	rm -f $(RDMA_OBJ) $(TARGETS)