Makefile.in 1007 B

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