-TOPDIR :=..
-L_TARGET := networking.a
-
-obj-y :=
-obj-n :=
-obj- :=
-
-
-obj-$(CONFIG_HOSTNAME) += hostname.o
-obj-$(CONFIG_IFCONFIG) += ifconfig.o
-obj-$(CONFIG_NC) += nc.o
-obj-$(CONFIG_NSLOOKUP) += nslookup.o
-obj-$(CONFIG_PING) += ping.o
-obj-$(CONFIG_ROUTE) += route.o
-obj-$(CONFIG_TELNET) += telnet.o
-obj-$(CONFIG_TFTP) += tftp.o
-obj-$(CONFIG_TRACEROUTE) += traceroute.o
-obj-$(CONFIG_WGET) += wget.o
-
-
-# Hand off to toplevel Rules.mak
-include $(TOPDIR)/Rules.mak
+TOPDIR:= ../
+NETWORKING_DIR:=./
+include $(TOPDIR).config
+include $(TOPDIR)Rules.mak
+include Makefile.in
+all: $(libraries-y)
+-include $(TOPDIR).depend