summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/Makefile.in
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
commita80fc77b658a7883df95ac41ad83ac9ff7c8ff07 (patch)
tree3edbcb812b876e0ba1424b229d50e9c04a2b0d4a /libc/stdlib/malloc/Makefile.in
parent7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (diff)
All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
Diffstat (limited to 'libc/stdlib/malloc/Makefile.in')
-rw-r--r--libc/stdlib/malloc/Makefile.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/libc/stdlib/malloc/Makefile.in b/libc/stdlib/malloc/Makefile.in
new file mode 100644
index 000000000..6a0e3cee3
--- /dev/null
+++ b/libc/stdlib/malloc/Makefile.in
@@ -0,0 +1,42 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2002-2003 NEC Electronics Corporation
+# Copyright (C) 2002-2003 Miles Bader <miles@gnu.org>
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:= malloc.c calloc.c free.c realloc.c memalign.c \
+ heap_alloc.c heap_alloc_at.c heap_free.c
+
+# Turn on malloc debugging if requested
+ifeq ($(UCLIBC_MALLOC_DEBUGGING),y)
+CSRC+=malloc_debug.c heap_debug.c
+CFLAGS+=-DMALLOC_DEBUGGING -DHEAP_DEBUGGING
+ifeq ($(UCLIBC_UCLINUX_BROKEN_MUNMAP),y)
+CFLAGS+=-DMALLOC_MMB_DEBUGGING
+endif
+endif
+
+STDLIB_MALLOC_DIR:=$(top_srcdir)libc/stdlib/malloc
+STDLIB_MALLOC_OUT:=$(top_builddir)libc/stdlib/malloc
+
+STDLIB_MALLOC_SRC:=$(patsubst %.c,$(STDLIB_MALLOC_DIR)/%.c,$(CSRC))
+STDLIB_MALLOC_OBJ:=$(patsubst %.c,$(STDLIB_MALLOC_OUT)/%.o,$(CSRC))
+
+libc-a-$(MALLOC)+=$(STDLIB_MALLOC_OBJ)
+libc-a-pic-$(MALLOC)+=$(STDLIB_MALLOC_OBJ:.o=.os)
+libc-so-$(MALLOC)+=$(STDLIB_MALLOC_OBJ:.o=.os)
+
+#libc-multi-$(MALLOC)+=$(STDLIB_MALLOC_SRC)
+libc-nomulti-$(MALLOC)+=$(STDLIB_MALLOC_OBJ)
+
+objclean-y+=stdlib_malloc_objclean
+
+stdlib_malloc_objclean:
+ $(RM) $(STDLIB_MALLOC_OUT)/*.{o,os}
+
+malloc.o free.o realloc.o memalign.o: malloc.h
+# Depend on uClinux_config.h to cache changes in __UCLIBC_MALLOC_DEBUGGING__
+$(STDLIB_MALLOC_OBJ): heap.h $(top_builddir)include/bits/uClibc_config.h