31 lines
697 B
Makefile
Executable File
31 lines
697 B
Makefile
Executable File
IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o \
|
|
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
|
|
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
|
|
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \
|
|
iplink_vlan.o link_veth.o
|
|
|
|
RTMONOBJ=rtmon.o
|
|
|
|
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
|
SCRIPTS=ifcfg rtpr routel routef
|
|
TARGETS=ip rtmon
|
|
|
|
all: $(TARGETS) $(SCRIPTS) $(LIBS)
|
|
|
|
ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
|
|
|
|
rtmon: $(RTMONOBJ) $(LIBNETLINK)
|
|
mips-linux-strip ip
|
|
|
|
|
|
install: all
|
|
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
|
|
install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
|
|
|
|
clean:
|
|
rm -f $(ALLOBJ) $(TARGETS)
|
|
|
|
LDLIBS += -ldl
|
|
|
|
LDFLAGS += -Wl,-export-dynamic
|