Makefile.in 663 B

1234567891011121314151617181920212223242526272829
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += libc/misc/error
  8. CSRC :=
  9. ifeq ($(UCLIBC_HAS_BSD_ERR),y)
  10. CSRC += err.c
  11. endif
  12. ifeq ($(UCLIBC_HAS_GNU_ERROR),y)
  13. CSRC += error.c
  14. endif
  15. MISC_ERROR_DIR := $(top_srcdir)libc/misc/error
  16. MISC_ERROR_OUT := $(top_builddir)libc/misc/error
  17. MISC_ERROR_SRC := $(patsubst %.c,$(MISC_ERROR_DIR)/%.c,$(CSRC))
  18. MISC_ERROR_OBJ := $(patsubst %.c,$(MISC_ERROR_OUT)/%.o,$(CSRC))
  19. libc-y += $(MISC_ERROR_OBJ)
  20. objclean-y += misc_error_clean
  21. misc_error_clean:
  22. $(do_rm) $(addprefix $(MISC_ERROR_OUT)/*., o os)