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
|
|
|
|
|
|
|
MISCUTILS_AR:=miscutils.a
|
|
|
|
ifndef $(MISCUTILS_DIR)
|
2004-10-08 13:16:08 +05:30
|
|
|
MISCUTILS_DIR:=$(top_builddir)/miscutils/
|
2002-04-12 17:35:57 +05:30
|
|
|
endif
|
2004-10-08 13:16:08 +05:30
|
|
|
srcdir=$(top_srcdir)/miscutils
|
2002-04-12 17:35:57 +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
|
2005-10-29 02:07:03 +05:30
|
|
|
MISCUTILS-$(BB_APPLET_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
|
|
|
|
|
|
|
libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
|
|
|
|
|
2003-10-23 03:59:08 +05:30
|
|
|
needlibm-y:=
|
|
|
|
needlibm-$(CONFIG_DC) := y
|
|
|
|
|
|
|
|
ifeq ($(needlibm-y),y)
|
|
|
|
LIBRARIES += -lm
|
|
|
|
endif
|
|
|
|
|
2002-04-12 17:35:57 +05:30
|
|
|
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
2005-07-27 06:39:24 +05:30
|
|
|
$(AR) $(ARFLAGS) $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2004-10-08 13:16:08 +05:30
|
|
|
$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
|
|
|
|
|