iproute2/tipc/Makefile
Matthias Schiffer cfd6ccbfd0 devlink, rdma, tipc: properly define TARGETS without HAVE_MNL
Leaving a variable with a generic name such as TARGETS undefined would lead
to Make picking up its value from the environment. Avoid this by always
defining TARGETS in the Makefiles.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-05 16:32:17 -08:00

29 lines
432 B
Makefile

# SPDX-License-Identifier: GPL-2.0
include ../config.mk
TARGETS :=
ifeq ($(HAVE_MNL),y)
TIPCOBJ=bearer.o \
cmdl.o link.o \
media.o misc.o \
msg.o nametable.o \
node.o socket.o \
peer.o tipc.o
TARGETS += tipc
endif
all: $(TARGETS) $(LIBS)
tipc: $(TIPCOBJ)
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
install: all
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
clean:
rm -f $(TIPCOBJ) $(TARGETS)