2008-02-14 00:20:12 +08:00
|
|
|
IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o \
|
2006-11-24 11:27:09 +08:00
|
|
|
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
|
2005-01-18 07:30:18 +08:00
|
|
|
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
|
2007-10-12 04:01:42 +08:00
|
|
|
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \
|
|
|
|
iplink_vlan.o link_veth.o
|
2007-09-02 00:47:19 +08:00
|
|
|
|
2004-04-16 04:56:59 +08:00
|
|
|
RTMONOBJ=rtmon.o
|
|
|
|
|
|
|
|
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
2005-02-10 06:05:41 +08:00
|
|
|
SCRIPTS=ifcfg rtpr routel routef
|
|
|
|
TARGETS=ip rtmon
|
2004-04-16 04:56:59 +08:00
|
|
|
|
2007-07-11 17:33:55 +08:00
|
|
|
all: $(TARGETS) $(SCRIPTS) $(LIBS)
|
2004-04-16 04:56:59 +08:00
|
|
|
|
|
|
|
ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
|
|
|
|
|
|
|
|
rtmon: $(RTMONOBJ) $(LIBNETLINK)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
|
2005-02-10 06:05:41 +08:00
|
|
|
install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
|
2004-04-16 04:56:59 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ALLOBJ) $(TARGETS)
|
|
|
|
|
2007-10-12 04:01:42 +08:00
|
|
|
LDLIBS += -ldl
|
2007-12-17 21:06:38 +08:00
|
|
|
|
|
|
|
LDFLAGS += -Wl,-export-dynamic
|