OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [stdlib/] [Makefile.am] - Blame information for rev 309

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
 
7
GENERAL_SOURCES = \
8
        __adjust.c      \
9
        __atexit.c      \
10
        __call_atexit.c \
11
        __exp10.c       \
12
        __ten_mu.c      \
13
        _Exit.c         \
14
        abort.c         \
15
        abs.c           \
16
        assert.c        \
17
        atexit.c        \
18
        atof.c          \
19
        atoff.c         \
20
        atoi.c          \
21
        atol.c          \
22
        calloc.c        \
23
        div.c           \
24
        dtoa.c          \
25
        dtoastub.c      \
26
        environ.c       \
27
        envlock.c       \
28
        eprintf.c       \
29
        exit.c          \
30
        gdtoa-gethex.c  \
31
        gdtoa-hexnan.c  \
32
        getenv.c        \
33
        getenv_r.c      \
34
        labs.c          \
35
        ldiv.c          \
36
        ldtoa.c         \
37
        malloc.c        \
38
        mblen.c         \
39
        mblen_r.c       \
40
        mbstowcs.c      \
41
        mbstowcs_r.c    \
42
        mbtowc.c        \
43
        mbtowc_r.c      \
44
        mlock.c         \
45
        mprec.c         \
46
        mstats.c        \
47
        rand.c          \
48
        rand_r.c        \
49
        realloc.c       \
50
        reallocf.c      \
51
        sb_charsets.c   \
52
        strtod.c        \
53
        strtol.c        \
54
        strtoul.c       \
55
        wcstod.c        \
56
        wcstol.c        \
57
        wcstoul.c       \
58
        wcstombs.c      \
59
        wcstombs_r.c    \
60
        wctomb.c        \
61
        wctomb_r.c
62
 
63
if HAVE_LONG_DOUBLE
64
GENERAL_SOURCES += \
65
        strtold.c \
66
        wcstold.c
67
endif # HAVE_LONG_DOUBLE
68
 
69
EXTENDED_SOURCES = \
70
        cxa_atexit.c    \
71
        cxa_finalize.c  \
72
        drand48.c       \
73
        ecvtbuf.c       \
74
        efgcvt.c        \
75
        erand48.c       \
76
        jrand48.c       \
77
        lcong48.c       \
78
        lrand48.c       \
79
        mrand48.c       \
80
        msize.c         \
81
        mtrim.c         \
82
        nrand48.c       \
83
        rand48.c        \
84
        seed48.c        \
85
        srand48.c       \
86
        strtoll.c       \
87
        strtoll_r.c     \
88
        strtoull.c      \
89
        strtoull_r.c    \
90
        wcstoll.c       \
91
        wcstoll_r.c     \
92
        wcstoull.c      \
93
        wcstoull_r.c    \
94
        atoll.c         \
95
        llabs.c         \
96
        lldiv.c
97
 
98
ELIX_2_SOURCES = \
99
        a64l.c          \
100
        btowc.c         \
101
        getopt.c        \
102
        getsubopt.c     \
103
        l64a.c          \
104
        malign.c        \
105
        mbrlen.c        \
106
        mbrtowc.c       \
107
        mbsinit.c       \
108
        mbsnrtowcs.c    \
109
        mbsrtowcs.c     \
110
        on_exit.c       \
111
        valloc.c        \
112
        wcrtomb.c       \
113
        wcsnrtombs.c    \
114
        wcsrtombs.c     \
115
        wctob.c
116
 
117
ELIX_2_OBJS = \
118
        $(lpfx)malignr.$(oext)  \
119
        $(lpfx)malloptr.$(oext) \
120
        $(lpfx)pvallocr.$(oext) \
121
        $(lpfx)vallocr.$(oext)
122
 
123
ELIX_3_SOURCES = \
124
        putenv.c        \
125
        putenv_r.c      \
126
        setenv.c        \
127
        setenv_r.c
128
 
129
ELIX_4_SOURCES = \
130
        system.c
131
 
132
if ELIX_LEVEL_1
133
ELIX_SOURCES =
134
ELIX_OBJS =
135
else
136
if ELIX_LEVEL_2
137
ELIX_SOURCES = $(ELIX_2_SOURCES)
138
ELIX_OBJS = $(ELIX_2_OBJS)
139
else
140
if ELIX_LEVEL_3
141
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
142
ELIX_OBJS = $(ELIX_2_OBJS)
143
else
144
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
145
ELIX_OBJS = $(ELIX_2_OBJS)
146
endif
147
endif
148
endif
149
 
150
# Because of how libtool moves objects around, mallocr must be built last.
151
LIBADD_OBJS = $(lpfx)freer.$(oext) $(lpfx)reallocr.$(oext) \
152
        $(lpfx)callocr.$(oext) $(lpfx)cfreer.$(oext) \
153
        $(lpfx)mallinfor.$(oext) $(lpfx)mallstatsr.$(oext) \
154
        $(lpfx)msizer.$(oext) $(lpfx)mallocr.$(oext)
155
 
156
libstdlib_la_LDFLAGS = -Xcompiler -nostdlib
157
 
