-TOPDIR :=..
-L_TARGET := sysklogd.a
-EXTRA_CFLAGS = -DBB_VER='"$(VERSION)"' -DBB_BT='"$(BUILDTIME)"'
-
-obj-y :=
-obj-n :=
-obj- :=
-
-
-obj-$(CONFIG_KLOGD) += klogd.o
-obj-$(CONFIG_LOGGER) += logger.o
-obj-$(CONFIG_LOGREAD) += logread.o
-obj-$(CONFIG_SYSLOGD) += syslogd.o
-
-# Hand off to toplevel Rules.mak
-include $(TOPDIR)/Rules.mak
+TOPDIR:= ../
+SYSKLOGD_DIR:=./
+include $(TOPDIR).config
+include $(TOPDIR)Rules.mak
+include Makefile.in
+all: $(libraries-y)
+-include $(TOPDIR).depend