OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [opcodes/] [Makefile.am] - Blame information for rev 277

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

Line No. Rev Author Line
1 24 jeremybenn
## Process this file with automake to generate Makefile.in
2
 
3 225 jeremybenn
AUTOMAKE_OPTIONS = 1.11 foreign no-dist
4 24 jeremybenn
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
5
 
6 225 jeremybenn
# Build '.' first so all generated files exist.
7
SUBDIRS = . po
8 24 jeremybenn
 
9
INCDIR = $(srcdir)/../include
10
BFDDIR = $(srcdir)/../bfd
11
 
12
WARN_CFLAGS = @WARN_CFLAGS@
13
NO_WERROR = @NO_WERROR@
14
AM_CFLAGS = $(WARN_CFLAGS)
15
 
16 225 jeremybenn
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(INCLUDES) $(AM_CPPFLAGS) \
17
        $(CFLAGS_FOR_BUILD)
18
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
19
        $(LDFLAGS_FOR_BUILD) -o $@
20
 
21
libopcodes_la_LDFLAGS =
22
if INSTALL_LIBBFD
23 24 jeremybenn
bfdlibdir = @bfdlibdir@
24
bfdincludedir = @bfdincludedir@
25
bfdlib_LTLIBRARIES = libopcodes.la
26 225 jeremybenn
bfdinclude_DATA = $(INCDIR)/dis-asm.h
27
else
28
# Empty these so that the respective installation directories will not be created.
29
bfdlibdir =
30
bfdincludedir =
31
rpath_bfdlibdir = @bfdlibdir@
32
noinst_LTLIBRARIES = libopcodes.la
33
libopcodes_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
34
endif
35 24 jeremybenn
 
36
# This is where bfd.h lives.
37
BFD_H = ../bfd/bfd.h
38
 
39 225 jeremybenn
BUILD_LIBS = @BUILD_LIBS@
40
BUILD_LIB_DEPS = @BUILD_LIB_DEPS@
41 24 jeremybenn
 
42
# Header files.
43
HFILES = \
44
        cgen-ops.h cgen-types.h \
45
        fr30-desc.h fr30-opc.h \
46
        frv-desc.h frv-opc.h \
47
        h8500-opc.h \
48
        i386-init.h \
49
        i386-opc.h \
50
        i386-tbl.h \
51
        ia64-asmtab.h \
52
        ia64-opc.h \
53
        ip2k-desc.h ip2k-opc.h \
54
        iq2000-desc.h iq2000-opc.h \
55 225 jeremybenn
        lm32-desc.h \
56
        lm32-opc.h \
57 24 jeremybenn
        m32c-desc.h m32c-opc.h \
58
        m32r-desc.h m32r-opc.h \
59
        mcore-opc.h \
60
        mep-desc.h mep-opc.h \
61 225 jeremybenn
        microblaze-opc.h \
62 24 jeremybenn
        mt-desc.h mt-opc.h \
63
        openrisc-desc.h openrisc-opc.h \
64
        score-opc.h \
65
        sh-opc.h \
66
        sh64-opc.h \
67
        sysdep.h \
68
        w65-opc.h \
69
        xc16x-desc.h xc16x-opc.h \
70
        xstormy16-desc.h xstormy16-opc.h \
71
        z8k-opc.h
72
 
73 225 jeremybenn
# C source files that correspond to .o's ending up in libopcodes
74
# for all machines.
75
TARGET_LIBOPCODES_CFILES = \
76 24 jeremybenn
        alpha-dis.c \
77
        alpha-opc.c \
78
        arc-dis.c \
79 225 jeremybenn
        arc-ext.c \
80 24 jeremybenn
        arc-opc.c \
81
        arm-dis.c \
82
        avr-dis.c \
83
        bfin-dis.c \
84
        cgen-asm.c \
85
        cgen-bitset.c \
86
        cgen-dis.c \
87
        cgen-opc.c \
88
        cr16-dis.c \
89
        cr16-opc.c \
90
        cris-dis.c \
91
        cris-opc.c \
92
        crx-dis.c \
