blob: 69455eb260871428f56729d7d0afa8fb6f9a911d [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00003# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
Eric Andersen85208e22002-04-12 12:05:57 +00004#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00005# Licensed under the GPL v2, see the file LICENSE in this tarball.
Eric Andersen85208e22002-04-12 12:05:57 +00006
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +00007srcdir:=$(top_srcdir)/procps
8objdir:=$(top_builddir)/procps
Eric Andersen85208e22002-04-12 12:05:57 +00009
Eric Andersen85208e22002-04-12 12:05:57 +000010PROCPS-$(CONFIG_FREE) += free.o
11PROCPS-$(CONFIG_KILL) += kill.o
12PROCPS-$(CONFIG_PIDOF) += pidof.o
13PROCPS-$(CONFIG_PS) += ps.o
14PROCPS-$(CONFIG_RENICE) += renice.o
Eric Andersen5d38f5b2005-09-12 21:42:48 +000015PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o
Eric Andersen420b2082002-09-17 22:14:58 +000016PROCPS-$(CONFIG_TOP) += top.o
Eric Andersen85208e22002-04-12 12:05:57 +000017PROCPS-$(CONFIG_UPTIME) += uptime.o
Rob Landleyaa872762005-10-28 13:05:12 +000018PROCPS-$(CONFIG_FUSER) += fuser.o
Eric Andersen85208e22002-04-12 12:05:57 +000019
Eric Andersen85208e22002-04-12 12:05:57 +000020
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000021PROCPS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(PROCPS-y))
22PROCPS_SRC-a:=$(wildcard $(srcdir)/*.c)
23APPLET_SRC-y+=$(PROCPS_SRC-y)
24APPLET_SRC-a+=$(PROCPS_SRC-a)
25
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000026procps_OBJ:= $(patsubst %,$(objdir)/%,$(PROCPS-y))
Eric Andersen85208e22002-04-12 12:05:57 +000027
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000028$(procps_OBJ): $(objdir)/%.o: $(srcdir)/%.c
29$(objdir)/procps.a: $(procps_OBJ)
30libraries-y:=$(libraries-y) $(objdir)/procps.a
31