Blame devlink/Makefile

Packit Service 3880ab
# SPDX-License-Identifier: GPL-2.0
Packit Service 3880ab
include ../config.mk
Packit Service 3880ab
Packit Service 3880ab
TARGETS :=
Packit Service 3880ab
Packit Service 3880ab
ifeq ($(HAVE_MNL),y)
Packit Service 3880ab
Packit Service 3880ab
DEVLINKOBJ = devlink.o mnlg.o
Packit Service 3880ab
TARGETS += devlink
Packit Service 3880ab
Packit Service 3880ab
endif
Packit Service 3880ab
Packit Service 3880ab
all: $(TARGETS) $(LIBS)
Packit Service 3880ab
Packit Service 3880ab
devlink: $(DEVLINKOBJ)
Packit Service 3880ab
	$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
Packit Service 3880ab
Packit Service 3880ab
install: all
Packit Service 3880ab
	for i in $(TARGETS); \
Packit Service 3880ab
	do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
Packit Service 3880ab
	done
Packit Service 3880ab
Packit Service 3880ab
clean:
Packit Service 3880ab
	rm -f $(DEVLINKOBJ) $(TARGETS)