Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/Makefile.am')
-rw-r--r--newlib/libc/reent/Makefile.am22
1 files changed, 17 insertions, 5 deletions
diff --git a/newlib/libc/reent/Makefile.am b/newlib/libc/reent/Makefile.am
index 655168aa6..c01ffb593 100644
--- a/newlib/libc/reent/Makefile.am
+++ b/newlib/libc/reent/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 = \
closer.c \
reent.c \
impure.c \
@@ -17,13 +15,27 @@ lib_a_SOURCES = \
openr.c \
readr.c \
signalr.c \
- sbrkr.c \
signgam.c \
+ sbrkr.c \
statr.c \
timer.c \
unlinkr.c \
writer.c
+libreent_la_LDFLAGS = -Xcompiler -nostdlib
+
+if USE_LIBTOOL
+noinst_LTLIBRARIES = libreent.la
+libreent_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 = \
closer.def \
reent.def \
@@ -53,6 +65,6 @@ TARGETDOC = ../tmp.texi
doc: $(CHEWOUT_FILES)
cat $(srcdir)/reent.tex >> $(TARGETDOC)
-impure.o: $(srcdir)/impure.c $(srcdir)/../include/sys/reent.h
+impure.$(oext): $(srcdir)/impure.c $(srcdir)/../include/sys/reent.h
CLEANFILES = $(CHEWOUT_FILES) *.ref