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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [go/] [Make-lang.in] - Blame information for rev 731

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

Line No. Rev Author Line
1 714 jeremybenn
# Make-lang.in -- Top level -*- makefile -*- fragment for gcc Go frontend.
2
 
3
# Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
4
 
5
# This file is part of GCC.
6
 
7
# GCC is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3, or (at your option)
10
# any later version.
11
 
12
# GCC is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
# GNU General Public License for more details.
16
 
17
# You should have received a copy of the GNU General Public License
18
# along with GCC; see the file COPYING3.  If not see
19
# .
20
 
21
# This file provides the language dependent support in the main Makefile.
22
 
23
# Installation name.
24
 
25
GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
26
GCCGO_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gccgo|sed '$(program_transform_name)')
27
 
28
# The name for selecting go in LANGUAGES.
29
go: go1$(exeext)
30
 
31
.PHONY: go
32
 
33
gospec.o: $(srcdir)/go/gospec.c $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H) \
34
    $(CONFIG_H) opts.h
35
        (SHLIB='$(SHLIB)'; \
36
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
37
                $(INCLUDES) $(srcdir)/go/gospec.c)
38
 
39
GCCGO_OBJS = $(GCC_OBJS) gospec.o
40
gccgo$(exeext): $(GCCGO_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS)
41
        $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
42
          $(GCCGO_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a \
43
          $(EXTRA_GCC_LIBS) $(LIBS)
44
 
45
# The cross-compiler version.  This is built mainly as a signal to the
46
# go.install-common target.  If this executable exists, it means that
47
# go.all.cross was run.
48
gccgo-cross$(exeext): gccgo$(exeext)
49
        -rm -f gccgo-cross$(exeext)
50
        cp gccgo$(exeext) gccgo-cross$(exeext)
51
 
52
# Use strict warnings.
53
go-warn = $(STRICT_WARN)
54
 
55
GO_OBJS = \
56
        go/ast-dump.o \
57
        go/dataflow.o \
58
        go/export.o \
59
        go/expressions.o \
60
        go/go-backend.o \
61
        go/go-dump.o \
62
        go/go-gcc.o \
63
        go/go-lang.o \
64
        go/go-linemap.o \
65
        go/go-optimize.o \
66
        go/go.o \
67
        go/gogo-tree.o \
68
        go/gogo.o \
69
        go/import.o \
70
        go/import-archive.o \
71
        go/lex.o \
72
        go/parse.o \
73
        go/runtime.o \
74
        go/statements.o \
75
        go/types.o \
76
        go/unsafe.o
77
 
78
go1$(exeext): $(GO_OBJS) attribs.o $(BACKEND) $(LIBDEPS)
79
        $(CXX) $(ALL_CXXFLAGS) $(LDFLAGS) -o $@ \
80
              $(GO_OBJS) attribs.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
81
 
82
# Documentation.
83
 
84
GO_TEXI_FILES = \
85
        go/gccgo.texi \
86
        $(gcc_docdir)/include/fdl.texi \
87
        $(gcc_docdir)/include/gpl_v3.texi \
88
        $(gcc_docdir)/include/gcc-common.texi \
89
        gcc-vers.texi
90
 
91
doc/gccgo.info: $(GO_TEXI_FILES)
92
        if test "x$(BUILD_INFO)" = xinfo; then \
93
          rm -f doc/gccgo.info*; \
94
          $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
95
                -I $(gcc_docdir)/include -o $@ $<; \
96
        else true; fi
97
 
98
doc/gccgo.dvi: $(GO_TEXI_FILES)
99
        $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
100
 
101
doc/gccgo.pdf: $(GO_TEXI_FILES)
102
        $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
103
 
104
$(build_htmldir)/go/index.html: $(GO_TEXI_FILES)
105
        $(mkinstalldirs) $(@D)
106
        rm -f $(@D)/*
107
        $(TEXI2HTML) -I $(gcc_docdir) -I $(gcc_docdir)/include \
108
                -I $(srcdir)/go -o $(@D) $<
109
 
110
.INTERMEDIATE: gccgo.pod
111
 
112
gccgo.pod: go/gccgo.texi
113
        -$(TEXI2POD) -D gccgo < $< > $@
114
 
115
# Build hooks.
116
 
117
go.all.cross: gccgo-cross$(exeext)
118
go.start.encap: gccgo$(exeext)
119
go.rest.encap:
120
go.info: doc/gccgo.info
121
go.dvi: doc/gccgo.dvi
122
go.pdf: doc/gccgo.pdf
123
go.html: $(build_htmldir)/go/index.html
124
go.srcinfo: doc/gccgo.info
125
        -cp -p $^ $(srcdir)/doc
126
go.srcextra:
127
go.tags: force
128
        cd $(srcdir)/go; \
129
        etags -o TAGS.sub *.c *.h gofrontend/*.h gofrontend/*.cc; \
130
        etags --include TAGS.sub --include ../TAGS.sub
131
go.man: doc/gccgo.1
132
go.srcman: doc/gccgo.1
133
        -cp -p $^ $(srcdir)/doc
134
 
135
lang_checks += check-go
136
lang_checks_parallelized += check-go
137
check_go_parallelize = go-test.exp=*/test/\[0-57-9a-bd-hj-zA-Z\]* \
138
                       go-test.exp=*/test/c* \
139
                       go-test.exp=*/test/i* \
140
                       go-test.exp=*/test/6*
141
 
142
# Install hooks.
143
 
144
go.install-common: installdirs
145
        -rm -f $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
146
        $(INSTALL_PROGRAM) gccgo$(exeext) $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
147
        -if test -f go1$(exeext); then \
148
          if test -f gccgo-cross$(exeext); then \
149
            :; \
150
          else \
151
            rm -f $(DESTDIR)$(bindir)/$(GCCGO_TARGET_INSTALL_NAME)$(exeext); \
152
            ( cd $(DESTDIR)$(bindir) && \
153
              $(LN) $(GCCGO_INSTALL_NAME)$(exeext) $(GCCGO_TARGET_INSTALL_NAME)$(exeext) ); \
154
          fi; \
155
        fi
156
 
157
go.install-plugin:
158
 
159
go.install-info: $(DESTDIR)$(infodir)/gccgo.info
160
 
161
go.install-pdf: doc/gccgo.pdf
162
        @$(NORMAL_INSTALL)
163
        test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
164
        @for p in doc/gccgo.pdf; do \
165
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
166
          f=$(pdf__strip_dir) \
167
          echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \
168
          $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \
169
        done
170
 
171
go.install-html: $(build_htmldir)/go
172
        @$(NORMAL_INSTALL)
173
        test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
174
        @for p in $(build_htmldir)/go; do \
175
          if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
176
          f=$(html__strip_dir) \
177
          if test -d "$$d$$p"; then \
178
            echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
179
            $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
180
            echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
181
            $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
182
          else \
183
            echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
184
            $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
185
          fi; \
186
        done
187
 
188
go.install-man: $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext)
189
 
