OSDN Git Service

* Makefile.shared: New file.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / string / Makefile.am
index dceb4d9..e360125 100644 (file)
@@ -4,9 +4,7 @@ AUTOMAKE_OPTIONS = cygnus
 
 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
 
-noinst_LIBRARIES = lib.a
-
-lib_a_SOURCES = \
+LIB_SOURCES = \
        bcmp.c \
        bcopy.c \
        bzero.c \
@@ -42,6 +40,20 @@ lib_a_SOURCES = \
        swab.c \
        u_strerr.c
 
+libstring_la_LDFLAGS = -Xcompiler -nostdlib
+
+if USE_LIBTOOL
+noinst_LTLIBRARIES = libstring.la
+libstring_la_SOURCES = $(LIB_SOURCES)
+noinst_DATA = objectlist.awk.in
+else
+noinst_LIBRARIES = lib.a
+lib_a_SOURCES = $(LIB_SOURCES)
+noinst_DATA =
+endif # USE_LIBTOOL
+
+include $(srcdir)/../../Makefile.shared
+
 CHEWOUT_FILES=\
 bcmp.def       memcpy.def      strcmp.def      strncat.def strstr.def \
 bcopy.def      memmove.def     strcoll.def     strncmp.def strtok.def \