This commit was generated by cvs2svn to compensate for changes in r1650,
[iproute2.git] / ip / Makefile
diff --git a/ip/Makefile b/ip/Makefile
new file mode 100644 (file)
index 0000000..bcc419b
--- /dev/null
@@ -0,0 +1,24 @@
+IPOBJ=ip.o ipaddress.o iproute.o iprule.o \
+    rtm_map.o iptunnel.o ipneigh.o iplink.o \
+    ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
+    ipxfrm.o xfrm_state.o xfrm_policy.o
+
+RTMONOBJ=rtmon.o
+
+ALLOBJ=$(IPOBJ) $(RTMONOBJ)
+SCRIPTS=ifcfg rtpr routel routef
+TARGETS=ip rtmon
+
+all: $(TARGETS) $(SCRIPTS)
+
+ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
+
+rtmon: $(RTMONOBJ) $(LIBNETLINK)
+
+install: all
+       install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
+       install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
+
+clean:
+       rm -f $(ALLOBJ) $(TARGETS)
+