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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [stdlib/] [Makefile.am] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1010 ivang
## 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
LIB_SOURCES = \
8
        __adjust.c      \
9
        __exp10.c       \
10
        __ten_mu.c      \
11
        abort.c         \
12
        abs.c           \
13
        assert.c        \
14
        atexit.c        \
15
        atof.c          \
16
        atoff.c         \
17
        atoi.c          \
18
        atol.c          \
19
        bsearch.c       \
20
        calloc.c        \
21
        div.c           \
22
        drand48.c       \
23
        dtoa.c          \
24
        dtoastub.c      \
25
        ecvtbuf.c       \
26
        efgcvt.c        \
27
        environ.c       \
28
        envlock.c       \
29
        eprintf.c       \
30
        erand48.c       \
31
        exit.c          \
32
        getenv.c        \
33
        getenv_r.c      \
34
        getopt.c        \
35
        jrand48.c       \
36
        labs.c          \
37
        lcong48.c       \
38
        ldiv.c          \
39
        ldtoa.c         \
40
        lrand48.c       \
41
        malign.c        \
42
        malloc.c        \
43
        mblen.c         \
44
        mblen_r.c       \
45
        mbstowcs.c      \
46
        mbstowcs_r.c    \
47
        mbtowc.c        \
48
        mbtowc_r.c      \
49
        mlock.c         \
50
        mprec.c         \
51
        mrand48.c       \
52
        msize.c         \
53
        mstats.c        \
54
        mtrim.c         \
55
        nrand48.c       \
56
        putenv.c        \
57
        putenv_r.c      \
58
        qsort.c         \
59
        rand.c          \
60
        rand48.c        \
61
        rand_r.c        \
62
        realloc.c       \
63
        seed48.c        \
64
        setenv.c        \
65
        setenv_r.c      \
66
        srand48.c       \
67
        strdup.c        \
68
        strdup_r.c      \
69
        strtod.c        \
70
        strtol.c        \
71
        strtoll.c       \
72
        strtoll_r.c     \
73
        strtoul.c       \
74
        strtoull.c      \
75
        strtoull_r.c    \
76
        system.c        \
77
        valloc.c        \
78
        wcstombs.c      \
79
        wcstombs_r.c    \
80
        wctomb.c        \
81
        wctomb_r.c
82
 
83
# Because of how libtool moves objects around, mallocr must be built last.
84
LIBADD_OBJS = freer.$(oext) reallocr.$(oext) callocr.$(oext) cfreer.$(oext) malignr.$(oext) \
85
        vallocr.$(oext) pvallocr.$(oext) mallinfor.$(oext) mallstatsr.$(oext) msizer.$(oext) malloptr.$(oext) mallocr.$(oext)
86
 
87
libstdlib_la_LDFLAGS = -Xcompiler -nostdlib
88
 
89
if USE_LIBTOOL
90
noinst_LTLIBRARIES = libstdlib.la
91
libstdlib_la_SOURCES = $(LIB_SOURCES)
92
libstdlib_la_LIBADD = $(LIBADD_OBJS)
93
LIB_COMPILE = $(LTCOMPILE)
94
noinst_DATA = objectlist.awk.in
95
else
96
noinst_LIBRARIES = lib.a
97
lib_a_SOURCES = $(LIB_SOURCES)
98
lib_a_LIBADD = $(LIBADD_OBJS)
99
LIB_COMPILE = $(COMPILE)
100
noinst_DATA =
101
endif # USE_LIBTOOL
102
 
103
include $(srcdir)/../../Makefile.shared
104
 
105
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
106
 
107
mallocr.$(oext): mallocr.c
108
        $(MALLOC_COMPILE) -DDEFINE_MALLOC -c $(srcdir)/mallocr.c -o $@
109
 
110
freer.$(oext): mallocr.c
111
        $(MALLOC_COMPILE) -DDEFINE_FREE -c $(srcdir)/mallocr.c -o $@
112
 
113
reallocr.$(oext): mallocr.c
114
        $(MALLOC_COMPILE) -DDEFINE_REALLOC -c $(srcdir)/mallocr.c -o $@
115
 
