Reimplement shared library support on ppc-aix...
[deliverable/binutils-gdb.git] / gdb / features / Makefile
CommitLineData
28e7fd62 1# Copyright (C) 2007-2013 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
dcf7800b 7# the Free Software Foundation; either version 3 of the License, or
fb1e4ffc
DJ
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
dcf7800b 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
fb1e4ffc
DJ
17
18
19# This file requires GNU make!
20
21# This Makefile updates files in ../regformats from their XML master
22# copies. Because this relies on xsltproc, it is not normally run
23# during the build process; it should be run by hand when one of the
24# affected XML files is changed, and the results should be kept in the
25# GDB repository.
26
81adfced
DJ
27# It can also update the C files in the features directory from their
28# XML master copies. This relies on a GDB linked with expat and
29# configured for the correct architecture, so the files are again kept
30# in the GDB repository. To generate C files:
31# make GDB=/path/to/gdb XMLTOC="xml files" cfiles
32
07b287a0
MS
33WHICH = aarch64 aarch64-without-fpu \
34 arm-with-iwmmxt arm-with-vfpv2 arm-with-vfpv3 arm-with-neon \
3184d3f9 35 arm-with-m arm-with-m-fpa-layout arm-with-m-vfp-d16 \
46763423 36 i386/i386 i386/i386-linux \
3a13a53b 37 i386/i386-mmx i386/i386-mmx-linux \
46763423 38 i386/amd64 i386/amd64-linux \
98adf0f3
L
39 i386/i386-avx i386/i386-avx-linux \
40 i386/amd64-avx i386/amd64-avx-linux \
9a82b8ff
L
41 i386/x32 i386/x32-linux \
42 i386/x32-avx i386/x32-avx-linux \
1faeff08
MR
43 mips-linux mips-dsp-linux \
44 mips64-linux mips64-dsp-linux \
0482b03b 45 rs6000/powerpc-32 \
7284e1be 46 rs6000/powerpc-32l rs6000/powerpc-altivec32l rs6000/powerpc-e500l \
604c2f83 47 rs6000/powerpc-64l rs6000/powerpc-altivec64l rs6000/powerpc-vsx32l \
7803799a 48 rs6000/powerpc-vsx64l rs6000/powerpc-cell32l rs6000/powerpc-cell64l \
224bbe49 49 s390-linux32 s390-linux64 s390x-linux64 \
c642a434
UW
50 s390-linux32v1 s390-linux64v1 s390x-linux64v1 \
51 s390-linux32v2 s390-linux64v2 s390x-linux64v2 \
224bbe49
YQ
52 tic6x-c64xp tic6x-c64x tic6x-c62x \
53 tic6x-c64xp-linux tic6x-c64x-linux tic6x-c62x-linux
fb1e4ffc
DJ
54
55# Record which registers should be sent to GDB by default after stop.
07b287a0 56aarch64-expedite = x29,sp,pc
58d6951d 57arm-expedite = r11,sp,pc
46763423
L
58i386/i386-expedite = ebp,esp,eip
59i386/i386-linux-expedite = ebp,esp,eip
60i386/amd64-expedite = rbp,rsp,rip
61i386/amd64-linux-expedite = rbp,rsp,rip
98adf0f3
L
62i386/i386-avx-expedite = ebp,esp,eip
63i386/i386-avx-linux-expedite = ebp,esp,eip
3a13a53b
L
64i386/i386-mmx-expedite = ebp,esp,eip
65i386/i386-mmx-linux-expedite = ebp,esp,eip
98adf0f3
L
66i386/amd64-avx-expedite = rbp,rsp,rip
67i386/amd64-avx-linux-expedite = rbp,rsp,rip
9a82b8ff
L
68i386/x32-expedite = rbp,rsp,rip
69i386/x32-linux-expedite = rbp,rsp,rip
70i386/x32-avx-expedite = rbp,rsp,rip
71i386/x32-avx-linux-expedite = rbp,rsp,rip
58d6951d 72mips-expedite = r29,pc
1faeff08 73mips-dsp-expedite = r29,pc
58d6951d 74mips64-expedite = r29,pc
1faeff08 75mips64-dsp-expedite = r29,pc
58d6951d 76powerpc-expedite = r1,pc
f4d9bade
UW
77rs6000/powerpc-cell32l-expedite = r1,pc,r0,orig_r3,r4
78rs6000/powerpc-cell64l-expedite = r1,pc,r0,orig_r3,r4
7803799a 79s390-linux32-expedite = r14,r15,pswa
c642a434
UW
80s390-linux32v1-expedite = r14,r15,pswa
81s390-linux32v2-expedite = r14,r15,pswa
7803799a 82s390-linux64-expedite = r14l,r15l,pswa
c642a434
UW
83s390-linux64v1-expedite = r14l,r15l,pswa
84s390-linux64v2-expedite = r14l,r15l,pswa
7803799a 85s390x-linux64-expedite = r14,r15,pswa
c642a434
UW
86s390x-linux64v1-expedite = r14,r15,pswa
87s390x-linux64v2-expedite = r14,r15,pswa
224bbe49
YQ
88tic6x-c64xp-expedite = A15,PC
89tic6x-c64x-expedite = A15,PC
90tic6x-c62x-expedite = A15,PC
91tic6x-c64xp-linux-expedite = A15,PC
92tic6x-c64x-linux-expedite = A15,PC
93tic6x-c62x-linux-expedite = A15,PC
604c2f83 94
fb1e4ffc
DJ
95
96XSLTPROC = xsltproc
97outdir = ../regformats
98OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH))
99
81adfced
DJ
100XMLTOC =
101CFILES = $(patsubst %.xml,%.c,$(XMLTOC))
102GDB = false
103
fb1e4ffc
DJ
104all: $(OUTPUTS)
105
106$(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
107 echo "# DO NOT EDIT: generated from $<" > $(outdir)/$*.tmp
30ed0a8f 108 echo "name:`echo $(notdir $*) | sed 's/-/_/g'`" >> $(outdir)/$*.tmp
221c031f 109 echo "xmltarget:$(<F)" >> $(outdir)/$*.tmp
f4d9bade
UW
110 echo "expedite:$(if $($*-expedite),$($*-expedite),$($(firstword $(subst -, ,$(notdir $*)))-expedite))" \
111 >> $(outdir)/$*.tmp
30ed0a8f 112 $(XSLTPROC) --path "$(PWD)" --xinclude number-regs.xsl $< | \
fb1e4ffc
DJ
113 $(XSLTPROC) sort-regs.xsl - | \
114 $(XSLTPROC) gdbserver-regs.xsl - >> $(outdir)/$*.tmp
115 sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat
116
81adfced
DJ
117cfiles: $(CFILES)
118%.c: %.xml
119 $(GDB) -nx -q -batch \
120 -ex "set tdesc filename $<" -ex 'maint print c-tdesc' > $@.tmp
121 sh ../../move-if-change $@.tmp $@
122
fb1e4ffc
DJ
123# Other dependencies.
124$(outdir)/arm-with-iwmmxt.dat: arm-core.xml xscale-iwmmxt.xml
46763423
L
125$(outdir)/i386/i386.dat: i386/32bit-core.xml i386/32bit-sse.xml
126$(outdir)/i386/i386-linux.dat: i386/32bit-core.xml i386/32bit-sse.xml \
127 i386/32bit-linux.xml
128$(outdir)/i386/amd64.dat: i386/64bit-core.xml i386/64bit-sse.xml
129$(outdir)/i386/amd64-linux.dat: i386/64bit-core.xml i386/64bit-sse.xml \
130 i386/64bit-linux.xml
98adf0f3
L
131$(outdir)/i386/i386-avx.dat: i386/32bit-core.xml i386/32bit-avx.xml
132$(outdir)/i386/i386-avx-linux.dat: i386/32bit-core.xml i386/32bit-avx.xml \
133 i386/32bit-linux.xml
3a13a53b
L
134$(outdir)/i386/i386-mmx.dat: i386/32bit-core.xml
135$(outdir)/i386/i386-mmx-linux.dat: i386/32bit-core.xml i386/32bit-linux.xml
98adf0f3
L
136$(outdir)/i386/amd64-avx.dat: i386/64bit-core.xml i386/64bit-avx.xml
137$(outdir)/i386/amd64-avx-linux.dat: i386/64bit-core.xml i386/64bit-avx.xml \
138 i386/64bit-linux.xml
9a82b8ff
L
139$(outdir)/i386/x32.dat: i386/x32-core.xml i386/64bit-sse.xml
140$(outdir)/i386/x32-linux.dat: i386/x32-core.xml i386/64bit-sse.xml \
141 i386/64bit-linux.xml
142$(outdir)/i386/x32-avx.dat: i386/x32-core.xml i386/64bit-avx.xml
143$(outdir)/i386/x32-avx-linux.dat: i386/x32-core.xml i386/64bit-avx.xml \
144 i386/64bit-linux.xml
This page took 0.458044 seconds and 4 git commands to generate.