fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / reent / Makefile.am
blobdd396c33cec19bd3dc74e0cb45865883b65a1e17
1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
7 if HAVE_STDIO64_DIR
8 STDIO64_OBJECTS = \
9         fstat64r.$(oext) \
10         lseek64r.$(oext) \
11         open64r.$(oext)
13 STDIO64_DEFS = \
14         fstat64r.def \
15         lseek64r.def \
16         open64r.def
17 endif
19 ELIX_2_OBJS = $(STDIO64_OBJECTS)
20 ELIX_3_OBJS = execr.$(oext)
22 if ELIX_LEVEL_1
23 LIB_OBJS =
24 else
25 if ELIX_LEVEL_2
26 LIB_OBJS = $(ELIX_2_OBJS)
27 else
28 LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS)
29 endif
30 endif
32 GENERAL_SOURCES = \
33         closer.c \
34         reent.c \
35         impure.c \
36         fcntlr.c \
37         fstatr.c \
38         getreent.c \
39         linkr.c \
40         lseekr.c \
41         openr.c \
42         readr.c \
43         signalr.c \
44         signgam.c \
45         sbrkr.c \
46         statr.c \
47         timer.c \
48         unlinkr.c \
49         writer.c
51 libreent_la_LDFLAGS = -Xcompiler -nostdlib
53 if USE_LIBTOOL
54 noinst_LTLIBRARIES = libreent.la
55 libreent_la_SOURCES = $(GENERAL_SOURCES)
56 libreent_la_LIBADD = $(LIB_OBJS)
57 libreent_la_DEPENDENCIES = $(LIB_OBJS)
58 noinst_DATA = objectlist.awk.in
59 else
60 noinst_LIBRARIES = lib.a
61 lib_a_SOURCES = $(GENERAL_SOURCES)
62 lib_a_LIBADD = $(LIB_OBJS)
63 lib_a_DEPENDENCIES = $(LIB_OBJS)
64 noinst_DATA =
65 endif # USE_LIBTOOL
67 include $(srcdir)/../../Makefile.shared
69 CHEWOUT_FILES = \
70         closer.def \
71         reent.def \
72         execr.def \
73         fcntlr.def \
74         fstatr.def \
75         linkr.def \
76         lseekr.def \
77         openr.def \
78         readr.def \
79         signalr.def \
80         sbrkr.def \
81         statr.def \
82         timer.def \
83         unlinkr.def \
84         $(STDIO64_DEFS) \
85         writer.def
87 SUFFIXES = .def .h
89 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
91 .c.def:
92         $(CHEW) < $< > $*.def 2> $*.ref
93         touch stmp-def
95 TARGETDOC = ../tmp.texi
97 doc: $(CHEWOUT_FILES)
98         cat $(srcdir)/reent.tex >> $(TARGETDOC)
100 impure.$(oext): $(srcdir)/impure.c $(srcdir)/../include/sys/reent.h
102 CLEANFILES = $(CHEWOUT_FILES) *.ref