93
        crx-opc.c \
94
        d10v-dis.c \
95
        d10v-opc.c \
96
        d30v-dis.c \
97
        d30v-opc.c \
98
        dlx-dis.c \
99
        fr30-asm.c \
100
        fr30-desc.c \
101
        fr30-dis.c \
102
        fr30-ibld.c \
103
        fr30-opc.c \
104
        frv-asm.c \
105
        frv-desc.c \
106
        frv-dis.c \
107
        frv-ibld.c \
108
        frv-opc.c \
109
        h8300-dis.c \
110
        h8500-dis.c \
111
        hppa-dis.c \
112
        i370-dis.c \
113
        i370-opc.c \
114
        i386-dis.c \
115
        i386-opc.c \
116
        i860-dis.c \
117
        i960-dis.c \
118
        ia64-dis.c \
119
        ia64-opc.c \
120
        ip2k-asm.c \
121
        ip2k-desc.c \
122
        ip2k-dis.c \
123
        ip2k-ibld.c \
124
        ip2k-opc.c \
125
        iq2000-asm.c \
126
        iq2000-desc.c \
127
        iq2000-dis.c \
128
        iq2000-ibld.c \
129
        iq2000-opc.c \
130 225 jeremybenn
        lm32-asm.c \
131
        lm32-desc.c \
132
        lm32-dis.c \
133
        lm32-ibld.c \
134
        lm32-opc.c \
135
        lm32-opinst.c \
136
        m10200-dis.c \
137
        m10200-opc.c \
138
        m10300-dis.c \
139
        m10300-opc.c \
140 24 jeremybenn
        m32c-asm.c \
141
        m32c-desc.c \
142
        m32c-dis.c \
143
        m32c-ibld.c \
144
        m32c-opc.c \
145
        m32r-asm.c \
146
        m32r-desc.c \
147
        m32r-dis.c \
148
        m32r-ibld.c \
149
        m32r-opc.c \
150
        m32r-opinst.c \
151
        m68hc11-dis.c \
152
        m68hc11-opc.c \
153
        m68k-dis.c \
154
        m68k-opc.c \
155
        m88k-dis.c \
156
        maxq-dis.c \
157
        mcore-dis.c \
158
        mep-asm.c \
159
        mep-desc.c \
160
        mep-dis.c \
161
        mep-ibld.c \
162
        mep-opc.c \
163 225 jeremybenn
        microblaze-dis.c \
164 24 jeremybenn
        mips-dis.c \
165
        mips-opc.c \
166
        mips16-opc.c \
167
        mmix-dis.c \
168
        mmix-opc.c \
169 225 jeremybenn
        moxie-dis.c \
170
        moxie-opc.c \
171
        msp430-dis.c \
172 24 jeremybenn
        mt-asm.c \
173
        mt-desc.c \
174
        mt-dis.c \
175
        mt-ibld.c \
176
        mt-opc.c \
177
        ns32k-dis.c \
178
        or32-dis.c \
179
        or32-opc.c \
180
        pdp11-dis.c \
181
        pdp11-opc.c \
182
        pj-dis.c \
183
        pj-opc.c \
184
        ppc-dis.c \
185
        ppc-opc.c \
186 225 jeremybenn
        s390-dis.c \
187 24 jeremybenn
        s390-opc.c \
188
        score-dis.c \
189 225 jeremybenn
        score7-dis.c \
190 24 jeremybenn
        sh-dis.c \
191
        sh64-dis.c \
192
        sh64-opc.c \
193
        sparc-dis.c \
194
        sparc-opc.c \
195
        spu-dis.c \
196
        spu-opc.c \
197
        tic30-dis.c \
198
        tic4x-dis.c \
199
        tic54x-dis.c \
200
        tic54x-opc.c \
201
        tic80-dis.c \
202
        tic80-opc.c \
203
        v850-dis.c \
204
        v850-opc.c \
205
        vax-dis.c \
206
        w65-dis.c \
207
        xc16x-asm.c \
208
        xc16x-desc.c \
209
        xc16x-dis.c \
