]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/Makefile.in
sim: introduce {COMPILE,LINK}_FOR_BUILD
[thirdparty/binutils-gdb.git] / sim / igen / Makefile.in
1 # The IGEN simulator generator for GDB, the GNU Debugger.
2 #
3 # Copyright 2002-2021 Free Software Foundation, Inc.
4 #
5 # Contributed by Andrew Cagney.
6 #
7 # This file is part of GDB.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 default: all
23
24 VPATH = @srcdir@
25 srcdir = @srcdir@
26 srcroot = $(srcdir)/../..
27
28 prefix = @prefix@
29 exec_prefix = @exec_prefix@
30
31 host_alias = @host_alias@
32 target_alias = @target_alias@
33 bindir = @bindir@
34 libdir = @libdir@
35 tooldir = $(libdir)/$(target_alias)
36
37 datarootdir = @datarootdir@
38 datadir = @datadir@
39 mandir = @mandir@
40 man1dir = $(mandir)/man1
41 man2dir = $(mandir)/man2
42 man3dir = $(mandir)/man3
43 man4dir = $(mandir)/man4
44 man5dir = $(mandir)/man5
45 man6dir = $(mandir)/man6
46 man7dir = $(mandir)/man7
47 man8dir = $(mandir)/man8
48 man9dir = $(mandir)/man9
49 infodir = @infodir@
50 includedir = @includedir@
51
52 SHELL = @SHELL@
53
54 INSTALL = @INSTALL@
55 INSTALL_PROGRAM = @INSTALL_PROGRAM@
56 INSTALL_DATA = @INSTALL_DATA@
57
58 CC = @CC@
59 CFLAGS = @CFLAGS@
60
61 CC_FOR_BUILD = @CC_FOR_BUILD@
62 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
63
64 WARN_CFLAGS = @WARN_CFLAGS@
65 WERROR_CFLAGS = @WERROR_CFLAGS@
66 IGEN_WARN_CFLAGS = $(WARN_CFLAGS)
67 IGEN_WERROR_CFLAGS = $(WERROR_CFLAGS)
68
69 BISON = bison
70 MAKEINFO = makeinfo
71
72 .NOEXPORT:
73 MAKEOVERRIDES=
74
75 LIB_INCLUDES = -I$(srcdir)/../../include
76 INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES)
77
78 BUILD_CFLAGS = \
79 $(CFLAGS_FOR_BUILD) \
80 $(IGEN_WARN_CFLAGS) \
81 $(IGEN_WERROR_CFLAGS) \
82 $(INCLUDES)
83 BUILD_LDFLAGS =
84
85 COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
86 LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(BUILD_LDFLAGS) -o $@
87
88 all: igen
89 #all: tmp-filter tmp-table tmp-ld-insn tmp-ld-cache tmp-ld-decode tmp-gen
90
91 .c.o:
92 $(COMPILE_FOR_BUILD) -c $<
93
94 IGEN_OBJS=\
95 table.o \
96 lf.o misc.o \
97 filter_host.o \
98 ld-decode.o \
99 ld-cache.o \
100 filter.o \
101 ld-insn.o \
102 gen-model.o \
103 gen-itable.o \
104 gen-icache.o \
105 gen-semantics.o \
106 gen-idecode.o \
107 gen-support.o \
108 gen-engine.o \
109 gen.o
110
111 igen: igen.o $(IGEN_OBJS)
112 $(LINK_FOR_BUILD) igen.o $(IGEN_OBJS)
113
114 igen.o: igen.c misc.h filter_host.h lf.h table.h ld-decode.h ld-cache.h ld-insn.h filter.h gen-model.h gen-itable.h gen-icache.h gen-idecode.h gen-engine.h gen-semantics.h gen-support.h gen.h igen.h
115 $(COMPILE_FOR_BUILD) -c $(srcdir)/igen.c
116
117 tmp-table: table.c table.h misc.o lf.o filter_host.o
118 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/table.c misc.o lf.o filter_host.o
119
120 tmp-filter: filter.c filter.h lf.o misc.o filter_host.o
121 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/filter.c lf.o misc.o filter_host.o
122
123 tmp-ld-decode: ld-decode.h ld-decode.c filter.o misc.o lf.o table.o filter_host.o gen.h igen.h
124 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-decode.c filter.o misc.o lf.o table.o filter_host.o
125
126 tmp-ld-cache: ld-cache.c ld-cache.h ld-insn.o misc.o lf.o table.o filter_host.o gen.h igen.h
127 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-cache.c ld-insn.o filter.o misc.o lf.o table.o filter_host.o
128
129 tmp-ld-insn: ld-insn.c ld-insn.h misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
130 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-insn.c misc.o lf.o table.o filter_host.o filter.o
131
132 tmp-gen: gen.c gen.h ld-insn.o ld-decode.o misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
133 $(LINK_FOR_BUILD) -DMAIN $(srcdir)/gen.c misc.o ld-insn.o ld-decode.o lf.o table.o filter_host.o filter.o
134
135 filter_host.o: filter_host.c filter_host.h
136 table.o: table.c misc.h filter_host.h lf.h table.h
137 lf.o: lf.c misc.h filter_host.h lf.h
138 filter.o: filter.c misc.h lf.h table.h filter.h
139 ld-decode.o: ld-decode.c misc.h lf.h table.h ld-decode.h igen.h
140 ld-cache.o: ld-cache.c misc.h lf.h table.h ld-cache.h igen.h
141 ld-insn.o: ld-insn.c misc.h lf.h table.h ld-insn.h gen.h igen.h
142 gen-model.o: gen-model.c misc.h lf.h table.h gen-model.h ld-decode.h gen.h igen.h ld-insn.h
143 gen-itable.o: gen-itable.c misc.h lf.h table.h gen-itable.h ld-decode.h gen.h igen.h ld-insn.h gen.h filter.h
144 gen-icache.o: gen-icache.c misc.h lf.h table.h gen-icache.h ld-decode.h gen.h igen.h ld-insn.h gen-semantics.h gen-idecode.h filter.h
145 gen-semantics.o: gen-semantics.c misc.h lf.h table.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
146 gen-idecode.o: gen-idecode.c misc.h lf.h table.h gen-idecode.h gen-icache.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
147 gen-engine.o: gen-engine.c misc.h lf.h table.h gen-idecode.h gen-engine.h gen-icache.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
148 gen-support.o: gen-support.c misc.h lf.h table.h gen-support.h ld-decode.h gen.h igen.h ld-insn.h filter.h
149 gen.o: gen.c misc.h lf.h table.h gen-icache.h ld-decode.h gen.h igen.h ld-insn.h gen-semantics.h gen-idecode.h filter.h
150 misc.o: misc.c misc.h filter_host.h
151
152
153 tags etags: TAGS
154
155 TAGS:
156 etags $(srcdir)/*.h $(srcdir)/*.c
157
158 clean mostlyclean:
159 rm -f tmp-* *.[oasi] core igen
160
161 distclean realclean: clean
162 rm -f TAGS Makefile config.cache config.status defines.h config.log
163
164 maintainer-clean: distclean
165 rm -f *~ *.log ppc-config.h core *.core
166
167 Makefile: Makefile.in config.status
168 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
169
170 config.status: configure
171 $(SHELL) ./config.status --recheck
172
173 check:
174 install:
175 install-strip:
176 #