blob: 437bcd0eca695a7af1ebecd2fba6fa498297bfad [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
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +00007CONSOLETOOLS_AR:=console-tools.a
8ifndef $(CONSOLETOOLS_DIR)
9CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/
10endif
11srcdir=$(top_srcdir)/console-tools
Eric Andersen85208e22002-04-12 12:05:57 +000012
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000013CONSOLETOOLS-y:=
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000014CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000015CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000016CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000017CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000018CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000019CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o
20CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o
21CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o
22CONSOLETOOLS-$(CONFIG_RESET) += reset.o
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000023CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o
Rob Landley87848d92006-03-27 23:23:43 +000024CONSOLETOOLS-$(CONFIG_SETLOGCONS) += setlogcons.o
Eric Andersen85208e22002-04-12 12:05:57 +000025
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000026ifneq ($(strip $(CONSOLETOOLS-y)),)
27libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
28endif
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000029CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y))
30CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c)
31APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y)
32APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a)
Eric Andersen85208e22002-04-12 12:05:57 +000033
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000034$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y))
35 $(do_ar)
Eric Andersen85208e22002-04-12 12:05:57 +000036
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000037$(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
38 $(compile.c)