2002-04-12 17:35:57 +05:30
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-04-12 17:35:57 +05:30
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
MISCUTILS_AR:=miscutils.a
|
|
|
|
ifndef $(MISCUTILS_DIR)
|
|
|
|
MISCUTILS_DIR:=$(top_builddir)/miscutils/
|
|
|
|
endif
|
|
|
|
srcdir=$(top_srcdir)/miscutils
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
MISCUTILS-y:=
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
|
|
|
|
MISCUTILS-$(CONFIG_CROND) += crond.o
|
|
|
|
MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
|
2005-08-01 21:34:40 +05:30
|
|
|
MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_DC) += dc.o
|
|
|
|
MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o
|
|
|
|
MISCUTILS-$(CONFIG_EJECT) += eject.o
|
|
|
|
MISCUTILS-$(CONFIG_HDPARM) += hdparm.o
|
|
|
|
MISCUTILS-$(CONFIG_LAST) += last.o
|
2005-09-19 21:48:46 +05:30
|
|
|
MISCUTILS-${CONFIG_LESS} += less.o
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
|
2005-09-19 21:48:46 +05:30
|
|
|
MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_MT) += mt.o
|
2006-02-23 06:12:25 +05:30
|
|
|
MISCUTILS-$(CONFIG_RUNLEVEL) += runlevel.o
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_RX) += rx.o
|
2005-08-02 04:22:09 +05:30
|
|
|
MISCUTILS-$(CONFIG_SETSID) += setsid.o
|
2005-05-11 05:55:47 +05:30
|
|
|
MISCUTILS-$(CONFIG_STRINGS) += strings.o
|
|
|
|
MISCUTILS-$(CONFIG_TIME) += time.o
|
|
|
|
MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
ifneq ($(strip $(MISCUTILS-y)),)
|
|
|
|
libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
|
2006-02-22 00:41:35 +05:30
|
|
|
endif
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-01-15 19:34:57 +05:30
|
|
|
MISCUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(MISCUTILS-y))
|
|
|
|
MISCUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
|
|
|
|
APPLET_SRC-y+=$(MISCUTILS_SRC-y)
|
|
|
|
APPLET_SRC-a+=$(MISCUTILS_SRC-a)
|
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
needlibm-y:=
|
|
|
|
needlibm-$(CONFIG_DC) := y
|
|
|
|
|
|
|
|
ifeq ($(needlibm-y),y)
|
|
|
|
LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
|
|
|
|
endif
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
|
|
|
$(do_ar)
|
2006-03-09 14:33:37 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(compile.c)
|