2001-12-23 06:47:58 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
# hack: putting $(newlib_basedir)/libm/common into INCLUDES forces automake
|
|
|
|
# to output a definition for newlib_basedir.
|
|
|
|
INCLUDES = -I $(newlib_basedir)/libm/common $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2006-04-12 03:02:16 +08:00
|
|
|
AM_CCASFLAGS = $(INCLUDES)
|
|
|
|
|
2001-12-23 06:47:58 +08:00
|
|
|
noinst_LIBRARIES = lib.a
|
|
|
|
|
|
|
|
lib_a_SOURCES = setjmp.S
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
|
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2001-12-23 06:47:58 +08:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I ../../..
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
2002-02-02 02:00:41 +08:00
|
|
|
|
2006-09-08 01:32:19 +08:00
|
|
|
lib_a_LIBADD = $(lpfx)malloc.o \
|
|
|
|
$(lpfx)free.o \
|
|
|
|
$(lpfx)realloc.o \
|
|
|
|
$(lpfx)calloc.o \
|
|
|
|
$(lpfx)cfree.o \
|
|
|
|
$(lpfx)malign.o \
|
|
|
|
$(lpfx)valloc.o \
|
|
|
|
$(lpfx)pvalloc.o \
|
|
|
|
$(lpfx)mallinfo.o \
|
|
|
|
$(lpfx)mallstats.o \
|
|
|
|
$(lpfx)msize.o \
|
|
|
|
$(lpfx)mallopt.o \
|
|
|
|
$(lpfx)mallocr.o \
|
|
|
|
$(lpfx)freer.o \
|
|
|
|
$(lpfx)reallocr.o \
|
|
|
|
$(lpfx)callocr.o
|
|
|
|
|
|
|
|
lib_a_DEPENDENCIES = $(lib_a_LIBADD)
|
2002-02-02 02:00:41 +08:00
|
|
|
|
|
|
|
MALLOC_COMPILE = $(COMPILE)
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)malloc.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)free.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)realloc.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)calloc.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)cfree.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)malign.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)valloc.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)pvalloc.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)mallinfo.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)mallstats.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)msize.o: tiny-malloc.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/tiny-malloc.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)mallopt.o: mallocr.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/mallocr.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)mallocr.o: mallocr.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/mallocr.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)freer.o: mallocr.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/mallocr.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)reallocr.o: mallocr.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/mallocr.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)callocr.o: mallocr.c
|
2002-02-02 02:00:41 +08:00
|
|
|
$(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/mallocr.c -o $@
|
|
|
|
|