3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
7 srcdir:=$(top_srcdir)/console-tools
8 objdir:=$(top_builddir)/console-tools
10 CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o
11 CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o
12 CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o
13 CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o
14 CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o
15 CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o
16 CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o
17 CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o
18 CONSOLETOOLS-$(CONFIG_RESET) += reset.o
19 CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o
22 CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y))
23 CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c)
24 APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y)
25 APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a)
27 console-tools_OBJ:= $(patsubst %,$(objdir)/%,$(CONSOLETOOLS-y))
29 $(console-tools_OBJ): $(objdir)/%.o: $(srcdir)/%.c
30 $(objdir)/console-tools.a: $(console-tools_OBJ)
31 libraries-y:=$(libraries-y) $(objdir)/console-tools.a