mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-16 06:25:35 +08:00
cfd6ccbfd0
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>
29 lines
432 B
Makefile
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)
|