blob: 83f77be9018b5666b3a5351e6c26d3a1a27f7105 [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
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +00007SYSKLOGD_AR:=sysklogd.a
8ifndef $(SYSKLOGD_DIR)
9SYSKLOGD_DIR:=$(top_builddir)/sysklogd/
10endif
11srcdir=$(top_srcdir)/sysklogd
Eric Andersen85208e22002-04-12 12:05:57 +000012
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000013SYSKLOGD-y:=
Eric Andersen85208e22002-04-12 12:05:57 +000014SYSKLOGD-$(CONFIG_KLOGD) += klogd.o
15SYSKLOGD-$(CONFIG_LOGGER) += logger.o
16SYSKLOGD-$(CONFIG_LOGREAD) += logread.o
17SYSKLOGD-$(CONFIG_SYSLOGD) += syslogd.o
18
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000019ifneq ($(strip $(SYSKLOGD-y)),)
20libraries-y+=$(SYSKLOGD_DIR)$(SYSKLOGD_AR)
21endif
Eric Andersen85208e22002-04-12 12:05:57 +000022
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000023SYSKLOGD_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SYSKLOGD-y))
24SYSKLOGD_SRC-a:=$(wildcard $(srcdir)/*.c)
25APPLET_SRC-y+=$(SYSKLOGD_SRC-y)
26APPLET_SRC-a+=$(SYSKLOGD_SRC-a)
27
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000028$(SYSKLOGD_DIR)$(SYSKLOGD_AR): $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y))
29 $(do_ar)
Eric Andersen85208e22002-04-12 12:05:57 +000030
Bernhard Reutner-Fischerdf100942006-03-13 19:04:00 +000031$(SYSKLOGD_DIR)%.o: $(srcdir)/%.c
32 $(compile.c)