210
        xc16x-ibld.c \
211
        xc16x-opc.c \
212
        xstormy16-asm.c \
213
        xstormy16-desc.c \
214
        xstormy16-dis.c \
215
        xstormy16-ibld.c \
216
        xstormy16-opc.c \
217
        xtensa-dis.c \
218
        z80-dis.c \
219 225 jeremybenn
        z8k-dis.c
220
 
221
# C source files that correspond to .o's ending up in libopcodes.
222
LIBOPCODES_CFILES = \
223
        $(TARGET_LIBOPCODES_CFILES) \
224
        dis-buf.c \
225
        dis-init.c \
226
        disassemble.c
227
 
228
# C source files that correspond to .o's.
229
CFILES = \
230
        $(LIBOPCODES_CFILES) \
231
        i386-gen.c \
232
        ia64-asmtab.c \
233
        ia64-gen.c \
234
        ia64-opc-a.c \
235
        ia64-opc-b.c \
236
        ia64-opc-f.c \
237
        ia64-opc-i.c \
238
        ia64-opc-m.c \
239
        ia64-opc-d.c \
240
        s390-mkopc.c \
241 24 jeremybenn
        z8kgen.c
242
 
243 225 jeremybenn
ALL_MACHINES = $(TARGET_LIBOPCODES_CFILES:.c=.lo)
244 24 jeremybenn
 
245
OFILES = @BFD_MACHINES@
246
 
247
# We should reconfigure whenever bfd/configure.in changes, because
248
# that's where the version number in Makefile comes from.
249
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
250
 
251 225 jeremybenn
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ @INCINTL@
252 24 jeremybenn
 
253 225 jeremybenn
disassemble.lo: disassemble.c
254
if am__fastdepCC
255
        $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/disassemble.c
256
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
257
else
258
if AMDEP
259
        source='disassemble.c' object='$@' libtool=yes @AMDEPBACKSLASH@
260
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
261
endif
262
        $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/disassemble.c
263
endif
264 24 jeremybenn
 
265
libopcodes_la_SOURCES =  dis-buf.c disassemble.c dis-init.c
266
# It's desirable to list ../bfd/libbfd.la in DEPENDENCIES and LIBADD.
267
# Unfortunately this causes libtool to add -L$(libdir), referring to the
268
# planned install directory of libbfd.  This can cause us to pick up an
269
# old version of libbfd, or to pick up libbfd for the wrong architecture
270
# if host != build. So for building with shared libraries we use a
271
# hardcoded path to libbfd.so instead of relying on the entries in libbfd.la.
272
libopcodes_la_DEPENDENCIES = $(OFILES) @SHARED_DEPENDENCIES@
273
libopcodes_la_LIBADD = $(OFILES) @SHARED_LIBADD@
274 225 jeremybenn
libopcodes_la_LDFLAGS += -release `cat ../bfd/libtool-soversion` @SHARED_LDFLAGS@
275
# Allow dependency tracking to work on all the source files.
276
EXTRA_libopcodes_la_SOURCES = $(LIBOPCODES_CFILES)
277 24 jeremybenn
 
278
# libtool will build .libs/libopcodes.a.  We create libopcodes.a in
279
# the build directory so that we don't have to convert all the
280
# programs that use libopcodes.a simultaneously.  This is a hack which
281
# should be removed if everything else starts using libtool.  FIXME.
282
 
283
noinst_LIBRARIES = libopcodes.a
284
 
285
stamp-lib: libopcodes.la
286
        libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
287
        if [ -f $$libtooldir/libopcodes.a ]; then \
288
          cp $$libtooldir/libopcodes.a libopcodes.tmp; \
289
          $(RANLIB) libopcodes.tmp; \
290
          $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
291
        else true; fi
292
        touch stamp-lib
293
 
294
libopcodes.a: stamp-lib ; @true
295
 
296
POTFILES = $(HFILES) $(CFILES)
297
po/POTFILES.in: @MAINT@ Makefile
298 225 jeremybenn
        for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
299 24 jeremybenn
          && mv tmp $(srcdir)/po/POTFILES.in
