Makefile.in 867 B

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