-# Silly wrapper makefile. This Makefile is _not_ used by the build system for
-# busybox, it is just to make working on libbb more conveinient.
-# -Erik Andersen
+# Makefile for busybox
+#
+# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
+#
+# Licensed under the GPL v2, see the file LICENSE in this tarball.
-all:
- make -C .. libbb.a
+top_srcdir=..
+top_builddir=..
+srcdir=$(top_srcdir)/libbb
+LIBBB_DIR:=./
+include $(top_builddir)/Rules.mak
+include $(top_builddir)/.config
+include Makefile.in
+all: $(libraries-y)
+-include $(top_builddir)/.depend
clean:
- - rm -rf libbb.a
- - find -name \*.o -exec rm -f {} \;
+ rm -f *.o *.a $(AR_TARGET)