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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [stdlib/] [Makefile.am] - Blame information for rev 855

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

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