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 | |
| 7 | CONSOLETOOLS_AR:=console-tools.a |
| 8 | ifndef $(CONSOLETOOLS_DIR) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 9 | CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/ |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 10 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 11 | srcdir=$(top_srcdir)/console-tools |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 12 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 13 | CONSOLETOOLS-y:= |
| 14 | CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o |
| 15 | CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o |
| 16 | CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o |
| 17 | CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o |
| 18 | CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o |
| 19 | CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o |
| 20 | CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o |
| 21 | CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o |
| 22 | CONSOLETOOLS-$(CONFIG_RESET) += reset.o |
| 23 | CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 24 | |
| 25 | libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 26 | CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y)) |
| 27 | CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 28 | APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y) |
| 29 | APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 30 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 31 | $(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y)) |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 32 | $(do_ar) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 33 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 34 | $(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 35 | $(compile.c) |