hush/procps/Makefile.in

38 lines
954 B
Makefile
Raw Normal View History

# Makefile for busybox
#
2005-09-24 06:01:57 +00:00
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
#
2005-09-24 06:01:57 +00:00
# Licensed under the GPL v2, see the file LICENSE in this tarball.
2006-03-13 19:04:00 +00:00
PROCPS_AR:=procps.a
ifndef $(PROCPS_DIR)
PROCPS_DIR:=$(top_builddir)/procps/
endif
srcdir=$(top_srcdir)/procps
2006-03-13 19:04:00 +00:00
PROCPS-y:=
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
PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o
2002-09-17 22:14:58 +00:00
PROCPS-$(CONFIG_TOP) += top.o
PROCPS-$(CONFIG_UPTIME) += uptime.o
PROCPS-$(CONFIG_FUSER) += fuser.o
2006-03-13 19:04:00 +00:00
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)
2006-03-13 19:04:00 +00:00
$(PROCPS_DIR)$(PROCPS_AR): $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
$(do_ar)
2006-03-13 19:04:00 +00:00
$(PROCPS_DIR)%.o: $(srcdir)/%.c
$(compile.c)