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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [Makefile.am] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
# Multilib support variables.
6
MULTISRCTOP =
7
MULTIBUILDTOP =
8
MULTIDIRS =
9
MULTISUBDIR =
10
MULTIDO = true
11
MULTICLEAN = true
12
 
13
# Work around what appears to be a GNU make bug handling MAKEFLAGS
14
# values defined in terms of make variables, as is the case for CC and
15
# friends when we are called from the top level Makefile.
16
AM_MAKEFLAGS = \
17
        "AR_FLAGS=$(AR_FLAGS)" \
18
        "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
19
        "CFLAGS=$(CFLAGS)" \
20
        "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
21
        "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
22
        "LDFLAGS=$(LDFLAGS)" \
23
        "LIBCFLAGS=$(LIBCFLAGS)" \
24
        "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
25
        "MAKE=$(MAKE)" \
26
        "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
27
        "PICFLAG=$(PICFLAG)" \
28
        "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
29
        "SHELL=$(SHELL)" \
30
        "EXPECT=$(EXPECT)" \
31
        "RUNTEST=$(RUNTEST)" \
32
        "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
33
        "exec_prefix=$(exec_prefix)" \
34
        "infodir=$(infodir)" \
35
        "libdir=$(libdir)" \
36
        "prefix=$(prefix)" \
37
        "tooldir=$(tooldir)" \
38
        "AR=$(AR)" \
39
        "AS=$(AS)" \
40
        "CC=$(CC)" \
41
        "LD=$(LD)" \
42
        "LIBCFLAGS=$(LIBCFLAGS)" \
43
        "NM=$(NM)" \
44
        "PICFLAG=$(PICFLAG)" \
45
        "RANLIB=$(RANLIB)" \
46
        "DESTDIR=$(DESTDIR)"
47
 
48 59 joel
FLAGS_TO_PASS=$(AM_MAKEFLAGS)
49
 
50 56 joel
if HAVE_DOC
51
DOCDIR = doc
52
endif
53
 
54
SUBDIRS = libc libm $(DOCDIR) .
55
 
56
tooldir = $(exec_prefix)/$(host_alias)
57
toollibdir = $(tooldir)/lib$(MULTISUBDIR)
58
 
59
AR_FLAGS = rc
60
 
61
toollib_LIBRARIES = libm.a libc.a
62
toollib_DATA = $(CRT0)
63
noinst_DATA = stmp-targ-include
64
 
65
# The functions ldexp, frexp and modf are traditionally supplied in
66
# both libc.a and libm.a.  We build them in libm.a and copy them over,
67
# along with some required supporting routines.
68
MATHOBJS_IN_LIBC = \
69
        s_isinf.o sf_isinf.o \
70
        s_isnan.o sf_isnan.o \
71
        s_ldexp.o sf_ldexp.o \
72
        s_frexp.o sf_frexp.o s_modf.o sf_modf.o \
73
        s_scalbn.o sf_scalbn.o s_finite.o sf_finite.o \
74
        s_copysign.o sf_copysign.o s_infconst.o
75
 
76
libc.a: libc/libc.a libm.a
77
        rm -rf libc.a libg.a tmp
78
        mkdir tmp
79
        cd tmp; \
80
         $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
81
         $(AR) x ../libc/libc.a ; \
82
         $(AR) $(AR_FLAGS) ../$@ *.o
83
        $(RANLIB) libc.a
84
        ln libc.a libg.a
85
        rm -rf tmp
86
 
87
libc/libc.a: ; @true
88
 
89
libm.a: libm/libm.a
90
        rm -f $@
91
        ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@
92
 
93
libm/libm.a: ; @true
94
 
95
crt0.o: $(CRT0_DIR)/$(CRT0)
96
        rm -f $@
97
        ln $(CRT0_DIR)/$(CRT0) $@ >/dev/null 2>/dev/null \
98
         || cp $(CRT0_DIR)/$(CRT0) $@
99
 
100
$(CRT0_DIR)/$(CRT0): ; @true
101
 
102
all-recursive: stmp-targ-include
103
 
104
# The targ-include directory just holds the includes files for the
105
# particular system and machine we have been configured for.  It is
106
# used while building.
107
stmp-targ-include: config.status
108
        -rm -rf targ-include stmp-targ-include
109
        mkdir targ-include targ-include/sys targ-include/machine
110 59 joel
        -for i in $(srcdir)/libc/include/*.h; do \
111
            if [ -f $$i ]; then \
112
              cp $$i targ-include/`basename $$i`; \
113
            else true; fi ; \
114
          done
115
        -for i in $(srcdir)/libc/include/sys/*.h; do \
116
            if [ -f $$i ]; then \
117
              cp $$i targ-include/sys/`basename $$i`; \
118
            else true; fi ; \
119
          done
120
        -for i in $(srcdir)/libc/include/machine/*.h; do \
121
            if [ -f $$i ]; then \
122
              cp $$i targ-include/machine/`basename $$i`; \
123
            else true; fi ; \
124
          done
125 56 joel
        -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
126
            if [ -f $$i ]; then \
127
              cp $$i targ-include/machine/`basename $$i`; \
128
            else true; fi ; \
129
          done
130
        -for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
131
            if [ -f $$i ]; then \
132
              cp $$i targ-include/`basename $$i`; \
133
            else true; fi ; \
134
          done
135
        -for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
136
            if [ -f $$i ]; then \
137
              cp $$i targ-include/sys/`basename $$i`; \
138
            else true; fi ; \
139
          done
140
        touch $@
141
 
142
CLEANFILES = targ-include stmp-targ-include
143
 
144
install-data-local: install-toollibLIBRARIES
145 59 joel
        rm -f $(DESTDIR)$(toollibdir)/libg.a
146
        ln $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a
147 56 joel
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
148
        -if [ -z "$(MULTISUBDIR)" ]; then \
149 59 joel
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include; \
150 56 joel
          for i in $(srcdir)/libc/include/*.h; do \
151 59 joel
            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include; \
152 56 joel
          done; \
153 59 joel
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \
154 56 joel
          for i in $(srcdir)/libc/include/machine/*.h; do \
155 59 joel
            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine; \
156 56 joel
          done; \
157
          for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
158
            if [ -f $$i ]; then \
159 59 joel
              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine; \
160 56 joel
            else true; fi ; \
161
          done; \
162 59 joel
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \
163 56 joel
          for i in $(srcdir)/libc/include/sys/*.h; do \
164 59 joel
            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys; \
165 56 joel
          done; \
166
          for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
167
            if [ -f $$i ]; then \
168 59 joel
              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys; \
169 56 joel
            else true; fi ; \
170
          done ; \
171
          for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
172
            if [ -f $$i ]; then \
173 59 joel
              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include; \
174 56 joel
            else true; fi ; \
175
          done ; \
176
        else true; fi
177
 
178
# Force makedoc to be built before building info files.
179
info-recursive: doc/makedoc
180
dvi-recursive: doc/makedoc
181
doc/makedoc:
182
        cd doc && $(MAKE) all
183
 
184
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
185
 
186
# Multilib support.
187
.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
188
        maintainer-clean-multi
189
 
190
all-recursive: all-multi
191
mostlyclean-recursive: mostlyclean-multi
192
clean-recursive: clean-multi
193
distclean-recursive: distclean-multi
194
maintainer-clean-recursive: maintainer-clean-multi
195
 
196
all-multi:
197
        $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
198
mostlyclean-multi:
199
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
200
clean-multi:
201
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
202
distclean-multi:
203
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
204
maintainer-clean-multi:
205
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
206
 
207
MAKEOVERRIDES=

powered by: WebSVN 2.1.0

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