blob: f26f4a1158b5a9f016b76c8cd8c05df3ef1dc355 [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
7SYSKLOGD_AR:=sysklogd.a
8ifndef $(SYSKLOGD_DIR)
Eric Andersen7daa0762004-10-08 07:46:08 +00009SYSKLOGD_DIR:=$(top_builddir)/sysklogd/
Eric Andersen85208e22002-04-12 12:05:57 +000010endif
Eric Andersen7daa0762004-10-08 07:46:08 +000011srcdir=$(top_srcdir)/sysklogd
Eric Andersen85208e22002-04-12 12:05:57 +000012
13SYSKLOGD-:=
14SYSKLOGD-$(CONFIG_KLOGD) += klogd.o
15SYSKLOGD-$(CONFIG_LOGGER) += logger.o
16SYSKLOGD-$(CONFIG_LOGREAD) += logread.o
17SYSKLOGD-$(CONFIG_SYSLOGD) += syslogd.o
18
19libraries-y+=$(SYSKLOGD_DIR)$(SYSKLOGD_AR)
20
21$(SYSKLOGD_DIR)$(SYSKLOGD_AR): $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y))
Mike Frysinger4d008962005-07-27 01:09:24 +000022 $(AR) $(ARFLAGS) $@ $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y))
Eric Andersen85208e22002-04-12 12:05:57 +000023
Eric Andersen7daa0762004-10-08 07:46:08 +000024$(SYSKLOGD_DIR)%.o: $(srcdir)/%.c
25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
26