diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-13 23:50:11 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-13 23:50:11 +0000 |
commit | 2e1a71756e754ada402efe9f5e2d6378dc11e496 (patch) | |
tree | 7df86f70bc78f4f8b0bcef05c1a4d677d8fc400f /newlib/libc/stdlib/Makefile.am | |
parent | b92591a1fc53f2d5c42faaf438f697006bf63a82 (diff) | |
download | cygnal-2e1a71756e754ada402efe9f5e2d6378dc11e496.tar.gz cygnal-2e1a71756e754ada402efe9f5e2d6378dc11e496.tar.bz2 cygnal-2e1a71756e754ada402efe9f5e2d6378dc11e496.zip |
* Makefile.shared: New file.
* libc/sys/linux/shared.ld: New file.
* libm/machine/*: New files.
* libm/machine/i386/*: New files.
* Makefile.am: Add libtool support. Change math and mathfp
references to variables.
* configure.host: Add variables for libtool support. Add
libm_machine_dir variable.
* configure.in: Add objectlist variables, for libtool
support. Add CC_FOR_BUILD tests.
* libc/Makefile.am: Add libtool support. Change crt0.o
reference to be a variable reference.
* libc/configure.in: Add libtool support. Change sublib
names to be lib${subdir}.la when using libtool.
* libc/ctype/Makefile.am: Add libtool support.
* libc/errno/Makefile.am: Likewise.
* libc/locale/Makefile.am: Likewise.
* libc/machine/Makefile.am: Likewise.
* libc/machine/configure.in: Likewise.
* libc/machine/i386/Makefile.am: Likewise.
* libc/machine/i386/configure.in: Likewise.
* libc/misc/Makefile.am: Likewise.
* libc/posix/Makefile.am: Likewise.
* libc/reent/Makefile.am: Likewise.
* libc/signal/Makefile.am: Likewise.
* libc/stdio/Makefile.am: Likewise.
* libc/stdlib/Makefile.am: Likewise.
* libc/string/Makefile.am: Likewise.
* libc/sys/Makefile.am: Likewise.
* libc/sys/configure.in: Likewise.
* libc/sys/linux/Makefile.am: Add libtool support. Change
awk reference to a variable reference. Change signal.h
reference to a variable reference.
* libc/sys/linux/configure.in: Add libtool support.
* libc/syscalls/Makefile.am: Likewise.
* libc/time/Makefile.am: Likewise.
* libc/unix/Makefile.am: Likewise.
* libm/Makefile.am: Add libtool support. Change math and
mathfp references to variables.
* libm/configure.in: Add libtool support. Add
LIBM_MACHINE_LIB variable.
* libm/common/Makefile.am: Add libtool support.
* libm/math/Makefile.am: Likewise.
* libm/mathfp/Makefile.am: Likewise.
Regenerate all Makefile.in, aclocal.m4, and configure.
Diffstat (limited to 'newlib/libc/stdlib/Makefile.am')
-rw-r--r-- | newlib/libc/stdlib/Makefile.am | 91 |
1 files changed, 54 insertions, 37 deletions
diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am index 8bf5b8e8b..e45b5a950 100644 --- a/newlib/libc/stdlib/Makefile.am +++ b/newlib/libc/stdlib/Makefile.am @@ -4,9 +4,7 @@ AUTOMAKE_OPTIONS = cygnus INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = \ +LIB_SOURCES = \ __adjust.c \ __exp10.c \ __ten_mu.c \ @@ -82,45 +80,64 @@ lib_a_SOURCES = \ wctomb.c \ wctomb_r.c -lib_a_LIBADD = mallocr.o freer.o reallocr.o callocr.o cfreer.o malignr.o \ - vallocr.o pvallocr.o mallinfor.o mallstatsr.o msizer.o malloptr.o +# Because of how libtool moves objects around, mallocr must be built last. +LIBADD_OBJS = freer.$(oext) reallocr.$(oext) callocr.$(oext) cfreer.$(oext) malignr.$(oext) \ + vallocr.$(oext) pvallocr.$(oext) mallinfor.$(oext) mallstatsr.$(oext) msizer.$(oext) malloptr.$(oext) mallocr.$(oext) + +libstdlib_la_LDFLAGS = -Xcompiler -nostdlib + +if USE_LIBTOOL +noinst_LTLIBRARIES = libstdlib.la +libstdlib_la_SOURCES = $(LIB_SOURCES) +libstdlib_la_LIBADD = $(LIBADD_OBJS) +LIB_COMPILE = $(LTCOMPILE) +noinst_DATA = objectlist.awk.in +else +noinst_LIBRARIES = lib.a +lib_a_SOURCES = $(LIB_SOURCES) +lib_a_LIBADD = $(LIBADD_OBJS) +LIB_COMPILE = $(CC) +noinst_DATA = +endif # USE_LIBTOOL + +include $(srcdir)/../../Makefile.shared -MALLOC_COMPILE = $(COMPILE) -DINTERNAL_NEWLIB +MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB -mallocr.o: mallocr.c +mallocr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/mallocr.c -o $@ -freer.o: mallocr.c +freer.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/mallocr.c -o $@ -reallocr.o: mallocr.c +reallocr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/mallocr.c -o $@ -callocr.o: mallocr.c +callocr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/mallocr.c -o $@ -cfreer.o: mallocr.c +cfreer.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/mallocr.c -o $@ -malignr.o: mallocr.c +malignr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/mallocr.c -o $@ -vallocr.o: mallocr.c +vallocr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/mallocr.c -o $@ -pvallocr.o: mallocr.c +pvallocr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/mallocr.c -o $@ -mallinfor.o: mallocr.c +mallinfor.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/mallocr.c -o $@ -mallstatsr.o: mallocr.c +mallstatsr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/mallocr.c -o $@ -msizer.o: mallocr.c +msizer.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/mallocr.c -o $@ -malloptr.o: mallocr.c +malloptr.$(oext): mallocr.c $(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/mallocr.c -o $@ CHEWOUT_FILES= \ @@ -174,22 +191,22 @@ doc: $(CHEWOUT_FILES) CLEANFILES = $(CHEWOUT_FILES) *.ref -dtoa.o: dtoa.c mprec.h -ldtoa.o: ldtoa.c mprec.h -ecvtbuf.o: ecvtbuf.c mprec.h -mbtowc_r.o: mbtowc_r.c mbctype.h - $(COMPILE) -c -fshort-enums $(srcdir)/mbtowc_r.c -o $@ - -mprec.o: mprec.c mprec.h -strtod.o: strtod.c mprec.h -wctomb_r.o: wctomb_r.c mbctype.h -drand48.o: drand48.c rand48.h -erand48.o: erand48.c rand48.h -jrand48.o: jrand48.c rand48.h -lcong48.o: lcong48.c rand48.h -lrand48.o: lrand48.c rand48.h -mrand48.o: mrand48.c rand48.h -nrand48.o: nrand48.c rand48.h -rand48.o: rand48.c rand48.h -seed48.o: seed48.c rand48.h -srand48.o: srand48.c rand48.h +dtoa.$(oext): dtoa.c mprec.h +ldtoa.$(oext): ldtoa.c mprec.h +ecvtbuf.$(oext): ecvtbuf.c mprec.h +mbtowc_r.$(oext): mbtowc_r.c mbctype.h + $(LIB_COMPILE) -c -fshort-enums $(srcdir)/mbtowc_r.c -o $@ + +mprec.$(oext): mprec.c mprec.h +strtod.$(oext): strtod.c mprec.h +wctomb_r.$(oext): wctomb_r.c mbctype.h +drand48.$(oext): drand48.c rand48.h +erand48.$(oext): erand48.c rand48.h +jrand48.$(oext): jrand48.c rand48.h +lcong48.$(oext): lcong48.c rand48.h +lrand48.$(oext): lrand48.c rand48.h +mrand48.$(oext): mrand48.c rand48.h +nrand48.$(oext): nrand48.c rand48.h +rand48.$(oext): rand48.c rand48.h +seed48.$(oext): seed48.c rand48.h +srand48.$(oext): srand48.c rand48.h |