300
 
301
CLEANFILES = \
302
        stamp-ip2k stamp-m32c stamp-m32r stamp-fr30 stamp-frv \
303
        stamp-openrisc stamp-iq2000 stamp-mep stamp-mt stamp-xstormy16 stamp-xc16x\
304
        libopcodes.a stamp-lib dep.sed DEP DEPA DEP1 DEP2
305
 
306
 
307
CGENDIR = @cgendir@
308
CPUDIR = $(CGENDIR)/cpu
309
CGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
310
CGENFLAGS = -v
311
 
312
CGENDEPS = \
313
        $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
314
        $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \
315
        $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \
316
        $(CGENDIR)/opc-opinst.scm \
317
        cgen-asm.in cgen-dis.in cgen-ibld.in
318
 
319
CGEN_CPUS = fr30 frv ip2k m32c m32r mep mt openrisc xc16x xstormy16
320
 
321
if CGEN_MAINT
322
IP2K_DEPS = stamp-ip2k
323 225 jeremybenn
LM32_DEPS = stamp-lm32
324 24 jeremybenn
M32C_DEPS = stamp-m32c
325
M32R_DEPS = stamp-m32r
326
FR30_DEPS = stamp-fr30
327
FRV_DEPS = stamp-frv
328
MEP_DEPS = stamp-mep
329
MT_DEPS = stamp-mt
330
IQ2000_DEPS = stamp-iq2000
331
XC16X_DEPS = stamp-xc16x
332
XSTORMY16_DEPS = stamp-xstormy16
333
else
334
IP2K_DEPS =
335 225 jeremybenn
LM32_DEPS =
336 24 jeremybenn
M32C_DEPS =
337
M32R_DEPS =
338
FR30_DEPS =
339
FRV_DEPS =
340
MEP_DEPS =
341
MT_DEPS =
342
OPENRISC_DEPS =
343
IQ2000_DEPS =
344
XC16X_DEPS =
345
XSTORMY16_DEPS =
346
endif
347
 
348
run-cgen:
349
        $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \
350
          $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) $(archfile) $(opcfile) \
351
          "$(options)" "$(extrafiles)"
352
        touch stamp-${prefix}
353
.PHONY: run-cgen
354
 
355
# Maintainer utility rule to regenerate all cgen files.
356
run-cgen-all:
357
        for c in $(CGEN_CPUS) ; \
358
        do \
359
                $(MAKE) stamp-$$c || exit 1 ; \
360
        done
361
.PHONY: run-cgen-all
362
 
363
# For now, require developers to configure with --enable-cgen-maint.
364
$(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)
365
        @true
366
stamp-ip2k: $(CGENDEPS) $(CPUDIR)/ip2k.cpu $(CPUDIR)/ip2k.opc
367
        $(MAKE) run-cgen arch=ip2k prefix=ip2k options= \
368
                archfile=$(CPUDIR)/ip2k.cpu opcfile=$(CPUDIR)/ip2k.opc extrafiles=
369
 
370 225 jeremybenn
$(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)
371
        @true
372
stamp-lm32: $(CGENDEPS) $(srcdir)/../cpu/lm32.cpu $(srcdir)/../cpu/lm32.opc
373
        $(MAKE) run-cgen arch=lm32 prefix=lm32 options=opinst \
374
                archfile=$(srcdir)/../cpu/lm32.cpu \
375
                opcfile=$(srcdir)/../cpu/lm32.opc \
376
                extrafiles=opinst
377
 
378 24 jeremybenn
$(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)
379
#       @true
380
stamp-m32c: $(CGENDEPS) $(srcdir)/../cpu/m32c.cpu $(srcdir)/../cpu/m32c.opc
381
        $(MAKE) run-cgen arch=m32c prefix=m32c options= \
382
                archfile=$(srcdir)/../cpu/m32c.cpu \
383
                opcfile=$(srcdir)/../cpu/m32c.opc extrafiles=
384
 
385
$(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)
386
        @true
387
stamp-m32r: $(CGENDEPS) $(srcdir)/../cpu/m32r.cpu $(srcdir)/../cpu/m32r.opc
388
        $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst \
389
                archfile=$(srcdir)/../cpu/m32r.cpu \
390
                opcfile=$(srcdir)/../cpu/m32r.opc extrafiles=opinst
391
 
392
$(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)
393
        @true
394
stamp-fr30: $(CGENDEPS) $(CPUDIR)/fr30.cpu $(CPUDIR)/fr30.opc
395
        $(MAKE) run-cgen arch=fr30 prefix=fr30 options= \
396
                archfile=$(CPUDIR)/fr30.cpu opcfile=$(CPUDIR)/fr30.opc extrafiles=
397
 
398
$(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)
399
        @true
400
stamp-frv: $(CGENDEPS) $(srcdir)/../cpu/frv.cpu $(srcdir)/../cpu/frv.opc
401
        $(MAKE) run-cgen arch=frv prefix=frv options= \
402
                archfile=$(srcdir)/../cpu/frv.cpu opcfile=$(srcdir)/../cpu/frv.opc extrafiles=
403
 
404
$(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)
405
        @true
406
stamp-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
407
        $(MAKE) run-cgen arch=mep prefix=mep options= \
408
                archfile=$(CPUDIR)/mep.cpu opcfile=$(CPUDIR)/mep.opc extrafiles=
409
 
410
$(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)
411
        @true
412
stamp-mt: $(CGENDEPS) $(srcdir)/../cpu/mt.cpu $(srcdir)/../cpu/mt.opc
413
        $(MAKE) run-cgen arch=mt prefix=mt options= \
414
                archfile=$(srcdir)/../cpu/mt.cpu \
415
                opcfile=$(srcdir)/../cpu/mt.opc extrafiles=
416
 
417
$(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)
418
        @true
419
stamp-iq2000: $(CGENDEPS) $(srcdir)/../cpu/iq2000.cpu \
420
                $(srcdir)/../cpu/iq2000.opc $(srcdir)/../cpu/iq2000m.cpu \
421
                $(srcdir)/../cpu/iq10.cpu
422
        $(MAKE) run-cgen arch=iq2000 prefix=iq2000 options= \
423
                archfile=$(srcdir)/../cpu/iq2000.cpu \
424
                opcfile=$(srcdir)/../cpu/iq2000.opc extrafiles=
425
 
426
$(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)
427
        @true
428
stamp-xstormy16: $(CGENDEPS) $(CPUDIR)/xstormy16.cpu $(CPUDIR)/xstormy16.opc
429
        $(MAKE) run-cgen arch=xstormy16 prefix=xstormy16 options= \
430
                archfile=$(CPUDIR)/xstormy16.cpu opcfile=$(CPUDIR)/xstormy16.opc extrafiles=
431
 
432
$(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)
433
        @true
434
stamp-xc16x: $(CGENDEPS) $(CPUDIR)/xc16x.cpu $(CPUDIR)/xc16x.opc
435
        $(MAKE) run-cgen arch=xc16x prefix=xc16x options= \
436
                archfile=$(CPUDIR)/xc16x.cpu opcfile=$(CPUDIR)/xc16x.opc extrafiles=
437
 
438 225 jeremybenn
MOSTLYCLEANFILES = i386-gen$(EXEEXT_FOR_BUILD) ia64-gen$(EXEEXT_FOR_BUILD) \
439
        s390-mkopc$(EXEEXT_FOR_BUILD) z8kgen$(EXEEXT_FOR_BUILD)
440 24 jeremybenn
 
441 225 jeremybenn
MAINTAINERCLEANFILES = $(srcdir)/i386-tbl.h $(srcdir)/i386-init.h \
442
        $(srcdir)/ia64-asmtab.c s390-opc.tab $(srcdir)/z8k-opc.h
443 24 jeremybenn
 
444 225 jeremybenn
i386-gen$(EXEEXT_FOR_BUILD): i386-gen.o $(BUILD_LIB_DEPS)
445
        $(LINK_FOR_BUILD) i386-gen.o $(BUILD_LIBS)
446
 