158
if USE_LIBTOOL
159
noinst_LTLIBRARIES = libstdlib.la
160
libstdlib_la_SOURCES = $(GENERAL_SOURCES) $(EXTENDED_SOURCES) $(ELIX_SOURCES)
161
libstdlib_la_LIBADD =  $(LIBADD_OBJS) $(ELIX_OBJS)
162
libstdlib_la_DEPENDENCIES = $(LIBADD_OBJS) $(ELIX_OBJS)
163
LIB_COMPILE = $(LTCOMPILE)
164
noinst_DATA = objectlist.awk.in
165
else
166
noinst_LIBRARIES = lib.a
167
lib_a_SOURCES = $(GENERAL_SOURCES) $(EXTENDED_SOURCES) $(ELIX_SOURCES)
168
lib_a_LIBADD = $(LIBADD_OBJS) $(ELIX_OBJS)
169
lib_a_CFLAGS = $(AM_CFLAGS)
170
lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(ELIX_OBJS)
171
LIB_COMPILE = $(COMPILE)
172
noinst_DATA =
173
endif # USE_LIBTOOL
174
 
175
include $(srcdir)/../../Makefile.shared
176
 
177
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
178
 
179
$(lpfx)mallocr.$(oext): mallocr.c
180
        $(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/mallocr.c -o $@
181
 
182
$(lpfx)freer.$(oext): mallocr.c
183
        $(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/mallocr.c -o $@
184
 
185
$(lpfx)reallocr.$(oext): mallocr.c
186
        $(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/mallocr.c -o $@
187
 
188
$(lpfx)callocr.$(oext): mallocr.c
189
        $(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/mallocr.c -o $@
190
 
191
$(lpfx)cfreer.$(oext): mallocr.c
192
        $(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/mallocr.c -o $@
193
 
194
$(lpfx)malignr.$(oext): mallocr.c
195
        $(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/mallocr.c -o $@
196
 
197
$(lpfx)vallocr.$(oext): mallocr.c
198
        $(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/mallocr.c -o $@
199
 
200
$(lpfx)pvallocr.$(oext): mallocr.c
201
        $(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/mallocr.c -o $@
202
 
203
$(lpfx)mallinfor.$(oext): mallocr.c
204
        $(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/mallocr.c -o $@
205
 
206
$(lpfx)mallstatsr.$(oext): mallocr.c
207
        $(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/mallocr.c -o $@
208
 
209
$(lpfx)msizer.$(oext): mallocr.c
210
        $(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/mallocr.c -o $@
211
 
212
$(lpfx)malloptr.$(oext): mallocr.c
213
        $(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/mallocr.c -o $@
214
 
215
CHEWOUT_FILES= \
216
        _Exit.def       \
217
        a64l.def        \
218
        abort.def       \
219
        abs.def         \
220
        assert.def      \
221
        atexit.def      \
222
        atof.def        \
223
        atoi.def        \
224
        atoll.def       \
225
        calloc.def      \
226
        div.def         \
227
        ecvtbuf.def     \
228
        efgcvt.def      \
229
        envlock.def     \
230
        exit.def        \
231
        getenv.def      \
232
        labs.def        \
233
        ldiv.def        \
234
        llabs.def       \
235
        lldiv.def       \
236
        malloc.def      \
237
        mallocr.def     \
238
        mblen.def       \
239
        mbsnrtowcs.def  \
240
        mbstowcs.def    \
241
        mbtowc.def      \
242
        mlock.def       \
243
        mstats.def      \
244
        on_exit.def     \
245
        rand.def        \
246
        rand48.def      \
247
        strtod.def      \
248
        strtol.def      \
249
        strtoll.def     \
250
        strtoul.def     \
251
        strtoull.def    \
252
        wcsnrtombs.def  \
253
        wcstod.def      \
254
        wcstol.def      \
255
        wcstoll.def     \
256
        wcstoul.def     \
257
        wcstoull.def    \
258
        system.def      \
259
        wcstombs.def    \
260
        wctomb.def
261
 
262
SUFFIXES = .def
263
 
264
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
265
 
266
.c.def:
267
        $(CHEW) < $< > $*.def 2> $*.ref
268
        touch stmp-def
269
 
270
TARGETDOC = ../tmp.texi
271
 
272
doc: $(CHEWOUT_FILES)
273
        cat $(srcdir)/stdlib.tex >> $(TARGETDOC)
274
 
275
CLEANFILES = $(CHEWOUT_FILES) *.ref
276
 
277
$(lpfx)dtoa.$(oext): dtoa.c mprec.h
278
$(lpfx)ldtoa.$(oext): ldtoa.c mprec.h
279
$(lpfx)ecvtbuf.$(oext): ecvtbuf.c mprec.h
280
$(lpfx)mbtowc_r.$(oext): mbtowc_r.c mbctype.h
281
        $(LIB_COMPILE) -c -fshort-enums $(srcdir)/mbtowc_r.c -o $@
282
 
283
$(lpfx)mprec.$(oext): mprec.c mprec.h
284
$(lpfx)strtod.$(oext): strtod.c mprec.h
285
$(lpfx)gdtoa-gethex.$(oext): gdtoa-gethex.c mprec.h
286
$(lpfx)gdtoa-hexnan.$(oext): gdtoa-hexnan.c mprec.h
287
$(lpfx)wctomb_r.$(oext): wctomb_r.c mbctype.h
288
$(lpfx)drand48.$(oext): drand48.c rand48.h
289
$(lpfx)erand48.$(oext): erand48.c rand48.h
290
$(lpfx)jrand48.$(oext): jrand48.c rand48.h
291
$(lpfx)lcong48.$(oext): lcong48.c rand48.h
292
$(lpfx)lrand48.$(oext): lrand48.c rand48.h
293
$(lpfx)mrand48.$(oext): mrand48.c rand48.h
294
$(lpfx)nrand48.$(oext): nrand48.c rand48.h
295
$(lpfx)rand48.$(oext): rand48.c rand48.h
296
$(lpfx)seed48.$(oext): seed48.c rand48.h
297
$(lpfx)srand48.$(oext): srand48.c rand48.h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.