]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/lto/Make-lang.in
Pass -m* and -v to -plugin-opt
[thirdparty/gcc.git] / gcc / lto / Make-lang.in
CommitLineData
d7f09764
DN
1# Top level -*- makefile -*- fragment for LTO
2# Copyright (C) 2009
3# 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# <http://www.gnu.org/licenses/>.
20
21# Variables
22
23# The name of the LTO compiler.
24LTO_EXE = lto1$(exeext)
25# The LTO-specific object files inclued in $(LTO_EXE).
26LTO_OBJS = lto/lto-lang.o lto/lto.o lto/lto-elf.o attribs.o
27LTO_H = lto/lto.h $(HASHTAB_H)
28LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
29LTO_TREE_H = lto/lto-tree.h $(LINKER_PLUGIN_API_H)
30
31
32# Rules
33
34# These hooks are used by the main GCC Makefile. Consult that
35# Makefile for documentation.
36lto.all.cross: $(LTO_EXE)
37lto.start.encap: $(LTO_EXE)
38lto.rest.encap:
39lto.tags:
40lto.install-common:
41lto.install-man:
42lto.install-info:
43lto.dvi:
44lto.pdf:
45lto.install-pdf:
46lto.html:
47lto.uninstall:
48lto.info:
49lto.man:
50lto.srcextra:
51lto.srcman:
52lto.srcinfo:
53lto.install-plugin:
54
55lto.mostlyclean:
56 rm -f $(LTO_OBJS) $(LTO_EXE)
57
58lto.clean:
59lto.distclean:
60lto.maintainer-clean:
61lto.stage1:
62lto.stage2:
63lto.stage3:
64lto.stage4:
65lto.stageprofile:
66lto.stagefeedback:
67
68# LTO rules.
69
70# Use strict warnings for this front end.
71lto-warn = $(STRICT_WARN)
72
73$(LTO_EXE): $(LTO_OBJS) $(BACKEND) $(LIBDEPS)
a818bca1 74 $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
d7f09764
DN
75 $(LTO_OBJS) $(BACKEND) $(BACKENDLIBS) $(LIBS) -lelf
76
77# Dependencies
78lto/lto-lang.o: lto/lto-lang.c $(CONFIG_H) coretypes.h debug.h \
79 flags.h $(GGC_H) langhooks.h $(LANGHOOKS_DEF_H) $(SYSTEM_H) \
80 $(TARGET_H) $(LTO_H) $(GIMPLE_H) gtype-lto.h gt-lto-lto-lang.h \
81 $(EXPR_H)
82lto/lto.o: lto/lto.c $(CONFIG_H) $(SYSTEM_H) coretypes.h opts.h \
83 toplev.h $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) $(LIBIBERTY_H) \
84 $(CGRAPH_H) $(GGC_H) tree-ssa-operands.h $(TREE_PASS_H) \
85 langhooks.h vec.h $(BITMAP_H) pointer-set.h $(IPA_PROP_H) \
86 $(COMMON_H) $(TIMEVAR_H) $(GIMPLE_H) $(LTO_H) $(LTO_TREE_H) \
87 $(LTO_TAGS_H) $(LTO_STREAMER_H)
88lto/lto-elf.o: lto/lto-elf.c $(CONFIG_H) coretypes.h $(SYSTEM_H) \
89 toplev.h $(LTO_H) $(TM_H) $(LIBIBERTY_H) $(GGC_H) $(LTO_STREAMER_H)