blob: 46cf524be28f3caa47cff79b4a5f5db035f9e622 [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
13CONSOLETOOLS_DIR-y:=
14CONSOLETOOLS_DIR-$(CONFIG_CHVT) += chvt.o
15CONSOLETOOLS_DIR-$(CONFIG_CLEAR) += clear.o
16CONSOLETOOLS_DIR-$(CONFIG_DEALLOCVT) += deallocvt.o
17CONSOLETOOLS_DIR-$(CONFIG_DUMPKMAP) += dumpkmap.o
Paul Foxfc2256a2005-08-01 18:12:30 +000018CONSOLETOOLS_DIR-$(CONFIG_SETCONSOLE) += setconsole.o
Eric Andersen85208e22002-04-12 12:05:57 +000019CONSOLETOOLS_DIR-$(CONFIG_LOADFONT) += loadfont.o
20CONSOLETOOLS_DIR-$(CONFIG_LOADKMAP) += loadkmap.o
Glenn L McGrathec0c48c2002-09-16 03:16:06 +000021CONSOLETOOLS_DIR-$(CONFIG_OPENVT) += openvt.o
Eric Andersen85208e22002-04-12 12:05:57 +000022CONSOLETOOLS_DIR-$(CONFIG_RESET) += reset.o
23CONSOLETOOLS_DIR-$(CONFIG_SETKEYCODES) += setkeycodes.o
24
25libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
26
27$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS_DIR-y))
Mike Frysinger4d008962005-07-27 01:09:24 +000028 $(AR) $(ARFLAGS) $@ $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS_DIR-y))
Eric Andersen85208e22002-04-12 12:05:57 +000029
Eric Andersen7daa0762004-10-08 07:46:08 +000030$(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
31 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
32