There are a number of reasons for reinventing printf(). Writing status to
[oweals/busybox.git] / loginutils / Makefile
index ebaa82865918e6c2e60830a332217a8bf9ff0724..b81f42964b3a2da35c9e2435fefc577efd7bd7fc 100644 (file)
@@ -4,11 +4,15 @@
 #
 # Licensed under the GPL v2, see the file LICENSE in this tarball.
 
+ifndef top_srcdir
 top_srcdir=..
+endif
+ifndef top_builddir
 top_builddir=..
+endif
 srcdir=$(top_srcdir)/loginutils
 LOGINUTILS_DIR:=./
-include $(top_builddir)/Rules.mak
+include $(top_srcdir)/Rules.mak
 include $(top_builddir)/.config
 include Makefile.in
 all: $(libraries-y)