Makefile.in 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 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-a-$(MALLOC_STANDARD)+=$(STDLIB_MALLOC_STANDARD_OBJ)
  20. libc-a-pic-$(MALLOC_STANDARD)+=$(STDLIB_MALLOC_STANDARD_OBJ:.o=.os)
  21. libc-so-$(MALLOC_STANDARD)+=$(STDLIB_MALLOC_STANDARD_OBJ:.o=.os)
  22. libc-multi-$(MALLOC_STANDARD)+=$(STDLIB_MALLOC_STANDARD_SRC)
  23. objclean-y+=stdlib_malloc_standard_objclean
  24. stdlib_malloc_standard_objclean:
  25. $(RM) $(STDLIB_MALLOC_STANDARD_OUT)/*.{o,os}