X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=init%2FMakefile;h=63816f6aa42d1d58bf22206106f0a5a501840f74;hb=2aced7ea043aff64bd4e5f2814818fb4d0c803d4;hp=472fb02b1281dd403eb0a76412fd8824b45251ff;hpb=bdfd0d78bc44e73d693510e70087857785b3b521;p=oweals%2Fbusybox.git diff --git a/init/Makefile b/init/Makefile index 472fb02b1..63816f6aa 100644 --- a/init/Makefile +++ b/init/Makefile @@ -1,39 +1,23 @@ # Makefile for busybox # -# Copyright (C) 1999,2000,2001 by Erik Andersen +# Copyright (C) 1999-2005 by Erik Andersen # -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -TOPDIR :=.. -L_TARGET := init.a - -obj-y := -obj-n := -obj- := - -obj-$(CONFIG_HALT) += halt.o -obj-$(CONFIG_INIT) += init.o -obj-$(CONFIG_POWEROFF) += poweroff.o -obj-$(CONFIG_REBOOT) += reboot.o -obj-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o - +# Licensed under the GPL v2, see the file LICENSE in this tarball. -# Hand off to toplevel Rules.mak -include $(TOPDIR)/Rules.mak +ifndef top_srcdir +top_srcdir=.. +endif +ifndef top_builddir +top_builddir=.. +endif +srcdir=$(top_srcdir)/init +INIT_DIR:=./ +include $(top_srcdir)/Rules.mak +include $(top_builddir)/.config +include $(srcdir)/Makefile.in +all: $(libraries-y) +-include $(top_builddir)/.depend clean: - rm -f $(L_TARGET) *.o core + rm -f *.o *.a $(AR_TARGET)