1c5dff60aSchristos## Process this file with automake to generate Makefile.in
248596154Schristos#
3*1424dfb3Schristos#   Copyright (C) 2012-2020 Free Software Foundation, Inc.
448596154Schristos#
548596154Schristos# This file is free software; you can redistribute it and/or modify
648596154Schristos# it under the terms of the GNU General Public License as published by
748596154Schristos# the Free Software Foundation; either version 3 of the License, or
848596154Schristos# (at your option) any later version.
948596154Schristos#
1048596154Schristos# This program is distributed in the hope that it will be useful,
1148596154Schristos# but WITHOUT ANY WARRANTY; without even the implied warranty of
1248596154Schristos# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1348596154Schristos# GNU General Public License for more details.
1448596154Schristos#
1548596154Schristos# You should have received a copy of the GNU General Public License
1648596154Schristos# along with this program; see the file COPYING3.  If not see
1748596154Schristos# <http://www.gnu.org/licenses/>.
1848596154Schristos#
19c5dff60aSchristos
2007163879SchristosAUTOMAKE_OPTIONS = foreign no-dist
21c5dff60aSchristosACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
22c5dff60aSchristos
23c5dff60aSchristos# Build '.' first so all generated files exist.
24c5dff60aSchristosSUBDIRS = . po
25c5dff60aSchristos
26c5dff60aSchristosINCDIR = $(srcdir)/../include
27c5dff60aSchristosBFDDIR = $(srcdir)/../bfd
28c5dff60aSchristos
29c5dff60aSchristosWARN_CFLAGS = @WARN_CFLAGS@
30c5dff60aSchristosNO_WERROR = @NO_WERROR@
31c5dff60aSchristosAM_CFLAGS = $(WARN_CFLAGS)
32c5dff60aSchristos
33c5dff60aSchristosCOMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(INCLUDES) $(AM_CPPFLAGS) \
34c5dff60aSchristos	$(CFLAGS_FOR_BUILD)
35c5dff60aSchristosLINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
36c5dff60aSchristos	$(LDFLAGS_FOR_BUILD) -o $@
37c5dff60aSchristos
38c5dff60aSchristoslibopcodes_la_LDFLAGS =
39c5dff60aSchristosif INSTALL_LIBBFD
40c5dff60aSchristosbfdlibdir = @bfdlibdir@
41c5dff60aSchristosbfdincludedir = @bfdincludedir@
42c5dff60aSchristosbfdlib_LTLIBRARIES = libopcodes.la
43c5dff60aSchristosbfdinclude_DATA = $(INCDIR)/dis-asm.h
44c5dff60aSchristoselse
45c5dff60aSchristos# Empty these so that the respective installation directories will not be created.
46c5dff60aSchristosbfdlibdir =
47c5dff60aSchristosbfdincludedir =
48c5dff60aSchristosrpath_bfdlibdir = @bfdlibdir@
49c5dff60aSchristosnoinst_LTLIBRARIES = libopcodes.la
50c5dff60aSchristoslibopcodes_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
51c5dff60aSchristosendif
52c5dff60aSchristos
53c5dff60aSchristos# This is where bfd.h lives.
54c5dff60aSchristosBFD_H = ../bfd/bfd.h
55c5dff60aSchristos
56c5dff60aSchristosBUILD_LIBS = @BUILD_LIBS@
57c5dff60aSchristosBUILD_LIB_DEPS = @BUILD_LIB_DEPS@
58c5dff60aSchristos
59c5dff60aSchristos# Header files.
60c5dff60aSchristosHFILES = \
6148596154Schristos	aarch64-asm.h aarch64-dis.h aarch64-opc.h aarch64-tbl.h \
62*1424dfb3Schristos	bpf-desc.h bpf-opc.h \
6348596154Schristos	epiphany-desc.h epiphany-opc.h \
64c5dff60aSchristos	fr30-desc.h fr30-opc.h \
65c5dff60aSchristos	frv-desc.h frv-opc.h \
66c5dff60aSchristos	i386-init.h \
67c5dff60aSchristos	i386-opc.h \
68c5dff60aSchristos	i386-tbl.h \
69c5dff60aSchristos	ia64-asmtab.h \
70c5dff60aSchristos	ia64-opc.h \
71c5dff60aSchristos	ip2k-desc.h ip2k-opc.h \
72c5dff60aSchristos	iq2000-desc.h iq2000-opc.h \
73c5dff60aSchristos	lm32-desc.h \
74c5dff60aSchristos	lm32-opc.h \
75c5dff60aSchristos	m32c-desc.h m32c-opc.h \
76c5dff60aSchristos	m32r-desc.h m32r-opc.h \
77c5dff60aSchristos	mcore-opc.h \
78c5dff60aSchristos	mep-desc.h mep-opc.h \
79c5dff60aSchristos	microblaze-opc.h \
80c5dff60aSchristos	mt-desc.h mt-opc.h \
81c5dff60aSchristos	score-opc.h \
82c5dff60aSchristos	sh-opc.h \
83c5dff60aSchristos	sysdep.h \
84c5dff60aSchristos	xc16x-desc.h xc16x-opc.h \
85c5dff60aSchristos	xstormy16-desc.h xstormy16-opc.h \
86c5dff60aSchristos	z8k-opc.h
87c5dff60aSchristos
88c5dff60aSchristos# C source files that correspond to .o's ending up in libopcodes
89c5dff60aSchristos# for all machines.
90c5dff60aSchristosTARGET_LIBOPCODES_CFILES = \
9148596154Schristos	aarch64-asm.c \
9248596154Schristos	aarch64-asm-2.c \
9348596154Schristos	aarch64-dis.c \
9448596154Schristos	aarch64-dis-2.c \
9548596154Schristos	aarch64-opc.c \
9648596154Schristos	aarch64-opc-2.c \
97c5dff60aSchristos	alpha-dis.c \
98c5dff60aSchristos	alpha-opc.c \
99c5dff60aSchristos	arc-dis.c \
100c5dff60aSchristos	arc-ext.c \
101c5dff60aSchristos	arc-opc.c \
102c5dff60aSchristos	arm-dis.c \
103c5dff60aSchristos	avr-dis.c \
104c5dff60aSchristos	bfin-dis.c \
105c5dff60aSchristos	cgen-asm.c \
106c5dff60aSchristos	cgen-bitset.c \
107c5dff60aSchristos	cgen-dis.c \
108c5dff60aSchristos	cgen-opc.c \
109c5dff60aSchristos	cr16-dis.c \
110c5dff60aSchristos	cr16-opc.c \
111c5dff60aSchristos	cris-dis.c \
112c5dff60aSchristos	cris-opc.c \
113c5dff60aSchristos	crx-dis.c \
114c5dff60aSchristos	crx-opc.c \
11507163879Schristos	csky-dis.c \
116c5dff60aSchristos	d10v-dis.c \
117c5dff60aSchristos	d10v-opc.c \
118c5dff60aSchristos	d30v-dis.c \
119c5dff60aSchristos	d30v-opc.c \
120c5dff60aSchristos	dlx-dis.c \
121*1424dfb3Schristos	bpf-asm.c \
122*1424dfb3Schristos	bpf-desc.c \
123*1424dfb3Schristos	bpf-dis.c \
124*1424dfb3Schristos	bpf-ibld.c \
125*1424dfb3Schristos	bpf-opc.c \
12648596154Schristos	epiphany-asm.c \
12748596154Schristos	epiphany-desc.c \
12848596154Schristos	epiphany-dis.c \
12948596154Schristos	epiphany-ibld.c \
13048596154Schristos	epiphany-opc.c \
131c5dff60aSchristos	fr30-asm.c \
132c5dff60aSchristos	fr30-desc.c \
133c5dff60aSchristos	fr30-dis.c \
134c5dff60aSchristos	fr30-ibld.c \
135c5dff60aSchristos	fr30-opc.c \
136c5dff60aSchristos	frv-asm.c \
137c5dff60aSchristos	frv-desc.c \
138c5dff60aSchristos	frv-dis.c \
139c5dff60aSchristos	frv-ibld.c \
140c5dff60aSchristos	frv-opc.c \
141ed6a76a9Schristos	ft32-dis.c \
142ed6a76a9Schristos	ft32-opc.c \
143c5dff60aSchristos	h8300-dis.c \
144c5dff60aSchristos	hppa-dis.c \
145c5dff60aSchristos	i386-dis.c \
146c5dff60aSchristos	i386-opc.c \
147c5dff60aSchristos	ia64-dis.c \
148c5dff60aSchristos	ia64-opc.c \
149c5dff60aSchristos	ip2k-asm.c \
150c5dff60aSchristos	ip2k-desc.c \
151c5dff60aSchristos	ip2k-dis.c \
152c5dff60aSchristos	ip2k-ibld.c \
153c5dff60aSchristos	ip2k-opc.c \
154c5dff60aSchristos	iq2000-asm.c \
155c5dff60aSchristos	iq2000-desc.c \
156c5dff60aSchristos	iq2000-dis.c \
157c5dff60aSchristos	iq2000-ibld.c \
158c5dff60aSchristos	iq2000-opc.c \
159c5dff60aSchristos	lm32-asm.c \
160c5dff60aSchristos	lm32-desc.c \
161c5dff60aSchristos	lm32-dis.c \
162c5dff60aSchristos	lm32-ibld.c \
163c5dff60aSchristos	lm32-opc.c \
164c5dff60aSchristos	lm32-opinst.c \
165c5dff60aSchristos	m10200-dis.c \
166c5dff60aSchristos	m10200-opc.c \
167c5dff60aSchristos	m10300-dis.c \
168c5dff60aSchristos	m10300-opc.c \
169c5dff60aSchristos	m32c-asm.c \
170c5dff60aSchristos	m32c-desc.c \
171c5dff60aSchristos	m32c-dis.c \
172c5dff60aSchristos	m32c-ibld.c \
173c5dff60aSchristos	m32c-opc.c \
174c5dff60aSchristos	m32r-asm.c \
175c5dff60aSchristos	m32r-desc.c \
176c5dff60aSchristos	m32r-dis.c \
177c5dff60aSchristos	m32r-ibld.c \
178c5dff60aSchristos	m32r-opc.c \
179c5dff60aSchristos	m32r-opinst.c \
180c5dff60aSchristos	m68hc11-dis.c \
181c5dff60aSchristos	m68hc11-opc.c \
182c5dff60aSchristos	m68k-dis.c \
183c5dff60aSchristos	m68k-opc.c \
18407163879Schristos	s12z-dis.c \
18507163879Schristos	s12z-opc.c \
186c5dff60aSchristos	mcore-dis.c \
187c5dff60aSchristos	mep-asm.c \
188c5dff60aSchristos	mep-desc.c \
189c5dff60aSchristos	mep-dis.c \
190c5dff60aSchristos	mep-ibld.c \
191c5dff60aSchristos	mep-opc.c \
19248596154Schristos	metag-dis.c \
193c5dff60aSchristos	microblaze-dis.c \
19448596154Schristos	micromips-opc.c \
195c5dff60aSchristos	mips-dis.c \
196c5dff60aSchristos	mips-opc.c \
197c5dff60aSchristos	mips16-opc.c \
198c5dff60aSchristos	mmix-dis.c \
199c5dff60aSchristos	mmix-opc.c \
200c5dff60aSchristos	moxie-dis.c \
201c5dff60aSchristos	moxie-opc.c \
2027af5a897Schristos	msp430-decode.c \
203c5dff60aSchristos	msp430-dis.c \
204c5dff60aSchristos	mt-asm.c \
205c5dff60aSchristos	mt-desc.c \
206c5dff60aSchristos	mt-dis.c \
207c5dff60aSchristos	mt-ibld.c \
208c5dff60aSchristos	mt-opc.c \
2097af5a897Schristos	nds32-asm.c \
2107af5a897Schristos	nds32-dis.c \
21107163879Schristos	nfp-dis.c \
21248596154Schristos	nios2-dis.c \
21348596154Schristos	nios2-opc.c \
214c5dff60aSchristos	ns32k-dis.c \
21526a53354Schristos	or1k-asm.c \
21626a53354Schristos	or1k-desc.c \
21726a53354Schristos	or1k-dis.c \
21826a53354Schristos	or1k-ibld.c \
21926a53354Schristos	or1k-opc.c \
220c5dff60aSchristos	pdp11-dis.c \
221c5dff60aSchristos	pdp11-opc.c \
222c5dff60aSchristos	pj-dis.c \
223c5dff60aSchristos	pj-opc.c \
224c5dff60aSchristos	ppc-dis.c \
225c5dff60aSchristos	ppc-opc.c \
2261c468f90Schristos	pru-dis.c \
2271c468f90Schristos	pru-opc.c \
2281c468f90Schristos	riscv-dis.c \
2291c468f90Schristos	riscv-opc.c \
23048596154Schristos	rl78-decode.c \
23148596154Schristos	rl78-dis.c \
232c5dff60aSchristos	rx-decode.c \
233c5dff60aSchristos	rx-dis.c \
234c5dff60aSchristos	s390-dis.c \
235c5dff60aSchristos	s390-opc.c \
236c5dff60aSchristos	score-dis.c \
237c5dff60aSchristos	score7-dis.c \
238c5dff60aSchristos	sh-dis.c \
239c5dff60aSchristos	sparc-dis.c \
240c5dff60aSchristos	sparc-opc.c \
241c5dff60aSchristos	spu-dis.c \
242c5dff60aSchristos	spu-opc.c \
243c5dff60aSchristos	tic30-dis.c \
244c5dff60aSchristos	tic4x-dis.c \
245c5dff60aSchristos	tic54x-dis.c \
246c5dff60aSchristos	tic54x-opc.c \
247c5dff60aSchristos	tic6x-dis.c \
24848596154Schristos	tilegx-dis.c \
24948596154Schristos	tilegx-opc.c \
25048596154Schristos	tilepro-dis.c \
25148596154Schristos	tilepro-opc.c \
252c5dff60aSchristos	v850-dis.c \
253c5dff60aSchristos	v850-opc.c \
254c5dff60aSchristos	vax-dis.c \
25526a53354Schristos	visium-dis.c \
25626a53354Schristos	visium-opc.c \
2571c468f90Schristos	wasm32-dis.c \
258c5dff60aSchristos	xc16x-asm.c \
259c5dff60aSchristos	xc16x-desc.c \
260c5dff60aSchristos	xc16x-dis.c \
261c5dff60aSchristos	xc16x-ibld.c \
262c5dff60aSchristos	xc16x-opc.c \
263c5dff60aSchristos	xstormy16-asm.c \
264c5dff60aSchristos	xstormy16-desc.c \
265c5dff60aSchristos	xstormy16-dis.c \
266c5dff60aSchristos	xstormy16-ibld.c \
267c5dff60aSchristos	xstormy16-opc.c \
268c5dff60aSchristos	xtensa-dis.c \
26948596154Schristos	xgate-dis.c \
27048596154Schristos	xgate-opc.c \
271c5dff60aSchristos	z80-dis.c \
272c5dff60aSchristos	z8k-dis.c
273c5dff60aSchristos
274c5dff60aSchristos# C source files that correspond to .o's ending up in libopcodes.
275c5dff60aSchristosLIBOPCODES_CFILES = \
276c5dff60aSchristos	$(TARGET_LIBOPCODES_CFILES) \
277c5dff60aSchristos	dis-buf.c \
278c5dff60aSchristos	dis-init.c \
279c5dff60aSchristos	disassemble.c
280c5dff60aSchristos
281c5dff60aSchristos# C source files that correspond to .o's.
282c5dff60aSchristosCFILES = \
283c5dff60aSchristos	$(LIBOPCODES_CFILES) \
28448596154Schristos	aarch64-gen.c \
285c5dff60aSchristos	i386-gen.c \
286c5dff60aSchristos	ia64-asmtab.c \
287c5dff60aSchristos	ia64-gen.c \
288c5dff60aSchristos	ia64-opc-a.c \
289c5dff60aSchristos	ia64-opc-b.c \
290c5dff60aSchristos	ia64-opc-f.c \
291c5dff60aSchristos	ia64-opc-i.c \
292c5dff60aSchristos	ia64-opc-m.c \
293c5dff60aSchristos	ia64-opc-d.c \
294c5dff60aSchristos	s390-mkopc.c \
295c5dff60aSchristos	z8kgen.c
296c5dff60aSchristos
297c5dff60aSchristosALL_MACHINES = $(TARGET_LIBOPCODES_CFILES:.c=.lo)
298c5dff60aSchristos
299c5dff60aSchristosOFILES = @BFD_MACHINES@
300c5dff60aSchristos
30126a53354Schristos# development.sh is used to determine -Werror default.
30226a53354SchristosCONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
303c5dff60aSchristos
304c5dff60aSchristosAM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ @INCINTL@
305c5dff60aSchristos
306c5dff60aSchristosdisassemble.lo: disassemble.c
307c5dff60aSchristosif am__fastdepCC
308c5dff60aSchristos	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/disassemble.c
309c5dff60aSchristos	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
310c5dff60aSchristoselse
311c5dff60aSchristosif AMDEP
312c5dff60aSchristos	source='disassemble.c' object='$@' libtool=yes @AMDEPBACKSLASH@
313c5dff60aSchristos	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314c5dff60aSchristosendif
315c5dff60aSchristos	$(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/disassemble.c
316c5dff60aSchristosendif
317c5dff60aSchristos
318c5dff60aSchristoslibopcodes_la_SOURCES =  dis-buf.c disassemble.c dis-init.c
319c5dff60aSchristos# It's desirable to list ../bfd/libbfd.la in DEPENDENCIES and LIBADD.
320c5dff60aSchristos# Unfortunately this causes libtool to add -L$(libdir), referring to the
321c5dff60aSchristos# planned install directory of libbfd.  This can cause us to pick up an
322c5dff60aSchristos# old version of libbfd, or to pick up libbfd for the wrong architecture
323c5dff60aSchristos# if host != build. So for building with shared libraries we use a
324c5dff60aSchristos# hardcoded path to libbfd.so instead of relying on the entries in libbfd.la.
325c5dff60aSchristoslibopcodes_la_DEPENDENCIES = $(OFILES) @SHARED_DEPENDENCIES@
326c5dff60aSchristoslibopcodes_la_LIBADD = $(OFILES) @SHARED_LIBADD@
327c5dff60aSchristoslibopcodes_la_LDFLAGS += -release `cat ../bfd/libtool-soversion` @SHARED_LDFLAGS@
328c5dff60aSchristos# Allow dependency tracking to work on all the source files.
329c5dff60aSchristosEXTRA_libopcodes_la_SOURCES = $(LIBOPCODES_CFILES)
330c5dff60aSchristos
331c5dff60aSchristos# libtool will build .libs/libopcodes.a.  We create libopcodes.a in
332c5dff60aSchristos# the build directory so that we don't have to convert all the
333c5dff60aSchristos# programs that use libopcodes.a simultaneously.  This is a hack which
334c5dff60aSchristos# should be removed if everything else starts using libtool.  FIXME.
335c5dff60aSchristos
336c5dff60aSchristosnoinst_LIBRARIES = libopcodes.a
337c5dff60aSchristoslibopcodes_a_SOURCES =
338c5dff60aSchristos
339c5dff60aSchristosstamp-lib: libopcodes.la
340c5dff60aSchristos	libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
341c5dff60aSchristos	if [ -f $$libtooldir/libopcodes.a ]; then \
342c5dff60aSchristos	  cp $$libtooldir/libopcodes.a libopcodes.tmp; \
343c5dff60aSchristos	  $(RANLIB) libopcodes.tmp; \
344c5dff60aSchristos	  $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
345c5dff60aSchristos	else true; fi
346c5dff60aSchristos	touch stamp-lib
347c5dff60aSchristos
348c5dff60aSchristoslibopcodes.a: stamp-lib ; @true
349c5dff60aSchristos
350c5dff60aSchristosPOTFILES = $(HFILES) $(CFILES)
351c5dff60aSchristospo/POTFILES.in: @MAINT@ Makefile
352c5dff60aSchristos	for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
353c5dff60aSchristos	  && mv tmp $(srcdir)/po/POTFILES.in
354c5dff60aSchristos
355c5dff60aSchristosCLEANFILES = \
35648596154Schristos	stamp-epiphany stamp-fr30 stamp-frv stamp-ip2k stamp-iq2000 stamp-lm32 \
357c5dff60aSchristos	stamp-m32c stamp-m32r stamp-mep stamp-mt \
35826a53354Schristos	stamp-or1k stamp-xc16x stamp-xstormy16 \
359c5dff60aSchristos	libopcodes.a stamp-lib
360c5dff60aSchristos
361c5dff60aSchristos
362c5dff60aSchristosCGENDIR = @cgendir@
36348596154SchristosCPUDIR = $(srcdir)/../cpu
364c5dff60aSchristosCGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
365c5dff60aSchristosCGENFLAGS = -v
366c5dff60aSchristos
367c5dff60aSchristosCGENDEPS = \
368c5dff60aSchristos	$(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
369c5dff60aSchristos	$(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \
370c5dff60aSchristos	$(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \
371c5dff60aSchristos	$(CGENDIR)/opc-opinst.scm \
372c5dff60aSchristos	cgen-asm.in cgen-dis.in cgen-ibld.in
373c5dff60aSchristos
37426a53354SchristosCGEN_CPUS = epiphany fr30 frv ip2k iq2000 lm32 m32c m32r mep mt or1k xc16x xstormy16
375c5dff60aSchristos
376c5dff60aSchristosif CGEN_MAINT
377*1424dfb3SchristosBPF_DEPS = stamp-bpf
37848596154SchristosEPIPHANY_DEPS = stamp-epiphany
379c5dff60aSchristosFR30_DEPS = stamp-fr30
380c5dff60aSchristosFRV_DEPS = stamp-frv
381c5dff60aSchristosIP2K_DEPS = stamp-ip2k
382c5dff60aSchristosIQ2000_DEPS = stamp-iq2000
383c5dff60aSchristosLM32_DEPS = stamp-lm32
384c5dff60aSchristosM32C_DEPS = stamp-m32c
385c5dff60aSchristosM32R_DEPS = stamp-m32r
386c5dff60aSchristosMEP_DEPS = stamp-mep
387c5dff60aSchristosMT_DEPS = stamp-mt
38826a53354SchristosOR1K_DEPS = stamp-or1k
389c5dff60aSchristosXC16X_DEPS = stamp-xc16x
390c5dff60aSchristosXSTORMY16_DEPS = stamp-xstormy16
391c5dff60aSchristoselse
392*1424dfb3SchristosBPF_DEPS =
39348596154SchristosEPIPHANY_DEPS =
394c5dff60aSchristosFR30_DEPS =
395c5dff60aSchristosFRV_DEPS =
396c5dff60aSchristosIP2K_DEPS =
397c5dff60aSchristosIQ2000_DEPS =
398c5dff60aSchristosLM32_DEPS =
399c5dff60aSchristosM32C_DEPS =
400c5dff60aSchristosM32R_DEPS =
401c5dff60aSchristosMEP_DEPS =
402c5dff60aSchristosMT_DEPS =
40326a53354SchristosOR1K_DEPS =
404c5dff60aSchristosXC16X_DEPS =
405c5dff60aSchristosXSTORMY16_DEPS =
406c5dff60aSchristosendif
407c5dff60aSchristos
408c5dff60aSchristosrun-cgen:
409c5dff60aSchristos	$(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \
410c5dff60aSchristos	  $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) $(archfile) $(opcfile) \
411c5dff60aSchristos	  "$(options)" "$(extrafiles)"
412c5dff60aSchristos	touch stamp-${prefix}
413c5dff60aSchristos.PHONY: run-cgen
414c5dff60aSchristos
415c5dff60aSchristos# Maintainer utility rule to regenerate all cgen files.
416c5dff60aSchristosrun-cgen-all:
417c5dff60aSchristos	for c in $(CGEN_CPUS) ; \
418c5dff60aSchristos	do \
419c5dff60aSchristos		$(MAKE) stamp-$$c || exit 1 ; \
420c5dff60aSchristos	done
421c5dff60aSchristos.PHONY: run-cgen-all
422c5dff60aSchristos
423c5dff60aSchristos# For now, require developers to configure with --enable-cgen-maint.
424c5dff60aSchristos
425*1424dfb3Schristos$(srcdir)/bpf-desc.h $(srcdir)/bpf-desc.c $(srcdir)/bpf-opc.h \
426*1424dfb3Schristos		$(srcdir)/bpf-opc.c $(srcdir)/bpf-ibld.c \
427*1424dfb3Schristos		$(srcdir)/bpf-asm.c $(srcdir)/bpf-dis.c: $(BPF_DEPS)
428*1424dfb3Schristos	@true
429*1424dfb3Schristos
430*1424dfb3Schristosstamp-bpf: $(CGENDEPS) $(CPUDIR)/bpf.cpu $(CPUDIR)/bpf.opc
431*1424dfb3Schristos	$(MAKE) run-cgen arch=bpf prefix=bpf \
432*1424dfb3Schristos		archfile=$(CPUDIR)/bpf.cpu opcfile=$(CPUDIR)/bpf.opc
433*1424dfb3Schristos
43448596154Schristos$(srcdir)/epiphany-desc.h $(srcdir)/epiphany-desc.c $(srcdir)/epiphany-opc.h \
43548596154Schristos		$(srcdir)/epiphany-opc.c $(srcdir)/epiphany-ibld.c \
43648596154Schristos		$(srcdir)/epiphany-opinst.c $(srcdir)/epiphany-asm.c \
43748596154Schristos		$(srcdir)/epiphany-dis.c: $(EPIPHANY_DEPS)
43848596154Schristos	@true
43948596154Schristos
44048596154Schristosstamp-epiphany: $(CGENDEPS) $(CPUDIR)/epiphany.cpu $(CPUDIR)/epiphany.opc
44148596154Schristos	$(MAKE) run-cgen arch=epiphany prefix=epiphany options= \
44248596154Schristos		archfile=$(CPUDIR)/epiphany.cpu opcfile=$(CPUDIR)/epiphany.opc extrafiles=
44348596154Schristos
444c5dff60aSchristos$(srcdir)/fr30-desc.h $(srcdir)/fr30-desc.c $(srcdir)/fr30-opc.h $(srcdir)/fr30-opc.c $(srcdir)/fr30-ibld.c $(srcdir)/fr30-asm.c $(srcdir)/fr30-dis.c: $(FR30_DEPS)
445c5dff60aSchristos	@true
446c5dff60aSchristosstamp-fr30: $(CGENDEPS) $(CPUDIR)/fr30.cpu $(CPUDIR)/fr30.opc
447c5dff60aSchristos	$(MAKE) run-cgen arch=fr30 prefix=fr30 options= \
448c5dff60aSchristos		archfile=$(CPUDIR)/fr30.cpu opcfile=$(CPUDIR)/fr30.opc extrafiles=
449c5dff60aSchristos
450c5dff60aSchristos$(srcdir)/frv-desc.h $(srcdir)/frv-desc.c $(srcdir)/frv-opc.h $(srcdir)/frv-opc.c $(srcdir)/frv-ibld.c $(srcdir)/frv-asm.c $(srcdir)/frv-dis.c: $(FRV_DEPS)
451c5dff60aSchristos	@true
45248596154Schristosstamp-frv: $(CGENDEPS) $(CPUDIR)/frv.cpu $(CPUDIR)/frv.opc
453c5dff60aSchristos	$(MAKE) run-cgen arch=frv prefix=frv options= \
45448596154Schristos		archfile=$(CPUDIR)/frv.cpu opcfile=$(CPUDIR)/frv.opc extrafiles=
455c5dff60aSchristos
456c5dff60aSchristos$(srcdir)/ip2k-desc.h $(srcdir)/ip2k-desc.c $(srcdir)/ip2k-opc.h $(srcdir)/ip2k-opc.c $(srcdir)/ip2k-ibld.c $(srcdir)/ip2k-asm.c $(srcdir)/ip2k-dis.c: $(IP2K_DEPS)
457c5dff60aSchristos	@true
458c5dff60aSchristosstamp-ip2k: $(CGENDEPS) $(CPUDIR)/ip2k.cpu $(CPUDIR)/ip2k.opc
459c5dff60aSchristos	$(MAKE) run-cgen arch=ip2k prefix=ip2k options= \
460c5dff60aSchristos		archfile=$(CPUDIR)/ip2k.cpu opcfile=$(CPUDIR)/ip2k.opc extrafiles=
461c5dff60aSchristos
462c5dff60aSchristos$(srcdir)/iq2000-desc.h $(srcdir)/iq2000-desc.c $(srcdir)/iq2000-opc.h $(srcdir)/iq2000-opc.c $(srcdir)/iq2000-ibld.c $(srcdir)/iq2000-asm.c $(srcdir)/iq2000-dis.c: $(IQ2000_DEPS)
463c5dff60aSchristos	@true
46448596154Schristosstamp-iq2000: $(CGENDEPS) $(CPUDIR)/iq2000.cpu \
46548596154Schristos		$(CPUDIR)/iq2000.opc $(CPUDIR)/iq2000m.cpu \
46648596154Schristos		$(CPUDIR)/iq10.cpu
467c5dff60aSchristos	$(MAKE) run-cgen arch=iq2000 prefix=iq2000 options= \
46848596154Schristos		archfile=$(CPUDIR)/iq2000.cpu \
46948596154Schristos		opcfile=$(CPUDIR)/iq2000.opc extrafiles=
470c5dff60aSchristos
471c5dff60aSchristos$(srcdir)lm32-desc.h $(srcdir)/lm32-desc.c $(srcdir)/lm32-opc.h $(srcdir)/lm32-opc.c $(srcdir)/lm32-ibld.c $(srcdir)/lm32-opinst.c $(srcdir)/lm32-asm.c $(srcdir)/lm32-dis.c: $(LM32_DEPS)
472c5dff60aSchristos	@true
47348596154Schristosstamp-lm32: $(CGENDEPS) $(CPUDIR)/lm32.cpu $(CPUDIR)/lm32.opc
474c5dff60aSchristos	$(MAKE) run-cgen arch=lm32 prefix=lm32 options=opinst \
47548596154Schristos		archfile=$(CPUDIR)/lm32.cpu \
47648596154Schristos		opcfile=$(CPUDIR)/lm32.opc \
477c5dff60aSchristos		extrafiles=opinst
478c5dff60aSchristos
479c5dff60aSchristos$(srcdir)/m32c-desc.h $(srcdir)/m32c-desc.c $(srcdir)/m32c-opc.h $(srcdir)/m32c-opc.c $(srcdir)/m32c-ibld.c $(srcdir)/m32c-asm.c $(srcdir)/m32c-dis.c: $(M32C_DEPS)
48007163879Schristos	@true
48148596154Schristosstamp-m32c: $(CGENDEPS) $(CPUDIR)/m32c.cpu $(CPUDIR)/m32c.opc
482c5dff60aSchristos	$(MAKE) run-cgen arch=m32c prefix=m32c options= \
48348596154Schristos		archfile=$(CPUDIR)/m32c.cpu \
48448596154Schristos		opcfile=$(CPUDIR)/m32c.opc extrafiles=
485c5dff60aSchristos
486c5dff60aSchristos$(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h $(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c $(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS)
487c5dff60aSchristos	@true
48848596154Schristosstamp-m32r: $(CGENDEPS) $(CPUDIR)/m32r.cpu $(CPUDIR)/m32r.opc
489c5dff60aSchristos	$(MAKE) run-cgen arch=m32r prefix=m32r options=opinst \
49048596154Schristos		archfile=$(CPUDIR)/m32r.cpu \
49148596154Schristos		opcfile=$(CPUDIR)/m32r.opc extrafiles=opinst
492c5dff60aSchristos
493c5dff60aSchristos$(srcdir)/mep-desc.h $(srcdir)/mep-desc.c $(srcdir)/mep-opc.h $(srcdir)/mep-opc.c $(srcdir)/mep-ibld.c $(srcdir)/mep-asm.c $(srcdir)/mep-dis.c: $(MEP_DEPS)
494c5dff60aSchristos	@true
495c5dff60aSchristosstamp-mep: $(CGENDEPS) $(CPUDIR)/mep.cpu $(CPUDIR)/mep-default.cpu $(CPUDIR)/mep-core.cpu $(CPUDIR)/mep-h1.cpu $(CPUDIR)/mep-ext-cop.cpu $(CPUDIR)/mep-sample-ucidsp.cpu $(CPUDIR)/mep-rhcop.cpu $(CPUDIR)/mep-fmax.cpu $(CPUDIR)/mep.opc
496c5dff60aSchristos	$(MAKE) run-cgen arch=mep prefix=mep options= \
497c5dff60aSchristos		archfile=$(CPUDIR)/mep.cpu opcfile=$(CPUDIR)/mep.opc extrafiles=
498c5dff60aSchristos
499c5dff60aSchristos$(srcdir)/mt-desc.h $(srcdir)/mt-desc.c $(srcdir)/mt-opc.h $(srcdir)/mt-opc.c $(srcdir)/mt-ibld.c $(srcdir)/mt-asm.c $(srcdir)/mt-dis.c: $(MT_DEPS)
500c5dff60aSchristos	@true
50148596154Schristosstamp-mt: $(CGENDEPS) $(CPUDIR)/mt.cpu $(CPUDIR)/mt.opc
502c5dff60aSchristos	$(MAKE) run-cgen arch=mt prefix=mt options= \
50348596154Schristos		archfile=$(CPUDIR)/mt.cpu \
50448596154Schristos		opcfile=$(CPUDIR)/mt.opc extrafiles=
505c5dff60aSchristos
50626a53354Schristos$(srcdir)/or1k-desc.h $(srcdir)/or1k-desc.c $(srcdir)/or1k-opc.h $(srcdir)/or1k-opc.c $(srcdir)/or1k-ibld.c $(srcdir)/or1k-opinst.c $(srcdir)/or1k-asm.c $(srcdir)/or1k-dis.c: $(OR1K_DEPS)
507c5dff60aSchristos	@true
50826a53354Schristosstamp-or1k: $(CGENDEPS) $(CPUDIR)/or1k.cpu $(CPUDIR)/or1k.opc $(CPUDIR)/or1kcommon.cpu $(CPUDIR)/or1korbis.cpu $(CPUDIR)/or1korfpx.cpu
50926a53354Schristos	$(MAKE) run-cgen arch=or1k prefix=or1k options=opinst \
51026a53354Schristos		archfile=$(CPUDIR)/or1k.cpu opcfile=$(CPUDIR)/or1k.opc extrafiles=opinst
511c5dff60aSchristos
512c5dff60aSchristos$(srcdir)/xc16x-desc.h $(srcdir)/xc16x-desc.c $(srcdir)/xc16x-opc.h $(srcdir)/xc16x-opc.c $(srcdir)/xc16x-ibld.c $(srcdir)/xc16x-asm.c $(srcdir)/xc16x-dis.c: $(XC16X_DEPS)
513c5dff60aSchristos	@true
51448596154Schristosstamp-xc16x: $(CGENDEPS) $(CPUDIR)/xc16x.cpu $(CPUDIR)/xc16x.opc
515c5dff60aSchristos	$(MAKE) run-cgen arch=xc16x prefix=xc16x options= \
51648596154Schristos		archfile=$(CPUDIR)/xc16x.cpu \
51748596154Schristos		opcfile=$(CPUDIR)/xc16x.opc \
518c5dff60aSchristos		extrafiles=
519c5dff60aSchristos
520c5dff60aSchristos$(srcdir)/xstormy16-desc.h $(srcdir)/xstormy16-desc.c $(srcdir)/xstormy16-opc.h $(srcdir)/xstormy16-opc.c $(srcdir)/xstormy16-ibld.c $(srcdir)/xstormy16-asm.c $(srcdir)/xstormy16-dis.c: $(XSTORMY16_DEPS)
521c5dff60aSchristos	@true
522c5dff60aSchristosstamp-xstormy16: $(CGENDEPS) $(CPUDIR)/xstormy16.cpu $(CPUDIR)/xstormy16.opc
523c5dff60aSchristos	$(MAKE) run-cgen arch=xstormy16 prefix=xstormy16 options= \
524c5dff60aSchristos		archfile=$(CPUDIR)/xstormy16.cpu opcfile=$(CPUDIR)/xstormy16.opc extrafiles=
525c5dff60aSchristos
52648596154SchristosMOSTLYCLEANFILES = aarch64-gen$(EXEEXT_FOR_BUILD) i386-gen$(EXEEXT_FOR_BUILD) \
52748596154Schristos	ia64-gen$(EXEEXT_FOR_BUILD) s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.tab \
52848596154Schristos	z8kgen$(EXEEXT_FOR_BUILD) opc2c$(EXEEXT_FOR_BUILD)
529c5dff60aSchristos
53048596154SchristosMAINTAINERCLEANFILES = $(srcdir)/aarch64-asm-2.c $(srcdir)/aarch64-dis-2.c \
53148596154Schristos	$(srcdir)/aarch64-opc-2.c $(srcdir)/i386-tbl.h $(srcdir)/i386-init.h \
53248596154Schristos	$(srcdir)/ia64-asmtab.c $(srcdir)/z8k-opc.h \
5337af5a897Schristos	$(srcdir)/msp430-decode.c \
53448596154Schristos	$(srcdir)/rl78-decode.c \
535c5dff60aSchristos	$(srcdir)/rx-decode.c
536c5dff60aSchristos
53748596154Schristosaarch64-gen$(EXEEXT_FOR_BUILD): aarch64-gen.o $(BUILD_LIB_DEPS)
53848596154Schristos	$(LINK_FOR_BUILD) aarch64-gen.o $(BUILD_LIBS)
53948596154Schristos
54048596154Schristosaarch64-gen.o: aarch64-gen.c $(BFD_H) $(INCDIR)/getopt.h $(INCDIR)/libiberty.h\
54148596154Schristos	$(INCDIR)/opcode/aarch64.h config.h aarch64-opc.h aarch64-tbl.h
54248596154Schristos	$(COMPILE_FOR_BUILD) -c $(srcdir)/aarch64-gen.c
54348596154Schristos
54448596154Schristos$(srcdir)/aarch64-asm-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
54548596154Schristos	./aarch64-gen$(exeext_for_build) --gen-asm > $@
54648596154Schristos$(srcdir)/aarch64-dis-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
54748596154Schristos	./aarch64-gen$(exeext_for_build) --gen-dis > $@
54848596154Schristos$(srcdir)/aarch64-opc-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
54948596154Schristos	./aarch64-gen$(exeext_for_build) --gen-opc > $@
55048596154Schristos
551c5dff60aSchristosi386-gen$(EXEEXT_FOR_BUILD): i386-gen.o $(BUILD_LIB_DEPS)
552c5dff60aSchristos	$(LINK_FOR_BUILD) i386-gen.o $(BUILD_LIBS)
553c5dff60aSchristos
554c5dff60aSchristosi386-gen.o: i386-gen.c i386-opc.h $(srcdir)/../include/opcode/i386.h \
555c5dff60aSchristos	$(INCDIR)/ansidecl.h $(INCDIR)/getopt.h $(INCDIR)/hashtab.h \
556c5dff60aSchristos	$(INCDIR)/libiberty.h $(INCDIR)/opcode/i386.h $(INCDIR)/safe-ctype.h \
557c5dff60aSchristos	config.h i386-opc.h sysdep.h
558c5dff60aSchristos	$(COMPILE_FOR_BUILD) -c $(srcdir)/i386-gen.c
559c5dff60aSchristos
560c5dff60aSchristos$(srcdir)/i386-tbl.h: $(srcdir)/i386-init.h
561c5dff60aSchristos	@echo $@
562c5dff60aSchristos
56307163879Schristos$(srcdir)/i386-init.h: @MAINT@ i386-gen$(EXEEXT_FOR_BUILD) i386-opc.tbl i386-reg.tbl i386-opc.h
564*1424dfb3Schristos	$(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - \
56507163879Schristos		< $(srcdir)/i386-opc.tbl \
56607163879Schristos		| ./i386-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir)
567c5dff60aSchristos
568c5dff60aSchristosi386-opc.lo: $(srcdir)/i386-tbl.h
569c5dff60aSchristos
570c5dff60aSchristosia64-gen$(EXEEXT_FOR_BUILD): ia64-gen.o $(BUILD_LIB_DEPS)
571c5dff60aSchristos	$(LINK_FOR_BUILD) ia64-gen.o $(BUILD_LIBS)
572c5dff60aSchristos
573c5dff60aSchristosia64-gen.o: ia64-gen.c $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
574c5dff60aSchristos	$(INCDIR)/libiberty.h $(INCDIR)/opcode/ia64.h $(INCDIR)/safe-ctype.h \
575c5dff60aSchristos	$(INCDIR)/symcat.h config.h ia64-opc-a.c ia64-opc-b.c \
576c5dff60aSchristos	ia64-opc-d.c ia64-opc-f.c ia64-opc-i.c ia64-opc-m.c \
577c5dff60aSchristos	ia64-opc-x.c ia64-opc.h sysdep.h
578c5dff60aSchristos	$(COMPILE_FOR_BUILD) -c $(srcdir)/ia64-gen.c
579c5dff60aSchristos
580c5dff60aSchristos# Use a helper variable for the dependencies to avoid 'make' issues
581c5dff60aSchristos# with continuations in comments, as @MAINT@ can be expanded to '#'.
582c5dff60aSchristosia64_asmtab_deps = ia64-gen$(EXEEXT_FOR_BUILD) ia64-ic.tbl \
583c5dff60aSchristos	ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
584c5dff60aSchristos$(srcdir)/ia64-asmtab.c: @MAINT@ $(ia64_asmtab_deps)
585c5dff60aSchristos	./ia64-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir) > $@
586c5dff60aSchristos
587c5dff60aSchristosia64-opc.lo: $(srcdir)/ia64-asmtab.c
588c5dff60aSchristos
5897af5a897Schristos$(srcdir)/msp430-decode.c: @MAINT@ $(srcdir)/msp430-decode.opc opc2c$(EXEEXT_FOR_BUILD)
5907af5a897Schristos	./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/msp430-decode.opc > $(srcdir)/msp430-decode.c
5917af5a897Schristos
59248596154Schristos$(srcdir)/rl78-decode.c: @MAINT@ $(srcdir)/rl78-decode.opc opc2c$(EXEEXT_FOR_BUILD)
59348596154Schristos	./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rl78-decode.opc > $(srcdir)/rl78-decode.c
59448596154Schristos
595c5dff60aSchristos$(srcdir)/rx-decode.c: @MAINT@ $(srcdir)/rx-decode.opc opc2c$(EXEEXT_FOR_BUILD)
596c5dff60aSchristos	./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rx-decode.opc > $(srcdir)/rx-decode.c
597c5dff60aSchristos
598c5dff60aSchristosopc2c$(EXEEXT_FOR_BUILD): opc2c.o $(BUILD_LIBS_DEPS)
599c5dff60aSchristos	$(LINK_FOR_BUILD) opc2c.o $(BUILD_LIBS)
600c5dff60aSchristos
601c5dff60aSchristosopc2c.o: opc2c.c $(INCDIR)/libiberty.h
602c5dff60aSchristos	$(COMPILE_FOR_BUILD) -c $(srcdir)/opc2c.c
603c5dff60aSchristos
604c5dff60aSchristoss390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.c
605c5dff60aSchristos	$(COMPILE_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c
606c5dff60aSchristos
607c5dff60aSchristoss390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt
608c5dff60aSchristos	./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-opc.tab
609c5dff60aSchristos
610c5dff60aSchristoss390-opc.lo: s390-opc.tab
611c5dff60aSchristos
612c5dff60aSchristosz8kgen$(EXEEXT_FOR_BUILD): z8kgen.o $(BUILD_LIB_DEPS)
613c5dff60aSchristos	$(LINK_FOR_BUILD) z8kgen.o $(BUILD_LIBS)
614c5dff60aSchristos
615c5dff60aSchristosz8kgen.o: z8kgen.c
616c5dff60aSchristos	$(COMPILE_FOR_BUILD) -c $(srcdir)/z8kgen.c
617c5dff60aSchristos
618c5dff60aSchristos$(srcdir)/z8k-opc.h: @MAINT@ z8kgen$(EXEEXT_FOR_BUILD)
619c5dff60aSchristos	./z8kgen$(EXEEXT_FOR_BUILD) -a > $@
620c5dff60aSchristos
621c5dff60aSchristosz8k-dis.lo: $(srcdir)/z8k-opc.h
622c5dff60aSchristos
6231c468f90SchristosMIPS_DEFS=`case \`cat ../bfd/ofiles\` in *elfxx-mips*) echo "-DHAVE_BFD_MIPS_ELF_GET_ABIFLAGS=1";; esac`
6241c468f90Schristosmips-dis.lo: mips-dis.c
6251c468f90Schristosif am__fastdepCC
6261c468f90Schristos	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(MIPS_DEFS) $<
6271c468f90Schristos	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
6281c468f90Schristoselse
6291c468f90Schristosif AMDEP
6301c468f90Schristos	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
6311c468f90Schristos	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6321c468f90Schristosendif
6331c468f90Schristos	$(LTCOMPILE) -c -o $@ $(MIPS_DEFS) $<
6341c468f90Schristosendif
6351c468f90Schristos
636c5dff60aSchristossh-dis.lo: sh-dis.c
637c5dff60aSchristosif am__fastdepCC
638c5dff60aSchristos	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
639c5dff60aSchristos	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
640c5dff60aSchristoselse
641c5dff60aSchristosif AMDEP
642c5dff60aSchristos	source='sh-dis.c' object='$@' libtool=yes @AMDEPBACKSLASH@
643c5dff60aSchristos	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
644c5dff60aSchristosendif
645c5dff60aSchristos	$(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
646c5dff60aSchristosendif
647