190
$(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext): doc/gccgo.1 installdirs
191
        -rm -f $@
192
        -$(INSTALL_DATA) $< $@
193
        -chmod a-x $@
194
 
195
go.uninstall:
196
        rm -rf $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
197
        rm -rf $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext)
198
        rm -rf $(DESTDIR)$(bindir)/$(GCCGO_TARGET_INSTALL_NAME)$(exeext)
199
        rm -rf $(DESTDIR)$(infodir)/gccgo.info*
200
 
201
# Clean hooks.
202
 
203
go.mostlyclean:
204
        -rm -f go/*$(objext)
205
        -rm -f go/*$(coverageexts)
206
go.clean:
207
go.distclean:
208
go.maintainer-clean:
209
        -rm -f $(docobjdir)/gccgo.1
210
 
211
# Stage hooks.
212
 
213
go.stage1: stage1-start
214
        -mv go/*$(objext) stage1/go
215
go.stage2: stage2-start
216
        -mv go/*$(objext) stage2/go
217
go.stage3: stage3-start
218
        -mv go/*$(objext) stage3/go
219
go.stage4: stage4-start
220
        -mv go/*$(objext) stage4/go
221
go.stageprofile: stageprofile-start
222
        -mv go/*$(objext) stageprofile/go
223
go.stagefeedback: stagefeedback-start
224
        -mv go/*$(objext) stagefeedback/go
225
 
226
GO_SYSTEM_H = go/go-system.h $(CONFIG_H) $(SYSTEM_H) coretypes.h \
227
        $(DIAGNOSTIC_CORE_H) $(INPUT_H) intl.h
228
 
229
GO_C_H = go/go-c.h $(MACHMODE_H)
230
GO_LINEMAP_H = go/gofrontend/go-linemap.h $(GO_SYSTEM_H) go/go-location.h
231
GO_LEX_H = go/gofrontend/lex.h go/gofrontend/operator.h $(GO_LINEMAP_H)
232
GO_PARSE_H = go/gofrontend/parse.h
233
GO_GOGO_H = go/gofrontend/gogo.h $(GO_LINEMAP_H)
234
GO_TYPES_H = go/gofrontend/types.h $(GO_LINEMAP_H)
235
GO_STATEMENTS_H = go/gofrontend/statements.h go/gofrontend/operator.h
236
GO_EXPRESSIONS_H = go/gofrontend/expressions.h go/gofrontend/operator.h
237
GO_EXPORT_H = go/gofrontend/export.h go/gofrontend/string-dump.h
238
GO_IMPORT_H = go/gofrontend/import.h $(GO_EXPORT_H) $(GO_LINEMAP_H)
239
GO_RUNTIME_H = go/gofrontend/runtime.h go/gofrontend/runtime.def
240
GO_AST_DUMP_H = go/gofrontend/ast-dump.h go/gofrontend/string-dump.h
241
 
242
go/go-backend.o: go/go-backend.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
243
        $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) output.h $(TARGET_H) \
244
        $(COMMON_TARGET_H)
245
 
246
CFLAGS-go/go-lang.o += -DDEFAULT_TARGET_VERSION=\"$(version)\" \
247
        -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\"
248
go/go-lang.o: go/go-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \
249
                $(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
250
                $(FLAGS_H) convert.h $(DIAGNOSTIC_H) langhooks.h \
251
                $(LANGHOOKS_DEF_H) $(EXCEPT_H) $(TARGET_H) $(GO_C_H) \
252
                gt-go-go-lang.h gtype-go.h $(COMMON_TARGET_H)
253
 
254
GOINCLUDES = -I $(srcdir)/go -I $(srcdir)/go/gofrontend
255
 
256
go/go-gcc.o: go/go-gcc.cc $(GO_SYSTEM_H) $(TREE_H) tree-iterator.h \
257
                $(GIMPLE_H) toplev.h $(GO_C_H) $(GO_GOGO_H) \
258
                go/gofrontend/backend.h
259
        $(CXX) -c $(GOINCLUDES) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $< $(OUTPUT_OPTION)
260
 
261
go/go-linemap.o: go/go-linemap.cc $(GO_SYSTEM_H) $(GO_LINEMAP_H)
262
        $(CXX) -c $(GOINCLUDES) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $< $(OUTPUT_OPTION)
263
 
264
go/%.o: go/gofrontend/%.cc
265
        $(CXX) -c $(GOINCLUDES) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $< $(OUTPUT_OPTION)
266
 
267
go/ast-dump.o: go/gofrontend/ast-dump.cc $(GO_SYSTME_H) $(GO_GOGO_H) \
268
        $(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) $(GO_TYPES_H) \
269
        $(GO_AST_DUMP_H) $(GO_C_H) go/gofrontend/go-dump.h
270
go/dataflow.o: go/gofrontend/dataflow.cc $(GO_SYSTEM_H) $(GO_GOGO_H) \
271
        $(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) go/gofrontend/dataflow.h
272
go/export.o: go/gofrontend/export.cc $(GO_SYSTEM_H) \
273
        $(srcdir)/../include/sha1.h $(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) \
274
        $(GO_STATEMENTS_H) $(GO_EXPORT_H)
275
go/expressions.o: go/gofrontend/expressions.cc $(GO_SYSTEM_H) $(TOPLEV_H) \
276
        intl.h $(TREE_H) $(GIMPLE_H) tree-iterator.h convert.h $(REAL_H) \
277
        realmpfr.h $(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) \
278
        $(GO_EXPORT_H) $(GO_IMPORT_H) $(GO_STATEMENTS_H) $(GO_LEX_H) \
279
        $(GO_RUNTIME_H) go/gofrontend/backend.h $(GO_EXPRESSIONS_H) \
280
        $(GO_AST_DUMP_H)
281
go/go.o: go/gofrontend/go.cc $(GO_SYSTEM_H) $(GO_C_H) $(GO_LEX_H) \
282
        $(GO_PARSE_H) go/gofrontend/backend.h $(GO_GOGO_H)
283
go/go-dump.o: go/gofrontend/go-dump.cc $(GO_SYSTEM_H) $(GO_C_H) \
284
        go/gofrontend/go-dump.h
285
go/go-optimize.o: go/gofrontend/go-optimize.cc $(GO_SYSTEM_H) $(GO_C_H) \
286
        go/gofrontend/go-optimize.h
287
go/gogo-tree.o: go/gofrontend/gogo-tree.cc $(GO_SYSTEM_H) $(TOPLEV_H) \
288
        $(TREE_H) $(GIMPLE_H) tree-iterator.h $(CGRAPH_H) langhooks.h \
289
        convert.h output.h $(DIAGNOSTIC_H) $(GO_TYPES_H) \
290
        $(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) $(GO_RUNTIME_H) \
291
        go/gofrontend/backend.h $(GO_GOGO_H)
292
go/gogo.o: go/gofrontend/gogo.cc $(GO_SYSTEM_H) $(GO_C_H) \
293
        go/gofrontend/go-dump.h $(GO_LEX_H) $(GO_TYPES_H) $(GO_STATEMENTS_H) \
294
        $(GO_EXPRESSIONS_H) go/gofrontend/dataflow.h $(GO_RUNTIME_H) \
295
        $(GO_IMPORT_H) $(GO_EXPORT_H) go/gofrontend/backend.h $(GO_GOGO_H)
296
go/import.o: go/gofrontend/import.cc $(GO_SYSTEM_H) \
297
        $(srcdir)/../include/filenames.h $(srcdir)/../include/simple-object.h \
298
        $(GO_C_H) $(GO_GOGO_H) $(GO_LEX_H) $(GO_TYPES_H) $(GO_EXPORT_H) \
299
        $(GO_IMPORT_H)
300
go/import-archive.o: go/gofrontend/import-archive.cc $(GO_SYSTEM_H) \
301
        $(GO_IMPORT_H)
302
go/lex.o: go/gofrontend/lex.cc $(GO_LEX_H) $(GO_SYSTEM_H)
303
go/parse.o: go/gofrontend/parse.cc $(GO_SYSTEM_H) $(GO_LEX_H) $(GO_GOGO_H) \
304
        $(GO_TYPES_H) $(GO_STATEMENTS_H) $(GO_EXPRESSIONS_H) $(GO_PARSE_H)
305
go/runtime.o: go/gofrontend/runtime.cc $(GO_SYSTEM_H) $(GO_GOGO_H) \
306
        $(GO_TYPES_H) $(GO_EXPRESSIONS_H) $(GO_RUNTIME_H) \
307
        go/gofrontend/runtime.def
308
go/statements.o: go/gofrontend/statements.cc $(GO_SYSTEM_H) \
309
        $(GO_C_H) $(GO_TYPES_H) $(GO_EXPRESSIONS_H) $(GO_GOGO_H) \
310
        $(GO_RUNTIME_H) go/gofrontend/backend.h $(GO_STATEMENTS_H) \
311
        $(GO_AST_DUMP_H)
312
go/types.o: go/gofrontend/types.cc $(GO_SYSTEM_H) $(TOPLEV_H) intl.h $(TREE_H) \
313
        $(GIMPLE_H) $(REAL_H) convert.h $(GO_C_H) $(GO_GOGO_H) \
314
        go/gofrontend/operator.h $(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) \
315
        $(GO_EXPORT_H) $(GO_IMPORT_H) go/gofrontend/backend.h $(GO_TYPES_H)
316
go/unsafe.o: go/gofrontend/unsafe.cc $(GO_SYSTEM_H) $(GO_C_H) $(GO_TYPES_H) \
317
        $(GO_GOGO_H)

powered by: WebSVN 2.1.0

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