116
callocr.$(oext): mallocr.c
117
        $(MALLOC_COMPILE) -DDEFINE_CALLOC -c $(srcdir)/mallocr.c -o $@
118
 
119
cfreer.$(oext): mallocr.c
120
        $(MALLOC_COMPILE) -DDEFINE_CFREE -c $(srcdir)/mallocr.c -o $@
121
 
122
malignr.$(oext): mallocr.c
123
        $(MALLOC_COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/mallocr.c -o $@
124
 
125
vallocr.$(oext): mallocr.c
126
        $(MALLOC_COMPILE) -DDEFINE_VALLOC -c $(srcdir)/mallocr.c -o $@
127
 
128
pvallocr.$(oext): mallocr.c
129
        $(MALLOC_COMPILE) -DDEFINE_PVALLOC -c $(srcdir)/mallocr.c -o $@
130
 
131
mallinfor.$(oext): mallocr.c
132
        $(MALLOC_COMPILE) -DDEFINE_MALLINFO -c $(srcdir)/mallocr.c -o $@
133
 
134
mallstatsr.$(oext): mallocr.c
135
        $(MALLOC_COMPILE) -DDEFINE_MALLOC_STATS -c $(srcdir)/mallocr.c -o $@
136
 
137
msizer.$(oext): mallocr.c
138
        $(MALLOC_COMPILE) -DDEFINE_MALLOC_USABLE_SIZE -c $(srcdir)/mallocr.c -o $@
139
 
140
malloptr.$(oext): mallocr.c
141
        $(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/mallocr.c -o $@
142
 
143
CHEWOUT_FILES= \
144
        abort.def       \
145
        abs.def         \
146
        assert.def      \
147
        atexit.def      \
148
        atof.def        \
149
        ecvtbuf.def     \
150
        atoi.def        \
151
        bsearch.def     \
152
        calloc.def      \
153
        div.def         \
154
        efgcvt.def      \
155
        envlock.def     \
156
        exit.def        \
157
        getenv.def      \
158
        labs.def        \
159
        ldiv.def        \
160
        malloc.def      \
161
        mallocr.def     \
162
        mblen.def       \
163
        mbstowcs.def    \
164
        mbtowc.def      \
165
        mlock.def       \
166
        mstats.def      \
167
        qsort.def       \
168
        rand.def        \
169
        rand48.def      \
170
        strtod.def      \
171
        strtol.def      \
172
        strtoll.def     \
173
        strtoul.def     \
174
        strtoull.def    \
175
        system.def      \
176
        wcstombs.def    \
177
        wctomb.def
178
 
179
SUFFIXES = .def
180
 
181
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
182
 
183
.c.def:
184
        $(CHEW) < $< > $*.def 2> $*.ref
185
        touch stmp-def
186
 
187
TARGETDOC = ../tmp.texi
188
 
189
doc: $(CHEWOUT_FILES)
190
        cat $(srcdir)/stdlib.tex >> $(TARGETDOC)
191
 
192
CLEANFILES = $(CHEWOUT_FILES) *.ref
193
 
194
dtoa.$(oext): dtoa.c mprec.h
195
ldtoa.$(oext): ldtoa.c mprec.h
196
ecvtbuf.$(oext): ecvtbuf.c mprec.h
197
mbtowc_r.$(oext): mbtowc_r.c mbctype.h
198
        $(LIB_COMPILE) -c -fshort-enums $(srcdir)/mbtowc_r.c -o $@
199
 
200
mprec.$(oext): mprec.c mprec.h
201
strtod.$(oext): strtod.c mprec.h
202
wctomb_r.$(oext): wctomb_r.c mbctype.h
203
drand48.$(oext): drand48.c rand48.h
204
erand48.$(oext): erand48.c rand48.h
205
jrand48.$(oext): jrand48.c rand48.h
206
lcong48.$(oext): lcong48.c rand48.h
207
lrand48.$(oext): lrand48.c rand48.h
208
mrand48.$(oext): mrand48.c rand48.h
209
nrand48.$(oext): nrand48.c rand48.h
210
rand48.$(oext): rand48.c rand48.h
211
seed48.$(oext): seed48.c rand48.h
212
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.