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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [objcp/] [Make-lang.in] - Blame information for rev 297

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

Line No. Rev Author Line
1 290 jeremybenn
# Top level -*- makefile -*- fragment for GNU Objective-C++
2
#   Copyright (C) 2005, 2007, 2008, 2009, 2010
3
#   Free Software Foundation, Inc.
4
#   Contributed by Ziemowit Laski  
5
 
6
#This file is part of GCC.
7
 
8
#GCC is free software; you can redistribute it and/or modify
9
#it under the terms of the GNU General Public License as published by
10
#the Free Software Foundation; either version 3, or (at your option)
11
#any later version.
12
 
13
#GCC is distributed in the hope that it will be useful,
14
#but WITHOUT ANY WARRANTY; without even the implied warranty of
15
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
#GNU General Public License for more details.
17
 
18
#You should have received a copy of the GNU General Public License
19
#along with GCC; see the file COPYING3.  If not see
20
#.
21
 
22
 
23
# This file provides the language dependent support in the main Makefile.
24
# Each language makefile fragment must provide the following targets:
25
#
26
# foo.all.cross, foo.start.encap, foo.rest.encap,
27
# foo.install-common, foo.install-man, foo.install-info, foo.install-pdf,
28
# foo.install-html, foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall,
29
# foo.mostlyclean, foo.clean, foo.distclean,
30
# foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
31
#
32
# where `foo' is the name of the language.
33
#
34
# It should also provide rules for:
35
#
36
# - making any compiler driver (eg: g++)
37
# - the compiler proper (eg: cc1plus)
38
# - define the names for selecting the language in LANGUAGES.
39
 
40
#
41
# Define the names for selecting Objective-C++ in LANGUAGES.
42
obj-c++: cc1objplus$(exeext)
43
 
44
# Tell GNU make to ignore these if they exist.
45
.PHONY: obj-c++
46
 
47
# Use maximal warnings for this front end.  Also, make ObjC and C++
48
# headers accessible.
49
objcp-warn = $(STRICT_WARN) -DOBJCPLUS -I$(srcdir)/objc -I$(srcdir)/cp
50
 
51
# Language-specific object files for Objective C++.
52
OBJCXX_OBJS = objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o \
53
   $(CXX_AND_OBJCXX_OBJS)
54
 
55
obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
56
 
57
cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \
58
                $(LIBDEPS)
59
        $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
60
                $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
61
 
62
cc1objplus-checksum.c : cc1objplus-dummy$(exeext) build/genchecksum$(build_exeext)
63
        build/genchecksum$(build_exeext) cc1objplus-dummy$(exeext) > $@
64
 
65
cc1objplus-checksum.o : cc1objplus-checksum.c $(CONFIG_H) $(SYSTEM_H)
66
 
67
cc1objplus$(exeext): $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBDEPS)
68
        $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
69
                $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
70
 
71
# Objective C++ language specific files.
72
 
73
objcp/objcp-lang.o : objcp/objcp-lang.c \
74
  $(CXX_TREE_H) $(TM_H) toplev.h debug.h langhooks.h objc/objc-act.h \
75
  $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-objcp.h \
76
  $(DIAGNOSTIC_H) cp/cp-objcp-common.h $(GIMPLE_H) $(EXCEPT_H)
77
 
78
objcp/objcp-decl.o : objcp/objcp-decl.c \
79
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_TREE_H) \
80
   toplev.h $(GGC_H) $(C_PRAGMA_H) input.h $(FLAGS_H) output.h \
81
   objc/objc-act.h objcp/objcp-decl.h $(GIMPLE_H) $(EXPR_H) $(TARGET_H)
82
 
83
# The following must be an explicit rule; please keep in sync with the implicit
84
# one in Makefile.in.
85
objcp/objcp-act.o : objc/objc-act.c \
86
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
87
   $(EXPR_H) $(TARGET_H) $(CXX_TREE_H) $(DIAGNOSTIC_H) toplev.h $(FLAGS_H) \
88
   objc/objc-act.h input.h $(FUNCTION_H) output.h debug.h langhooks.h \
89
   objcp/objcp-decl.h $(LANGHOOKS_DEF_H) $(HASHTAB_H) gt-objc-objc-act.h \
90
   $(GIMPLE_H)
91
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
92
                $(OUTPUT_OPTION)
93
 
94
po-generated:
95
 
96
#
97
# Build hooks:
98
 
99
obj-c++.all.cross:
100
obj-c++.start.encap:
101
obj-c++.rest.encap:
102
obj-c++.info:
103
obj-c++.install-info:
104
obj-c++.dvi:
105
obj-c++.pdf:
106
obj-c++.install-pdf:
107
obj-c++.html:
108
obj-c++.install-html:
109
obj-c++.srcinfo:
110
obj-c++.srcextra:
111
obj-c++.man:
112
obj-c++.install-plugin:
113
 
114
obj-c++.tags: force
115
        cd $(srcdir)/objcp; etags -o TAGS.sub *.y *.c *.h; \
116
        etags --include TAGS.sub --include ../TAGS.sub
117
 
118
lang_checks += check-obj-c++
119
 
120
#
121
# Install hooks:
122
# cc1objplus is installed elsewhere as part of $(COMPILERS).
123
 
124
obj-c++.install-common:
125
 
126
obj-c++.install-man:
127
 
128
obj-c++.uninstall:
129
#
130
# Clean hooks:
131
# A lot of the ancillary files are deleted by the main makefile.
132
# We just have to delete files specific to us.
133
obj-c++.mostlyclean:
134
        -rm -f objcp/*$(objext)
135
        -rm -f objcp/*$(coverageexts)
136
obj-c++.clean: obj-c++.mostlyclean
137
obj-c++.distclean:
138
        -rm -f objcp/config.status objcp/Makefile
139
obj-c++.maintainer-clean:
140
 
141
#
142
# Stage hooks:
143
 
144
obj-c++.stage1: stage1-start
145
        -mv objcp/*$(objext) stage1/objcp
146
obj-c++.stage2: stage2-start
147
        -mv objcp/*$(objext) stage2/objcp
148
obj-c++.stage3: stage3-start
149
        -mv objcp/*$(objext) stage3/objcp
150
obj-c++.stage4: stage4-start
151
        -mv objcp/*$(objext) stage4/objcp
152
obj-c++.stageprofile: stageprofile-start
153
        -mv objcp/*$(objext) stageprofile/objcp
154
obj-c++.stagefeedback: stagefeedback-start
155
        -mv objcp/*$(objext) stagefeedback/objcp

powered by: WebSVN 2.1.0

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