lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 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 | |
| 8 | subdirs += libc/stdlib/malloc-simple |
| 9 | |
| 10 | STDLIB_MALLOC_SIMPLE_DIR := $(top_srcdir)libc/stdlib/malloc-simple |
| 11 | STDLIB_MALLOC_SIMPLE_OUT := $(top_builddir)libc/stdlib/malloc-simple |
| 12 | |
| 13 | CSRC := $(notdir $(wildcard $(STDLIB_MALLOC_SIMPLE_DIR)/*.c)) |
| 14 | CSRC := $(filter-out alloc.c,$(CSRC)) |
| 15 | |
| 16 | STDLIB_MALLOC_SIMPLE_SRC := $(patsubst %.c,$(STDLIB_MALLOC_SIMPLE_DIR)/%.c,$(CSRC)) |
| 17 | STDLIB_MALLOC_SIMPLE_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_SIMPLE_OUT)/%.o,$(CSRC)) |
| 18 | |
| 19 | libc-$(MALLOC_SIMPLE) += $(STDLIB_MALLOC_SIMPLE_OBJ) |
| 20 | |
| 21 | objclean-y += CLEAN_libc/stdlib/malloc-simple |
| 22 | |
| 23 | CLEAN_libc/stdlib/malloc-simple: |
| 24 | $(do_rm) $(addprefix $(STDLIB_MALLOC_SIMPLE_OUT)/*., o os) |