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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libada/] [Makefile.in] - Blame information for rev 846

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

Line No. Rev Author Line
1 729 jeremybenn
# Makefile for libada.
2
#   Copyright 2003, 2004, 2009, 2010, 2011 Free Software Foundation, Inc.
3
#
4
# This file is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; see the file COPYING3.  If not see
16
# .
17
 
18
# Default target; must be first.
19
all: gnatlib
20
        $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
21
 
22
.PHONY: all
23
 
24
## Multilib support variables.
25
MULTISRCTOP =
26
MULTIBUILDTOP =
27
MULTIDIRS =
28
MULTISUBDIR =
29
MULTIDO = true
30
MULTICLEAN = true
31
 
32
# Standard autoconf-set variables.
33
SHELL = @SHELL@
34
srcdir = @srcdir@
35
libdir = @libdir@
36
bindir = @bindir@
37
build = @build@
38
target = @target@
39
prefix = @prefix@
40
 
41
# Nonstandard autoconf-set variables.
42
enable_shared = @enable_shared@
43
 
44
LN_S=@LN_S@
45
AWK=@AWK@
46
 
47
# Variables for the user (or the top level) to override.
48
objext=.o
49
THREAD_KIND=native
50
TRACE=no
51
LDFLAGS=
52
 
53
# The tedious process of getting CFLAGS right.
54
CFLAGS=-g
55
PICFLAG = @PICFLAG@
56
GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
57
GNATLIBCFLAGS= -g -O2
58
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG) \
59
        -fexceptions -DIN_RTS @have_getipinfo@
60
 
61
host_subdir = @host_subdir@
62
GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
63
 
64
target_noncanonical:=@target_noncanonical@
65
version := $(shell cat $(srcdir)/../gcc/BASE-VER)
66
libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
67
ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
68
ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
69
 
70
# exeext should not be used because it's the *host* exeext.  We're building
71
# a *target* library, aren't we?!?  Likewise for CC.  Still, provide bogus
72
# definitions just in case something slips through the safety net provided
73
# by recursive make invocations in gcc/ada/Makefile.in
74
LIBADA_FLAGS_TO_PASS = \
75
        "MAKEOVERRIDES=" \
76
        "LDFLAGS=$(LDFLAGS)" \
77
        "LN_S=$(LN_S)" \
78
        "SHELL=$(SHELL)" \
79
        "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
80
        "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
81
        "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
82
        "PICFLAG_FOR_TARGET=$(PICFLAG)" \
83
        "THREAD_KIND=$(THREAD_KIND)" \
84
        "TRACE=$(TRACE)" \
85
        "MULTISUBDIR=$(MULTISUBDIR)" \
86
        "libsubdir=$(libsubdir)" \
87
        "bindir=$(bindir)" \
88
        "objext=$(objext)" \
89
        "prefix=$(prefix)" \
90
        "exeext=.exeext.should.not.be.used " \
91
        'CC=the.host.compiler.should.not.be.needed' \
92
        "GCC_FOR_TARGET=$(CC)" \
93
        "CFLAGS=$(CFLAGS)"
94
 
95
# Rules to build gnatlib.
96
.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
97
gnatlib: @default_gnatlib_target@
98
 
99
gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile
100
        test -f stamp-libada || \
101
        $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
102
        && touch stamp-libada
103
        -rm -rf adainclude
104
        -rm -rf adalib
105
        $(LN_S) $(ADA_RTS_DIR) adainclude
106
        $(LN_S) $(ADA_RTS_DIR) adalib
107
 
108
gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile
109
        test -f stamp-libada || \
110
        $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
111
        && touch stamp-libada
112
        -rm -rf adainclude
113
        -rm -rf adalib
114
        $(LN_S) $(ADA_RTS_DIR) adainclude
115
        $(LN_S) $(ADA_RTS_DIR) adalib
116
 
117
osconstool:
118
        $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
119
 
120
install-gnatlib: $(GCC_DIR)/ada/Makefile
121
        $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
122
 
123
# Check uninstalled version.
124
check:
125
 
126
# Check installed version.
127
installcheck:
128
 
129
# Build info (none here).
130
info:
131
 
132
# Build DVI (none here).
133
dvi:
134
 
135
# Build PDF (none here).
136
pdf:
137
 
138
# Build html (none here).
139
html:
140
 
141
# Build TAGS (none here).
142
TAGS:
143
 
144
.PHONY: check installcheck info dvi pdf html
145
 
146
# Installation rules.
147
install: install-gnatlib
148
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
149
 
150
install-strip: install
151
 
152
install-info:
153
 
154
install-pdf:
155
 
156
install-html:
157
 
158
.PHONY: install install-strip install-info install-pdf install-html
159
 
160
# Cleaning rules.
161
mostlyclean:
162
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
163
 
164
clean:
165
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
166
 
167
distclean:
168
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
169
        $(RM) Makefile config.status config.log
170
 
171
maintainer-clean:
172
 
173
.PHONY: mostlyclean clean distclean maintainer-clean
174
 
175
# Rules for rebuilding this Makefile.
176
Makefile: $(srcdir)/Makefile.in config.status
177
        CONFIG_FILES=$@ ; \
178
        CONFIG_HEADERS= ; \
179
        $(SHELL) ./config.status
180
 
181
config.status: $(srcdir)/configure
182
        $(SHELL) ./config.status --recheck
183
 
184
AUTOCONF = autoconf
185
configure_deps = \
186
        $(srcdir)/configure.ac \
187
        $(srcdir)/../config/acx.m4 \
188
        $(srcdir)/../config/override.m4 \
189
        $(srcdir)/../config/multi.m4
190
 
191
$(srcdir)/configure: @MAINT@ $(configure_deps)
192
        cd $(srcdir) && $(AUTOCONF)
193
 
194
# Don't export variables to the environment, in order to not confuse
195
# configure.
196
.NOEXPORT:

powered by: WebSVN 2.1.0

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