Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 7 | srcdir=$(top_srcdir)/miscutils |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame^] | 8 | objdir=$(top_builddir)/miscutils |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 9 | |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 10 | MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o |
| 11 | MISCUTILS-$(CONFIG_CROND) += crond.o |
| 12 | MISCUTILS-$(CONFIG_CRONTAB) += crontab.o |
Paul Fox | 79c142d | 2005-08-01 16:04:40 +0000 | [diff] [blame] | 13 | MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 14 | MISCUTILS-$(CONFIG_DC) += dc.o |
| 15 | MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o |
| 16 | MISCUTILS-$(CONFIG_EJECT) += eject.o |
| 17 | MISCUTILS-$(CONFIG_HDPARM) += hdparm.o |
| 18 | MISCUTILS-$(CONFIG_LAST) += last.o |
"Vladimir N. Oleynik" | 4a5d95d | 2005-09-19 16:18:46 +0000 | [diff] [blame] | 19 | MISCUTILS-${CONFIG_LESS} += less.o |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 20 | MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o |
"Vladimir N. Oleynik" | 4a5d95d | 2005-09-19 16:18:46 +0000 | [diff] [blame] | 21 | MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 22 | MISCUTILS-$(CONFIG_MT) += mt.o |
Rob Landley | 51be57e | 2006-02-23 00:42:25 +0000 | [diff] [blame] | 23 | MISCUTILS-$(CONFIG_RUNLEVEL) += runlevel.o |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 24 | MISCUTILS-$(CONFIG_RX) += rx.o |
Paul Fox | 4240364 | 2005-08-01 22:52:09 +0000 | [diff] [blame] | 25 | MISCUTILS-$(CONFIG_SETSID) += setsid.o |
Mike Frysinger | 55e2cf6 | 2005-05-11 00:25:47 +0000 | [diff] [blame] | 26 | MISCUTILS-$(CONFIG_STRINGS) += strings.o |
| 27 | MISCUTILS-$(CONFIG_TIME) += time.o |
| 28 | MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 29 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame^] | 30 | needlibm-y:= |
| 31 | needlibm-$(CONFIG_DC) := y |
| 32 | ifeq ($(needlibm-m),y) |
| 33 | needlibm-y:=y |
| 34 | endif |
| 35 | ifeq ($(needlibm-y),y) |
| 36 | LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm |
Rob Landley | d6e14d8 | 2006-02-21 19:11:35 +0000 | [diff] [blame] | 37 | endif |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 38 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 39 | MISCUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(MISCUTILS-y)) |
| 40 | MISCUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 41 | APPLET_SRC-y+=$(MISCUTILS_SRC-y) |
| 42 | APPLET_SRC-a+=$(MISCUTILS_SRC-a) |
| 43 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame^] | 44 | miscutils_OBJ:= $(patsubst %,$(objdir)/%,$(MISCUTILS-y)) |
Eric Andersen | 2053a8c | 2003-10-22 22:29:08 +0000 | [diff] [blame] | 45 | |