Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 7 | srcdir:=$(top_srcdir)/procps |
| 8 | objdir:=$(top_builddir)/procps |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 9 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 10 | PROCPS-$(CONFIG_FREE) += free.o |
| 11 | PROCPS-$(CONFIG_KILL) += kill.o |
| 12 | PROCPS-$(CONFIG_PIDOF) += pidof.o |
| 13 | PROCPS-$(CONFIG_PS) += ps.o |
| 14 | PROCPS-$(CONFIG_RENICE) += renice.o |
Eric Andersen | 5d38f5b | 2005-09-12 21:42:48 +0000 | [diff] [blame] | 15 | PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o |
Eric Andersen | 420b208 | 2002-09-17 22:14:58 +0000 | [diff] [blame] | 16 | PROCPS-$(CONFIG_TOP) += top.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 17 | PROCPS-$(CONFIG_UPTIME) += uptime.o |
Rob Landley | aa87276 | 2005-10-28 13:05:12 +0000 | [diff] [blame] | 18 | PROCPS-$(CONFIG_FUSER) += fuser.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 19 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 20 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 21 | PROCPS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(PROCPS-y)) |
| 22 | PROCPS_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 23 | APPLET_SRC-y+=$(PROCPS_SRC-y) |
| 24 | APPLET_SRC-a+=$(PROCPS_SRC-a) |
| 25 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 26 | procps_OBJ:= $(patsubst %,$(objdir)/%,$(PROCPS-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 27 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 28 | $(procps_OBJ): $(objdir)/%.o: $(srcdir)/%.c |
| 29 | $(objdir)/procps.a: $(procps_OBJ) |
| 30 | libraries-y:=$(libraries-y) $(objdir)/procps.a |
| 31 | |