[821] | 1 | # Makefile for busybox
|
---|
| 2 | #
|
---|
| 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
---|
| 4 | #
|
---|
| 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball.
|
---|
| 6 |
|
---|
| 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
|
---|
| 12 |
|
---|
| 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
|
---|
| 24 | CONSOLETOOLS-$(CONFIG_SETLOGCONS) += setlogcons.o
|
---|
| 25 |
|
---|
| 26 | ifneq ($(strip $(CONSOLETOOLS-y)),)
|
---|
| 27 | libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
|
---|
| 28 | endif
|
---|
| 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)
|
---|
| 33 |
|
---|
| 34 | $(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y))
|
---|
| 35 | $(do_ar)
|
---|
| 36 |
|
---|
| 37 | $(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
|
---|
| 38 | $(compile.c)
|
---|