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
|
|
|
|
|
|
|
CONSOLETOOLS_AR:=console-tools.a
|
|
|
|
ifndef $(CONSOLETOOLS_DIR)
|
2004-10-08 13:16:08 +05:30
|
|
|
CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/
|
2002-04-12 17:35:57 +05:30
|
|
|
endif
|
2004-10-08 13:16:08 +05:30
|
|
|
srcdir=$(top_srcdir)/console-tools
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-01-15 19:34:57 +05:30
|
|
|
CONSOLETOOLS-y:=
|
|
|
|
CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_RESET) += reset.o
|
|
|
|
CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-02-22 00:41:35 +05:30
|
|
|
ifneq ($(strip $(CONSOLETOOLS-y)),)
|
2002-04-12 17:35:57 +05:30
|
|
|
libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
|
2006-02-22 00:41:35 +05:30
|
|
|
endif
|
2006-01-15 19:34:57 +05:30
|
|
|
CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y))
|
|
|
|
CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c)
|
|
|
|
APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y)
|
|
|
|
APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a)
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-01-15 19:34:57 +05:30
|
|
|
$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y))
|
2006-02-02 07:11:53 +05:30
|
|
|
$(do_ar)
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2004-10-08 13:16:08 +05:30
|
|
|
$(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
|
2006-02-02 07:11:53 +05:30
|
|
|
$(compile.c)
|