blob: 42fc590cdc59e7990f3fa7fbb95ff948ee1d95d1 [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
7CONSOLETOOLS_AR:=console-tools.a
8ifndef $(CONSOLETOOLS_DIR)
Eric Andersen7daa0762004-10-08 07:46:08 +00009CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/
Eric Andersen85208e22002-04-12 12:05:57 +000010endif
Eric Andersen7daa0762004-10-08 07:46:08 +000011srcdir=$(top_srcdir)/console-tools
Eric Andersen85208e22002-04-12 12:05:57 +000012
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000013CONSOLETOOLS-y:=
14CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o
15CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o
16CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o
17CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o
18CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o
19CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o
20CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o
21CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o
22CONSOLETOOLS-$(CONFIG_RESET) += reset.o
23CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o
Eric Andersen85208e22002-04-12 12:05:57 +000024
25libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000026CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y))
27CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c)
28APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y)
29APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a)
Eric Andersen85208e22002-04-12 12:05:57 +000030
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000031$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y))
Mike Frysingerb38673f2006-02-02 01:41:53 +000032 $(do_ar)
Eric Andersen85208e22002-04-12 12:05:57 +000033
Eric Andersen7daa0762004-10-08 07:46:08 +000034$(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
Mike Frysingerb38673f2006-02-02 01:41:53 +000035 $(compile.c)