447
i386-gen.o: i386-gen.c i386-opc.h $(srcdir)/../include/opcode/i386.h \
448
        $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h $(INCDIR)/hashtab.h \
449
        $(INCDIR)/libiberty.h $(INCDIR)/opcode/i386.h $(INCDIR)/safe-ctype.h \
450
        config.h i386-opc.h sysdep.h
451
        $(COMPILE_FOR_BUILD) -c $(srcdir)/i386-gen.c
452
 
453 24 jeremybenn
$(srcdir)/i386-tbl.h: $(srcdir)/i386-init.h
454
        @echo $@
455
 
456 225 jeremybenn
$(srcdir)/i386-init.h: @MAINT@ i386-gen$(EXEEXT_FOR_BUILD) i386-opc.tbl i386-reg.tbl
457
        ./i386-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir)
458 24 jeremybenn
 
459 225 jeremybenn
i386-opc.lo: $(srcdir)/i386-tbl.h
460 24 jeremybenn
 
461 225 jeremybenn
ia64-gen$(EXEEXT_FOR_BUILD): ia64-gen.o $(BUILD_LIB_DEPS)
462
        $(LINK_FOR_BUILD) ia64-gen.o $(BUILD_LIBS)
463 24 jeremybenn
 
464 225 jeremybenn
ia64-gen.o: ia64-gen.c $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
465
        $(INCDIR)/libiberty.h $(INCDIR)/opcode/ia64.h $(INCDIR)/safe-ctype.h \
466
        $(INCDIR)/symcat.h config.h ia64-opc-a.c ia64-opc-b.c \
467
        ia64-opc-d.c ia64-opc-f.c ia64-opc-i.c ia64-opc-m.c \
468
        ia64-opc-x.c ia64-opc.h sysdep.h
469
        $(COMPILE_FOR_BUILD) -c $(srcdir)/ia64-gen.c
470 24 jeremybenn
 
471 225 jeremybenn
# Use a helper variable for the dependencies to avoid 'make' issues
472
# with continuations in comments, as @MAINT@ can be expanded to '#'.
473
ia64_asmtab_deps = ia64-gen$(EXEEXT_FOR_BUILD) ia64-ic.tbl \
474
        ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
475
$(srcdir)/ia64-asmtab.c: @MAINT@ $(ia64_asmtab_deps)
476
        ./ia64-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir) > $@
477 24 jeremybenn
 
478 225 jeremybenn
ia64-opc.lo: $(srcdir)/ia64-asmtab.c
479 24 jeremybenn
 
480 225 jeremybenn
s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.c
481
        $(COMPILE_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c
482 24 jeremybenn
 
483 225 jeremybenn
s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt
484
        ./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-opc.tab
485 24 jeremybenn
 
486 225 jeremybenn
s390-opc.lo: s390-opc.tab
487 24 jeremybenn
 
488 225 jeremybenn
z8kgen$(EXEEXT_FOR_BUILD): z8kgen.o $(BUILD_LIB_DEPS)
489
        $(LINK_FOR_BUILD) z8kgen.o $(BUILD_LIBS)
490 24 jeremybenn
 
491 225 jeremybenn
z8kgen.o: z8kgen.c
492
        $(COMPILE_FOR_BUILD) -c $(srcdir)/z8kgen.c
493 24 jeremybenn
 
494 225 jeremybenn
$(srcdir)/z8k-opc.h: @MAINT@ z8kgen$(EXEEXT_FOR_BUILD)
495
        ./z8kgen$(EXEEXT_FOR_BUILD) -a > $@
496 24 jeremybenn
 
497 225 jeremybenn
z8k-dis.lo: $(srcdir)/z8k-opc.h
498 24 jeremybenn
 
499 225 jeremybenn
sh-dis.lo: sh-dis.c
500
if am__fastdepCC
501
        $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
502
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
503
else
504
if AMDEP
505
        source='sh-dis.c' object='$@' libtool=yes @AMDEPBACKSLASH@
506
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
507
endif
508
        $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
509
endif

powered by: WebSVN 2.1.0

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