Makefile.in 856 B

1234567891011121314151617181920212223242526
  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-simple
  8. STDLIB_MALLOC_SIMPLE_DIR := $(top_srcdir)libc/stdlib/malloc-simple
  9. STDLIB_MALLOC_SIMPLE_OUT := $(top_builddir)libc/stdlib/malloc-simple
  10. CSRC-y := $(notdir $(wildcard $(STDLIB_MALLOC_SIMPLE_DIR)/*.c))
  11. # multi source alloc.c
  12. CSRC- := alloc.c
  13. CSRC-y := $(filter-out $(CSRC-),$(CSRC-y))
  14. STDLIB_MALLOC_SIMPLE_SRC := $(patsubst %.c,$(STDLIB_MALLOC_SIMPLE_DIR)/%.c,$(CSRC-y))
  15. STDLIB_MALLOC_SIMPLE_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_SIMPLE_OUT)/%.o,$(CSRC-y))
  16. libc-$(MALLOC_SIMPLE) += $(STDLIB_MALLOC_SIMPLE_OBJ)
  17. objclean-y += CLEAN_libc/stdlib/malloc-simple
  18. CLEAN_libc/stdlib/malloc-simple:
  19. $(do_rm) $(addprefix $(STDLIB_MALLOC_SIMPLE_OUT)/*., o os)