3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 subdirs += libc/misc/error
11 ifeq ($(UCLIBC_HAS_BSD_ERR),y)
14 ifeq ($(UCLIBC_HAS_GNU_ERROR),y)
18 MISC_ERROR_DIR := $(top_srcdir)libc/misc/error
19 MISC_ERROR_OUT := $(top_builddir)libc/misc/error
21 MISC_ERROR_SRC := $(patsubst %.c,$(MISC_ERROR_DIR)/%.c,$(CSRC))
22 MISC_ERROR_OBJ := $(patsubst %.c,$(MISC_ERROR_OUT)/%.o,$(CSRC))
24 libc-y += $(MISC_ERROR_OBJ)
26 objclean-y += CLEAN_libc/misc/error
28 CLEAN_libc/misc/error:
29 $(do_rm) $(addprefix $(MISC_ERROR_OUT)/*., o os)