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
|
|
|
|
2004-10-08 13:16:08 +05:30
|
|
|
srcdir=$(top_srcdir)/miscutils
|
2006-03-02 04:24:48 +05:30
|
|
|
objdir=$(top_builddir)/miscutils
|
2002-04-12 17:35:57 +05:30
|
|
|
|
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-02 04:24:48 +05:30
|
|
|
needlibm-y:=
|
|
|
|
needlibm-$(CONFIG_DC) := y
|
|
|
|
ifeq ($(needlibm-m),y)
|
|
|
|
needlibm-y:=y
|
|
|
|
endif
|
|
|
|
ifeq ($(needlibm-y),y)
|
|
|
|
LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm
|
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-02 04:24:48 +05:30
|
|
|
miscutils_OBJ:= $(patsubst %,$(objdir)/%,$(MISCUTILS-y))
|
2002-04-12 17:35:57 +05:30
|
|
|
|