mirror of
				https://git.proxmox.com/git/mirror_iproute2
				synced 2025-11-04 08:25:08 +00:00 
			
		
		
		
	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)
 |