2002-04-12 12:05:57 +00:00
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-04-12 12:05:57 +00:00
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2006-03-13 19:04:00 +00:00
|
|
|
MISCUTILS_AR:=miscutils.a
|
|
|
|
ifndef $(MISCUTILS_DIR)
|
|
|
|
MISCUTILS_DIR:=$(top_builddir)/miscutils/
|
|
|
|
endif
|
|
|
|
srcdir=$(top_srcdir)/miscutils
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2006-03-13 19:04:00 +00:00
|
|
|
MISCUTILS-y:=
|
2005-05-11 00:25:47 +00:00
|
|
|
MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
|
|
|
|
MISCUTILS-$(CONFIG_CROND) += crond.o
|
|
|
|
MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
|
2005-08-01 16:04:40 +00:00
|
|
|
MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o
|
2005-05-11 00:25:47 +00:00
|
|
|
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
|
2006-08-21 17:42:03 +00:00
|
|
|
MISCUTILS-$(CONFIG_LESS) += less.o
|
2005-05-11 00:25:47 +00:00
|
|
|
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
|
2005-09-19 16:18:46 +00:00
|
|
|
MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o
|
2005-05-11 00:25:47 +00:00
|
|
|
MISCUTILS-$(CONFIG_MT) += mt.o
|
2006-08-20 22:12:18 +00:00
|
|
|
MISCUTILS-$(CONFIG_READAHEAD) += readahead.o
|
2006-02-23 00:42:25 +00:00
|
|
|
MISCUTILS-$(CONFIG_RUNLEVEL) += runlevel.o
|
2005-05-11 00:25:47 +00:00
|
|
|
MISCUTILS-$(CONFIG_RX) += rx.o
|
2005-08-01 22:52:09 +00:00
|
|
|
MISCUTILS-$(CONFIG_SETSID) += setsid.o
|
2005-05-11 00:25:47 +00:00
|
|
|
MISCUTILS-$(CONFIG_STRINGS) += strings.o
|
|
|
|
MISCUTILS-$(CONFIG_TIME) += time.o
|
|
|
|
MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2006-03-13 19:04:00 +00:00
|
|
|
ifneq ($(strip $(MISCUTILS-y)),)
|
|
|
|
libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
|
2006-02-21 19:11:35 +00:00
|
|
|
endif
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2006-01-15 14:04:57 +00:00
|
|
|
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-13 19:04:00 +00:00
|
|
|
needlibm-y:=
|
|
|
|
needlibm-$(CONFIG_DC) := y
|
|
|
|
|
|
|
|
ifeq ($(needlibm-y),y)
|
|
|
|
LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
|
|
|
|
endif
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2006-03-13 19:04:00 +00:00
|
|
|
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
|
|
|
$(do_ar)
|
2006-03-09 09:03:37 +00:00
|
|
|
|
2006-03-13 19:04:00 +00:00
|
|
|
$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(compile.c)
|