Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 7 | CONSOLETOOLS_AR:=console-tools.a |
| 8 | ifndef $(CONSOLETOOLS_DIR) |
| 9 | CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/ |
| 10 | endif |
| 11 | srcdir=$(top_srcdir)/console-tools |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 12 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 13 | CONSOLETOOLS-y:= |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 14 | CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 15 | CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 16 | CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 17 | CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 18 | CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 19 | CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o |
| 20 | CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o |
| 21 | CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o |
| 22 | CONSOLETOOLS-$(CONFIG_RESET) += reset.o |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 23 | CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o |
Rob Landley | 87848d9 | 2006-03-27 23:23:43 +0000 | [diff] [blame] | 24 | CONSOLETOOLS-$(CONFIG_SETLOGCONS) += setlogcons.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 25 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 26 | ifneq ($(strip $(CONSOLETOOLS-y)),) |
| 27 | libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR) |
| 28 | endif |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 29 | CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y)) |
| 30 | CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 31 | APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y) |
| 32 | APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 33 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 34 | $(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y)) |
| 35 | $(do_ar) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 36 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 37 | $(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c |
| 38 | $(compile.c) |