fix printf warning
[oweals/busybox.git] / shell / Makefile
index e0229973ee7c4d6c3bc5d1c565b1befcba9c430c..bd1dad6f33ae2d47470c2cffc3ef5d9ac63ee917 100644 (file)
@@ -1,6 +1,6 @@
 # Makefile for busybox
 #
-# Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
 
-TOPDIR   :=..
-L_TARGET := shell.a
-EXTRA_CFLAGS = -DBB_VER='"$(VERSION)"' -DBB_BT='"$(BUILDTIME)"'
-
-obj-y           :=
-obj-n           :=
-obj-            :=
-
-obj-$(CONFIG_ASH)              += ash.o
-obj-$(CONFIG_HUSH)             += hush.o
-obj-$(CONFIG_LASH)             += lash.o
-obj-$(CONFIG_MSH)              += msh.o
-obj-$(CONFIG_FEATURE_COMMAND_EDITING)          += cmdedit.o
-
-
-# Hand off to toplevel Rules.mak
-include $(TOPDIR)/Rules.mak
+top_srcdir=..
+top_builddir=..
+srcdir=$(top_srcdir)/shell
+SHELL_DIR:=./
+include $(top_builddir)/Rules.mak
+include $(top_builddir)/.config
+include Makefile.in
+all: $(libraries-y)
+-include $(top_builddir)/.depend
 
 clean:
-       rm -f $(L_TARGET) *.o core
+       rm -f *.o *.a $(AR_TARGET)