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 | |
| 13 | CONSOLETOOLS_DIR-y:= |
| 14 | CONSOLETOOLS_DIR-$(CONFIG_CHVT) += chvt.o |
| 15 | CONSOLETOOLS_DIR-$(CONFIG_CLEAR) += clear.o |
| 16 | CONSOLETOOLS_DIR-$(CONFIG_DEALLOCVT) += deallocvt.o |
| 17 | CONSOLETOOLS_DIR-$(CONFIG_DUMPKMAP) += dumpkmap.o |
Paul Fox | fc2256a | 2005-08-01 18:12:30 +0000 | [diff] [blame] | 18 | CONSOLETOOLS_DIR-$(CONFIG_SETCONSOLE) += setconsole.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 19 | CONSOLETOOLS_DIR-$(CONFIG_LOADFONT) += loadfont.o |
| 20 | CONSOLETOOLS_DIR-$(CONFIG_LOADKMAP) += loadkmap.o |
Glenn L McGrath | ec0c48c | 2002-09-16 03:16:06 +0000 | [diff] [blame] | 21 | CONSOLETOOLS_DIR-$(CONFIG_OPENVT) += openvt.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 22 | CONSOLETOOLS_DIR-$(CONFIG_RESET) += reset.o |
| 23 | CONSOLETOOLS_DIR-$(CONFIG_SETKEYCODES) += setkeycodes.o |
| 24 | |
| 25 | libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR) |
| 26 | |
| 27 | $(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS_DIR-y)) |
Mike Frysinger | 4d00896 | 2005-07-27 01:09:24 +0000 | [diff] [blame] | 28 | $(AR) $(ARFLAGS) $@ $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS_DIR-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 29 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 30 | $(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c |
| 31 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 32 | |