* ada-lang.c (ada_index_type): Update comment.
[deliverable/binutils-gdb.git] / gdb / features / Makefile
CommitLineData
0fb0cc75 1# Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
fb1e4ffc
DJ
2
3# This file is part of GDB.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
19
20# This file requires GNU make!
21
22# This Makefile updates files in ../regformats from their XML master
23# copies. Because this relies on xsltproc, it is not normally run
24# during the build process; it should be run by hand when one of the
25# affected XML files is changed, and the results should be kept in the
26# GDB repository.
27
81adfced
DJ
28# It can also update the C files in the features directory from their
29# XML master copies. This relies on a GDB linked with expat and
30# configured for the correct architecture, so the files are again kept
31# in the GDB repository. To generate C files:
32# make GDB=/path/to/gdb XMLTOC="xml files" cfiles
33
30ed0a8f 34WHICH = arm-with-iwmmxt mips-linux mips64-linux \
7284e1be 35 rs6000/powerpc-32l rs6000/powerpc-altivec32l rs6000/powerpc-e500l \
604c2f83
LM
36 rs6000/powerpc-64l rs6000/powerpc-altivec64l rs6000/powerpc-vsx32l \
37 rs6000/powerpc-vsx64l
fb1e4ffc
DJ
38
39# Record which registers should be sent to GDB by default after stop.
40arm-with-iwmmxt-expedite = r11,sp,pc
117ce543
DJ
41mips-linux-expedite = r29,pc
42mips64-linux-expedite = r29,pc
7284e1be
UW
43rs6000/powerpc-32l-expedite = r1,pc
44rs6000/powerpc-altivec32l-expedite = r1,pc
604c2f83 45rs6000/powerpc-vsx32l-expedite = r1,pc
2c4ad781
TJB
46rs6000/powerpc-isa205-32l-expedite = r1,pc
47rs6000/powerpc-isa205-altivec32l-expedite = r1,pc
48rs6000/powerpc-isa205-vsx32l-expedite = r1,pc
7284e1be
UW
49rs6000/powerpc-e500l-expedite = r1,pc
50rs6000/powerpc-64l-expedite = r1,pc
51rs6000/powerpc-altivec64l-expedite = r1,pc
604c2f83 52rs6000/powerpc-vsx64l-expedite = r1,pc
2c4ad781
TJB
53rs6000/powerpc-isa205-64l-expedite = r1,pc
54rs6000/powerpc-isa205-altivec64l-expedite = r1,pc
55rs6000/powerpc-isa205-vsx64l-expedite = r1,pc
604c2f83 56
fb1e4ffc
DJ
57
58XSLTPROC = xsltproc
59outdir = ../regformats
60OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH))
61
81adfced
DJ
62XMLTOC =
63CFILES = $(patsubst %.xml,%.c,$(XMLTOC))
64GDB = false
65
fb1e4ffc
DJ
66all: $(OUTPUTS)
67
68$(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
69 echo "# DO NOT EDIT: generated from $<" > $(outdir)/$*.tmp
30ed0a8f 70 echo "name:`echo $(notdir $*) | sed 's/-/_/g'`" >> $(outdir)/$*.tmp
221c031f 71 echo "xmltarget:$(<F)" >> $(outdir)/$*.tmp
fb1e4ffc 72 echo "expedite:$($*-expedite)" >> $(outdir)/$*.tmp
30ed0a8f 73 $(XSLTPROC) --path "$(PWD)" --xinclude number-regs.xsl $< | \
fb1e4ffc
DJ
74 $(XSLTPROC) sort-regs.xsl - | \
75 $(XSLTPROC) gdbserver-regs.xsl - >> $(outdir)/$*.tmp
76 sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat
77
81adfced
DJ
78cfiles: $(CFILES)
79%.c: %.xml
80 $(GDB) -nx -q -batch \
81 -ex "set tdesc filename $<" -ex 'maint print c-tdesc' > $@.tmp
82 sh ../../move-if-change $@.tmp $@
83
fb1e4ffc
DJ
84# Other dependencies.
85$(outdir)/arm-with-iwmmxt.dat: arm-core.xml xscale-iwmmxt.xml
This page took 0.203489 seconds and 4 git commands to generate.