Makefile.in 917 B

12345678910111213141516171819202122232425
  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/stdlib/malloc-standard
  8. # calloc.c can be found at uClibc/libc/stdlib/calloc.c
  9. # valloc.c can be found at uClibc/libc/stdlib/valloc.c
  10. CSRC := malloc.c calloc.c realloc.c free.c memalign.c mallopt.c mallinfo.c
  11. STDLIB_MALLOC_STANDARD_DIR := $(top_srcdir)libc/stdlib/malloc-standard
  12. STDLIB_MALLOC_STANDARD_OUT := $(top_builddir)libc/stdlib/malloc-standard
  13. STDLIB_MALLOC_STANDARD_SRC := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_DIR)/%.c,$(CSRC))
  14. STDLIB_MALLOC_STANDARD_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_OUT)/%.o,$(CSRC))
  15. libc-$(MALLOC_STANDARD) += $(STDLIB_MALLOC_STANDARD_OBJ)
  16. objclean-y += CLEAN_libc/stdlib/malloc-standard
  17. CLEAN_libc/stdlib/malloc-standard:
  18. $(do_rm) $(addprefix $(STDLIB_MALLOC_STANDARD_OUT)/*., o os)