Move sed over to the generic llist_t for append. Saves about 90 bytes.
[oweals/busybox.git] / procps / Makefile.in
index 5207b801b46bf3788a816f774000d0ca800de16d..261c49b02ab995d82359ac74b3aa1ec96d911574 100644 (file)
@@ -1,21 +1,8 @@
 # Makefile for busybox
 #
-# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
-#
-# 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
+# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
 #
+# Licensed under the GPL v2, see the file LICENSE in this tarball.
 
 PROCPS_AR:=procps.a
 ifndef $(PROCPS_DIR)
@@ -32,12 +19,19 @@ PROCPS-$(CONFIG_RENICE)             += renice.o
 PROCPS-$(CONFIG_BB_SYSCTL)     += sysctl.o
 PROCPS-$(CONFIG_TOP)           += top.o
 PROCPS-$(CONFIG_UPTIME)                += uptime.o
+PROCPS-$(CONFIG_FUSER)         += fuser.o
 
+ifneq ($(strip $(PROCPS-y)),)
 libraries-y+=$(PROCPS_DIR)$(PROCPS_AR)
+endif
+
+PROCPS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(PROCPS-y))
+PROCPS_SRC-a:=$(wildcard $(srcdir)/*.c)
+APPLET_SRC-y+=$(PROCPS_SRC-y)
+APPLET_SRC-a+=$(PROCPS_SRC-a)
 
 $(PROCPS_DIR)$(PROCPS_AR): $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
-       $(AR) $(ARFLAGS) $@ $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
+       $(do_ar)
 
 $(PROCPS_DIR)%.o: $(srcdir)/%.c
-       $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
-
+       $(compile.c)