summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-standard/Makefile.in
blob: 7da7fe1dfa7462e4699a23ba0057f6a1a3183bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Makefile for uClibc
#
# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

subdirs += libc/stdlib/malloc-standard

# calloc.c can be found at uClibc/libc/stdlib/calloc.c
# valloc.c can be found at uClibc/libc/stdlib/valloc.c
CSRC := malloc.c calloc.c realloc.c free.c memalign.c mallopt.c mallinfo.c

STDLIB_MALLOC_STANDARD_DIR := $(top_srcdir)libc/stdlib/malloc-standard
STDLIB_MALLOC_STANDARD_OUT := $(top_builddir)libc/stdlib/malloc-standard

STDLIB_MALLOC_STANDARD_SRC := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_DIR)/%.c,$(CSRC))
STDLIB_MALLOC_STANDARD_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_OUT)/%.o,$(CSRC))

libc-$(MALLOC_STANDARD) += $(STDLIB_MALLOC_STANDARD_OBJ)

objclean-y += CLEAN_libc/stdlib/malloc-standard

CLEAN_libc/stdlib/malloc-standard:
	$(do_rm) $(addprefix $(STDLIB_MALLOC_STANDARD_OUT)/*., o os)