Makefile.in 971 B

12345678910111213141516171819202122232425262728
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. # Turn on malloc debugging if requested
  8. ifeq ($(UCLIBC_MALLOC_DEBUGGING),y)
  9. CFLAGS += -D__MALLOC_DEBUGGING
  10. endif
  11. # calloc.c can be found at uClibc/libc/stdlib/calloc.c
  12. # valloc.c can be found at uClibc/libc/stdlib/valloc.c
  13. CSRC := malloc.c calloc.c realloc.c free.c memalign.c mallopt.c mallinfo.c
  14. STDLIB_MALLOC_STANDARD_DIR := $(top_srcdir)libc/stdlib/malloc-standard
  15. STDLIB_MALLOC_STANDARD_OUT := $(top_builddir)libc/stdlib/malloc-standard
  16. STDLIB_MALLOC_STANDARD_SRC := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_DIR)/%.c,$(CSRC))
  17. STDLIB_MALLOC_STANDARD_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_OUT)/%.o,$(CSRC))
  18. libc-$(MALLOC_STANDARD) += $(STDLIB_MALLOC_STANDARD_OBJ)
  19. objclean-y += stdlib_malloc_standard_objclean
  20. stdlib_malloc_standard_objclean:
  21. $(RM) $(STDLIB_MALLOC_STANDARD_OUT)/*.{o,os}