blob: 33639864125b264228ca466b787e228e31c143a7 [file] [log] [blame]
Eric Andersenbdfd0d72001-10-24 05:00:29 +00001# Makefile for busybox
2#
Mike Frysinger62f18e12005-09-24 07:16:29 +00003# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
Eric Andersenbdfd0d72001-10-24 05:00:29 +00004#
Mike Frysinger62f18e12005-09-24 07:16:29 +00005# Licensed under the GPL v2, see the file LICENSE in this tarball.
Eric Andersenb183dfa2001-03-19 19:24:06 +00006
Bernhard Reutner-Fischer022eb312006-03-02 17:33:25 +00007ifndef top_srcdir
Eric Andersen7daa0762004-10-08 07:46:08 +00008top_srcdir=..
Bernhard Reutner-Fischer022eb312006-03-02 17:33:25 +00009endif
10ifndef top_builddir
Eric Andersen7daa0762004-10-08 07:46:08 +000011top_builddir=..
Bernhard Reutner-Fischer022eb312006-03-02 17:33:25 +000012endif
Eric Andersen7daa0762004-10-08 07:46:08 +000013srcdir=$(top_srcdir)/libbb
Eric Andersen85208e22002-04-12 12:05:57 +000014LIBBB_DIR:=./
Rob Landley9ebd1bd2006-07-06 20:02:47 +000015
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
19all:
20
Mike Frysinger39440e52006-05-13 02:33:09 +000021include $(top_srcdir)/Rules.mak
Eric Andersen7daa0762004-10-08 07:46:08 +000022include $(top_builddir)/.config
Eric Andersen85208e22002-04-12 12:05:57 +000023include Makefile.in
24all: $(libraries-y)
Eric Andersen7daa0762004-10-08 07:46:08 +000025-include $(top_builddir)/.depend
Eric Andersenb183dfa2001-03-19 19:24:06 +000026
27clean:
Eric Andersen85208e22002-04-12 12:05:57 +000028 rm -f *.o *.a $(AR_TARGET)
29