Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 62f18e1 | 2005-09-24 07:16:29 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 62f18e1 | 2005-09-24 07:16:29 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | b183dfa | 2001-03-19 19:24:06 +0000 | [diff] [blame] | 6 | |
Bernhard Reutner-Fischer | 022eb31 | 2006-03-02 17:33:25 +0000 | [diff] [blame] | 7 | ifndef top_srcdir |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 8 | top_srcdir=.. |
Bernhard Reutner-Fischer | 022eb31 | 2006-03-02 17:33:25 +0000 | [diff] [blame] | 9 | endif |
| 10 | ifndef top_builddir |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 11 | top_builddir=.. |
Bernhard Reutner-Fischer | 022eb31 | 2006-03-02 17:33:25 +0000 | [diff] [blame] | 12 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 13 | srcdir=$(top_srcdir)/libbb |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 14 | LIBBB_DIR:=./ |
Rob Landley | 9ebd1bd | 2006-07-06 20:02:47 +0000 | [diff] [blame] | 15 | |
| 16 | # Ensure "all" is still the default target when make is run by itself in |
| 17 | # libbb, even if the files we include define rules for targets. |
| 18 | |
| 19 | all: |
| 20 | |
Mike Frysinger | 39440e5 | 2006-05-13 02:33:09 +0000 | [diff] [blame] | 21 | include $(top_srcdir)/Rules.mak |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 22 | include $(top_builddir)/.config |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 23 | include Makefile.in |
| 24 | all: $(libraries-y) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 25 | -include $(top_builddir)/.depend |
Eric Andersen | b183dfa | 2001-03-19 19:24:06 +0000 | [diff] [blame] | 26 | |
| 27 | clean: |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 28 | rm -f *.o *.a $(AR_TARGET) |
| 29 | |