blob: e431f48ef5014b49c0816cb9a5d055d97a353011 [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
Eric Andersen7daa0762004-10-08 07:46:08 +00007srcdir=$(top_srcdir)/miscutils
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +00008objdir=$(top_builddir)/miscutils
Eric Andersen85208e22002-04-12 12:05:57 +00009
Mike Frysinger55e2cf62005-05-11 00:25:47 +000010MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
11MISCUTILS-$(CONFIG_CROND) += crond.o
12MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
Paul Fox79c142d2005-08-01 16:04:40 +000013MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o
Mike Frysinger55e2cf62005-05-11 00:25:47 +000014MISCUTILS-$(CONFIG_DC) += dc.o
15MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o
16MISCUTILS-$(CONFIG_EJECT) += eject.o
17MISCUTILS-$(CONFIG_HDPARM) += hdparm.o
18MISCUTILS-$(CONFIG_LAST) += last.o
"Vladimir N. Oleynik"4a5d95d2005-09-19 16:18:46 +000019MISCUTILS-${CONFIG_LESS} += less.o
Mike Frysinger55e2cf62005-05-11 00:25:47 +000020MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
"Vladimir N. Oleynik"4a5d95d2005-09-19 16:18:46 +000021MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o
Mike Frysinger55e2cf62005-05-11 00:25:47 +000022MISCUTILS-$(CONFIG_MT) += mt.o
Rob Landley51be57e2006-02-23 00:42:25 +000023MISCUTILS-$(CONFIG_RUNLEVEL) += runlevel.o
Mike Frysinger55e2cf62005-05-11 00:25:47 +000024MISCUTILS-$(CONFIG_RX) += rx.o
Paul Fox42403642005-08-01 22:52:09 +000025MISCUTILS-$(CONFIG_SETSID) += setsid.o
Mike Frysinger55e2cf62005-05-11 00:25:47 +000026MISCUTILS-$(CONFIG_STRINGS) += strings.o
27MISCUTILS-$(CONFIG_TIME) += time.o
28MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
Eric Andersen85208e22002-04-12 12:05:57 +000029
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000030needlibm-y:=
31needlibm-$(CONFIG_DC) := y
32ifeq ($(needlibm-m),y)
33needlibm-y:=y
34endif
35ifeq ($(needlibm-y),y)
36 LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm
Rob Landleyd6e14d82006-02-21 19:11:35 +000037endif
Eric Andersen85208e22002-04-12 12:05:57 +000038
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000039MISCUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(MISCUTILS-y))
40MISCUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
41APPLET_SRC-y+=$(MISCUTILS_SRC-y)
42APPLET_SRC-a+=$(MISCUTILS_SRC-a)
43
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000044miscutils_OBJ:= $(patsubst %,$(objdir)/%,$(MISCUTILS-y))
Eric Andersen2053a8c2003-10-22 22:29:08 +000045