2002-04-12 12:05:57 +00:00
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-04-12 12:05:57 +00:00
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-04-12 12:05:57 +00:00
|
|
|
|
|
|
|
PROCPS_AR:=procps.a
|
|
|
|
ifndef $(PROCPS_DIR)
|
2004-10-08 07:46:08 +00:00
|
|
|
PROCPS_DIR:=$(top_builddir)/procps/
|
2002-04-12 12:05:57 +00:00
|
|
|
endif
|
2004-10-08 07:46:08 +00:00
|
|
|
srcdir=$(top_srcdir)/procps
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2002-09-30 20:53:38 +00:00
|
|
|
PROCPS-y:=
|
2002-04-12 12:05:57 +00:00
|
|
|
PROCPS-$(CONFIG_FREE) += free.o
|
|
|
|
PROCPS-$(CONFIG_KILL) += kill.o
|
|
|
|
PROCPS-$(CONFIG_PIDOF) += pidof.o
|
|
|
|
PROCPS-$(CONFIG_PS) += ps.o
|
|
|
|
PROCPS-$(CONFIG_RENICE) += renice.o
|
2005-09-12 21:42:48 +00:00
|
|
|
PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o
|
2002-09-17 22:14:58 +00:00
|
|
|
PROCPS-$(CONFIG_TOP) += top.o
|
2002-04-12 12:05:57 +00:00
|
|
|
PROCPS-$(CONFIG_UPTIME) += uptime.o
|
2005-10-28 13:05:12 +00:00
|
|
|
PROCPS-$(CONFIG_FUSER) += fuser.o
|
2002-04-12 12:05:57 +00:00
|
|
|
|
|
|
|
libraries-y+=$(PROCPS_DIR)$(PROCPS_AR)
|
|
|
|
|
|
|
|
$(PROCPS_DIR)$(PROCPS_AR): $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
|
2005-07-27 01:09:24 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2004-10-08 07:46:08 +00:00
|
|
|
$(PROCPS_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
|
|
|
|
|