Commit | Line | Data |
---|---|---|
62e859f0 | 1 | #Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. |
33cf356a SG |
2 | |
3 | # This file is part of GDB. | |
4 | ||
5 | # This program is free software; you can redistribute it and/or modify | |
3e5afc2c RP |
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 | |
33cf356a | 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
3e5afc2c RP |
18 | |
19 | prefix = /usr/local | |
20 | ||
b68b44fa | 21 | program_transform_name = |
4db3902a RP |
22 | exec_prefix = $(prefix) |
23 | bindir = $(exec_prefix)/bin | |
24 | libdir = $(exec_prefix)/lib | |
6a1f93f6 | 25 | tooldir = $(libdir)/$(target_alias) |
4db3902a | 26 | |
3e5afc2c | 27 | datadir = $(prefix)/lib |
4db3902a | 28 | mandir = $(prefix)/man |
3e5afc2c RP |
29 | man1dir = $(mandir)/man1 |
30 | man2dir = $(mandir)/man2 | |
31 | man3dir = $(mandir)/man3 | |
32 | man4dir = $(mandir)/man4 | |
33 | man5dir = $(mandir)/man5 | |
34 | man6dir = $(mandir)/man6 | |
35 | man7dir = $(mandir)/man7 | |
36 | man8dir = $(mandir)/man8 | |
37 | man9dir = $(mandir)/man9 | |
4db3902a | 38 | infodir = $(prefix)/info |
3e5afc2c RP |
39 | includedir = $(prefix)/include |
40 | docdir = $(datadir)/doc | |
41 | ||
42 | SHELL = /bin/sh | |
43 | ||
c8fee4a5 | 44 | INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c |
3e5afc2c RP |
45 | INSTALL_PROGRAM = $(INSTALL) |
46 | INSTALL_DATA = $(INSTALL) | |
5ebaf24b | 47 | INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
98a7278b | 48 | INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 |
3e5afc2c RP |
49 | |
50 | AR = ar | |
33cf356a | 51 | AR_FLAGS = qv |
3e5afc2c RP |
52 | RANLIB = ranlib |
53 | ||
33cf356a SG |
54 | # Flags that describe where you can find the termcap library. |
55 | # This can be overridden in the host Makefile fragment file. | |
56 | TERMCAP = -ltermcap | |
57 | ||
58 | # System V: If you compile gdb with a compiler which uses the coff | |
59 | # encapsulation feature (this is a function of the compiler used, NOT | |
60 | # of the m-?.h file selected by config.gdb), you must make sure that | |
61 | # the GNU nm is the one that is used by munch. | |
62 | ||
63 | # If you are compiling with GCC, make sure that either 1) You use the | |
64 | # -traditional flag, or 2) You have the fixed include files where GCC | |
65 | # can reach them. Otherwise the ioctl calls in inflow.c | |
66 | # will be incorrectly compiled. The "fixincludes" script in the gcc | |
67 | # distribution will fix your include files up. | |
68 | #CC=cc | |
69 | #CC=gcc -traditional | |
70 | GCC=gcc | |
71 | ||
72 | # Directory containing source files. Don't clean up the spacing, | |
73 | # this exact string is matched for by the "configure" script. | |
74 | srcdir = . | |
d941d8c3 | 75 | |
33cf356a SG |
76 | # It is also possible that you will need to add -I/usr/include/sys to the |
77 | # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which | |
78 | # is where it should be according to Posix). | |
79 | ||
19d0f3f4 | 80 | # If you use bison instead of yacc, it needs to include the "-y" argument. |
0b81fc43 | 81 | #BISON=bison -y |
33cf356a SG |
82 | BISON=yacc |
83 | YACC=$(BISON) | |
33cf356a | 84 | |
33cf356a | 85 | # where to find texinfo; GDB dist should include a recent one |
967007ca | 86 | TEXIDIR=${srcdir}/../texinfo |
33cf356a SG |
87 | |
88 | # where to find makeinfo, preferably one designed for texinfo-2 | |
89 | MAKEINFO=makeinfo | |
90 | ||
91 | # Set this up with gcc if you have gnu ld and the loader will print out | |
92 | # line numbers for undefinded refs. | |
93 | #CC-LD=gcc -static | |
94 | CC-LD=${CC} | |
95 | ||
96 | # Where is the "include" directory? Traditionally ../include or ./include | |
97 | INCLUDE_DIR = ${srcdir}/../include | |
98 | INCLUDE_DEP = $$(INCLUDE_DIR) | |
99 | ||
100 | # Where is the source dir for the MMALLOC library? Traditionally ../mmalloc | |
101 | # or ./mmalloc (When we want the binary library built from it, we use | |
102 | # ${MMALLOC_DIR}${subdir}.) | |
103 | # Note that mmalloc can still be used on systems without mmap(). | |
104 | # To use your system malloc, comment out the following defines. | |
105 | MMALLOC_DIR = ${srcdir}/../mmalloc | |
106 | MMALLOC_DEP = $$(MMALLOC_DIR) | |
107 | MMALLOC_LIB = ./../mmalloc${subdir}/libmmalloc.a | |
108 | # To use your system malloc, uncomment MMALLOC_DISABLE. | |
109 | #MMALLOC_DISABLE = -DNO_MMALLOC | |
110 | # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK | |
111 | #MMALLOC_CHECK = -DNO_MMALLOC_CHECK | |
112 | MMALLOC_CFLAGS = ${MMALLOC_CHECK} ${MMALLOC_DISABLE} | |
113 | ||
6f4a4fbb FF |
114 | # Where are the source and binary directories for the BFD library? |
115 | BFD_SRC_DIR = ${srcdir}/../bfd | |
116 | BFD_OBJ_DIR = ./../bfd${subdir} | |
117 | BFD_DEP = $$(BFD_SRC_DIR) | |
118 | BFD_LIB = $(BFD_OBJ_DIR)/libbfd.a | |
200a3470 | 119 | BFD_INCLUDES = -I${BFD_SRC_DIR} -I${BFD_OBJ_DIR} |
33cf356a SG |
120 | |
121 | # Where is the source dir for the READLINE library? Traditionally in .. or . | |
122 | # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.) | |
123 | READLINE_DIR = ${srcdir}/../readline | |
124 | READLINE_DEP = $$(READLINE_DIR) | |
125 | RL_LIB = ./../readline${subdir}/libreadline.a | |
126 | ||
127 | # All the includes used for CFLAGS and for lint. | |
128 | # -I. for config files. | |
129 | # -I${srcdir} possibly for regex.h also. | |
1a0edbc7 | 130 | # -I${srcdir}/config for more generic config files. |
fc61e9ee | 131 | INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/config \ |
68eabdd3 | 132 | -I$(INCLUDE_DIR) -I../include ${BFD_INCLUDES} |
33cf356a SG |
133 | |
134 | # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS | |
135 | # from the config/ directory. | |
136 | GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS} | |
137 | #PROFILE_CFLAGS = -pg | |
138 | ||
139 | # CFLAGS is specifically reserved for setting from the command line | |
140 | # when running make. I.E. "make USER_CFLAGS=-Wmissing-prototypes". | |
141 | CFLAGS = -g | |
142 | # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. | |
143 | INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS} | |
144 | # None of the things in CFLAGS will do any harm, and on some systems | |
d40309c7 | 145 | # (e.g. SunOS4) it is important to use the MH_CFLAGS. |
33cf356a SG |
146 | LDFLAGS = $(CFLAGS) |
147 | ||
148 | # Where is the "-liberty" library, containing getopt and obstack? | |
149 | LIBIBERTY_DIR = ${srcdir}/../libiberty | |
150 | LIBIBERTY = ./../libiberty${subdir}/libiberty.a | |
151 | ||
1e4f3c20 KR |
152 | # Where is the "-lopcodes" library, with (some of) the opcode tables and |
153 | # disassemblers? | |
154 | OPCODES = ./../opcodes${subdir}/libopcodes.a | |
155 | ||
33cf356a | 156 | # The config/mh-* file must define REGEX and REGEX1 on USG machines. |
31d16514 | 157 | # If your system is missing alloca(), or, more likely, it's there but |
33cf356a | 158 | # it doesn't work, define ALLOCA & ALLOCA1 too. |
33cf356a SG |
159 | |
160 | # Libraries and corresponding dependencies for compiling gdb. | |
161 | # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs. | |
162 | # TERMCAP comes after readline, since readline depends on it. | |
5b40415c JK |
163 | # If you have the Cygnus libraries installed, |
164 | # you can use 'CLIBS=${INSTALLED_LIBS}' 'CDEPS=' | |
165 | INSTALLED_LIBS=-lbfd -lreadline ${TERMCAP} -lopcodes -lmmalloc \ | |
166 | -liberty ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS} | |
d39fbfe3 FF |
167 | CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} \ |
168 | ${LIBIBERTY} ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS} | |
d40309c7 | 169 | CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \ |
d39fbfe3 | 170 | ${BFD_LIB} ${RL_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} |
33cf356a | 171 | |
d39fbfe3 FF |
172 | ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} \ |
173 | ${NAT_ADD_FILES} | |
174 | ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} \ | |
175 | ${NAT_ADD_FILES} | |
33cf356a | 176 | |
ce13daa7 | 177 | VERSION = 4.9.2 |
33cf356a SG |
178 | DIST=gdb |
179 | ||
180 | LINT=/usr/5bin/lint | |
53f0969b | 181 | LINTFLAGS= ${BFD_INCLUDES} |
33cf356a | 182 | |
e7d3b7d1 RS |
183 | RUNTEST=runtest |
184 | RUNTESTFLAGS= | |
6fcb280e | 185 | |
fd382d28 JK |
186 | # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX |
187 | # interface to the serial port. Hopefully if get ported to OS/2, VMS, | |
188 | # etc., then there will be (as part of the C library or perhaps as | |
189 | # part of libiberty) a POSIX interface. But at least for now the | |
190 | # host-dependent makefile fragment might need to use something else | |
191 | # besides ser-unix.o | |
bd91ddd1 | 192 | SER_HARDWIRE=ser-unix.o |
fd382d28 | 193 | |
33cf356a SG |
194 | # Host and target-dependent makefile fragments come in here. |
195 | #### | |
196 | # End of host and target-dependent makefile fragments | |
197 | ||
ef131e13 | 198 | FLAGS_TO_PASS = \ |
2fcc38b8 FF |
199 | "prefix=$(prefix)" \ |
200 | "exec_prefix=$(exec_prefix)" \ | |
ef131e13 JG |
201 | "against=$(against)" \ |
202 | "AR=$(AR)" \ | |
203 | "AR_FLAGS=$(AR_FLAGS)" \ | |
204 | "CC=$(CC)" \ | |
205 | "CFLAGS=$(CFLAGS)" \ | |
aecc5459 ILT |
206 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
207 | "CHILL=$(CHILL)" \ | |
208 | "CHILL_LIB=$(CHILL_LIB)" \ | |
aecc5459 ILT |
209 | "CXX=$(CXX)" \ |
210 | "CXXFLAGS=$(CXXFLAGS)" \ | |
ef131e13 JG |
211 | "RANLIB=$(RANLIB)" \ |
212 | "MAKEINFO=$(MAKEINFO)" \ | |
213 | "INSTALL=$(INSTALL)" \ | |
214 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
215 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
e7d3b7d1 RS |
216 | "RUNTEST=$(RUNTEST)" \ |
217 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
ef131e13 JG |
218 | "BISON=$(BISON)" |
219 | ||
aecc5459 ILT |
220 | # Flags that we pass when building the testsuite. |
221 | ||
222 | CC_FOR_TARGET = ` \ | |
223 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
224 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ | |
225 | else \ | |
226 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
227 | echo $(CC); \ | |
228 | else \ | |
229 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
230 | fi; \ | |
231 | fi` | |
232 | ||
233 | CXX = gcc | |
234 | ||
235 | CXX_FOR_TARGET = ` \ | |
236 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
237 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ | |
238 | else \ | |
239 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
240 | echo $(CXX); \ | |
241 | else \ | |
242 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
243 | fi; \ | |
244 | fi` | |
245 | ||
aecc5459 ILT |
246 | CHILLFLAGS = $(CFLAGS) |
247 | CHILL = gcc | |
248 | CHILL_FOR_TARGET = ` \ | |
249 | if [ -f $${rootme}/../gcc/Makefile ] ; then \ | |
250 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -L$${rootme}/../chillrt/; \ | |
251 | else \ | |
252 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
253 | echo $(CC); \ | |
254 | else \ | |
255 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
256 | fi; \ | |
257 | fi` | |
258 | CHILL_LIB = -lchill | |
1fa66e36 | 259 | |
0b96ed06 FF |
260 | # The use of $$(x_FOR_TARGET) reduces the command line length by not |
261 | # duplicating the lengthy definition. | |
aecc5459 ILT |
262 | TARGET_FLAGS_TO_PASS = \ |
263 | "prefix=$(prefix)" \ | |
264 | "exec_prefix=$(exec_prefix)" \ | |
265 | "against=$(against)" \ | |
0b96ed06 FF |
266 | 'CC=$$(CC_FOR_TARGET)' \ |
267 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
aecc5459 | 268 | "CFLAGS=$(CFLAGS)" \ |
aecc5459 | 269 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
0b96ed06 FF |
270 | 'CHILL=$$(CHILL_FOR_TARGET)' \ |
271 | "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ | |
aecc5459 | 272 | "CHILL_LIB=$(CHILL_LIB)" \ |
0b96ed06 FF |
273 | 'CXX=$$(CXX_FOR_TARGET)' \ |
274 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
aecc5459 ILT |
275 | "CXXFLAGS=$(CXXFLAGS)" \ |
276 | "MAKEINFO=$(MAKEINFO)" \ | |
277 | "INSTALL=$(INSTALL)" \ | |
278 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
279 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
e7d3b7d1 RS |
280 | "RUNTEST=$(RUNTEST)" \ |
281 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
aecc5459 ILT |
282 | "BISON=$(BISON)" |
283 | ||
5287eacd | 284 | # All source files that go into linking GDB. |
853a233b | 285 | # Links made at configuration time should not be specified here, since |
5287eacd FF |
286 | # SFILES is used in building the distribution archive. |
287 | ||
24c2857c JK |
288 | SFILES = ${srcdir}/blockframe.c ${srcdir}/breakpoint.c ${srcdir}/buildsym.c \ |
289 | ${srcdir}/c-exp.y ${srcdir}/c-lang.c ${srcdir}/c-typeprint.c \ | |
290 | ${srcdir}/c-valprint.c ${srcdir}/ch-exp.y ${srcdir}/ch-lang.c \ | |
291 | ${srcdir}/ch-typeprint.c ${srcdir}/ch-valprint.c ${srcdir}/coffread.c \ | |
292 | ${srcdir}/command.c ${srcdir}/complaints.c ${srcdir}/core.c \ | |
293 | ${srcdir}/cp-valprint.c ${srcdir}/dbxread.c ${srcdir}/demangle.c \ | |
294 | ${srcdir}/dwarfread.c ${srcdir}/elfread.c ${srcdir}/environ.c \ | |
295 | ${srcdir}/eval.c ${srcdir}/expprint.c ${srcdir}/findvar.c \ | |
296 | ${srcdir}/gdbtypes.c \ | |
297 | ${srcdir}/infcmd.c ${srcdir}/inflow.c ${srcdir}/infrun.c \ | |
5287eacd FF |
298 | ${srcdir}/language.c ${srcdir}/putenv.c ${srcdir}/m2-exp.y \ |
299 | ${srcdir}/m2-lang.c ${srcdir}/m2-typeprint.c \ | |
24c2857c JK |
300 | ${srcdir}/m2-valprint.c ${srcdir}/main.c ${srcdir}/maint.c \ |
301 | ${srcdir}/mem-break.c ${srcdir}/minsyms.c ${srcdir}/mipsread.c \ | |
302 | ${srcdir}/objfiles.c ${srcdir}/parse.c ${srcdir}/printcmd.c \ | |
303 | ${srcdir}/remote.c ${srcdir}/source.c ${srcdir}/stabsread.c \ | |
304 | ${srcdir}/stack.c \ | |
305 | ${srcdir}/symfile.c ${srcdir}/symmisc.c ${srcdir}/symtab.c \ | |
306 | ${srcdir}/target.c ${srcdir}/typeprint.c ${srcdir}/utils.c \ | |
307 | ${srcdir}/valarith.c \ | |
308 | ${srcdir}/valops.c ${srcdir}/valprint.c ${srcdir}/values.c \ | |
bd91ddd1 | 309 | ${srcdir}/serial.c ${srcdir}/ser-unix.c |
2531303c FF |
310 | |
311 | # Files that are not source code, but need to go into gdb-$(VERSION).tar.Z. | |
853a233b | 312 | NONSRC = ${srcdir}/Makefile.in ${srcdir}/depend \ |
24c2857c | 313 | ${srcdir}/munch ${srcdir}/configure.in \ |
6e50aeb4 FF |
314 | ${srcdir}/ChangeLog ${srcdir}/ChangeLog-9091 ${srcdir}/ChangeLog-92 \ |
315 | ${srcdir}/ChangeLog-3.x \ | |
24c2857c JK |
316 | ${srcdir}/gdb.1 ${srcdir}/refcard.ps ${srcdir}/README ${srcdir}/TODO \ |
317 | TAGS ${srcdir}/NEWS ${srcdir}/Projects ${srcdir}/.gdbinit \ | |
318 | ${srcdir}/COPYING $(YYFILES) ${srcdir}/copying.c \ | |
319 | ${srcdir}/copying.awk \ | |
320 | ${srcdir}/saber.suppress ${srcdir}/standalone.c ${srcdir}/stuff.c \ | |
5287eacd | 321 | ${srcdir}/kdb-start.c ${srcdir}/gcc.patch \ |
2531303c FF |
322 | ${srcdir}/nindy-share/Makefile ${srcdir}/nindy-share/VERSION \ |
323 | ${srcdir}/nindy-share/README ${srcdir}/vx-share/README \ | |
d8aaff82 | 324 | ${srcdir}/29k-share/README \ |
2531303c FF |
325 | ${srcdir}/config/convex/Convex.notes |
326 | ||
33cf356a SG |
327 | # All source files that lint should look at |
328 | LINTFILES = $(SFILES) $(YYFILES) init.c | |
329 | ||
330 | # Any additional files specified on these lines should also be added to | |
2531303c | 331 | # the NONSRC definition, so they go in the tar files. |
33cf356a SG |
332 | SFILES_STAND = $(SFILES) standalone.c |
333 | SFILES_KGDB = $(SFILES) stuff.c kdb-start.c | |
334 | ||
1a0edbc7 | 335 | # Header files that are not named in config/*/* Makefile fragments go here. |
24c2857c JK |
336 | HFILES = ${srcdir}/breakpoint.h ${srcdir}/buildsym.h ${srcdir}/call-cmds.h \ |
337 | ${srcdir}/command.h ${srcdir}/defs.h ${srcdir}/environ.h \ | |
338 | ${srcdir}/expression.h ${srcdir}/frame.h ${srcdir}/gdbcmd.h \ | |
339 | ${srcdir}/gdbcore.h ${srcdir}/gdbtypes.h ${srcdir}/gdb-stabs.h \ | |
340 | ${srcdir}/inferior.h ${srcdir}/language.h ${srcdir}/minimon.h \ | |
341 | ${srcdir}/objfiles.h ${srcdir}/parser-defs.h \ | |
342 | ${srcdir}/partial-stab.h ${srcdir}/serial.h ${srcdir}/signals.h \ | |
343 | ${srcdir}/solib.h ${srcdir}/symfile.h ${srcdir}/symtab.h \ | |
344 | ${srcdir}/stabsread.h ${srcdir}/target.h ${srcdir}/terminal.h \ | |
345 | ${srcdir}/typeprint.h ${srcdir}/xcoffsolib.h ${srcdir}/value.h \ | |
346 | ${srcdir}/c-lang.h ${srcdir}/ch-lang.h ${srcdir}/m2-lang.h \ | |
347 | ${srcdir}/complaints.h ${srcdir}/ns32k-opcode.h ${srcdir}/valprint.h \ | |
348 | ${srcdir}/config/m68k/tm-m68k.h ${srcdir}/config/pa/tm-hppa.h \ | |
349 | ${srcdir}/config/i960/tm-i960.h ${srcdir}/config/sparc/tm-sparc.h \ | |
350 | ${srcdir}/config/tm-sunos.h \ | |
351 | ${srcdir}/config/tm-sysv4.h ${srcdir}/config/m68k/xm-m68k.h \ | |
352 | ${srcdir}/config/sparc/xm-sparc.h \ | |
353 | ${srcdir}/config/xm-sysv4.h ${srcdir}/config/vax/xm-vax.h \ | |
d8aaff82 | 354 | ${srcdir}/config/nm-trash.h ${srcdir}/29k-share/udi/udiids.h \ |
fd382d28 | 355 | ${srcdir}/29k-share/udi/udiphcfg.h ${srcdir}/29k-share/udi/udiphunix.h \ |
2531303c FF |
356 | ${srcdir}/29k-share/udi/udiproc.h ${srcdir}/29k-share/udi/udipt29k.h \ |
357 | ${srcdir}/29k-share/udi/udiptcfg.h ${srcdir}/29k-share/udi/udisoc.h \ | |
358 | ${srcdir}/29k-share/udi_soc ${srcdir}/nindy-share/b.out.h \ | |
359 | ${srcdir}/nindy-share/block_io.h ${srcdir}/nindy-share/coff.h \ | |
360 | ${srcdir}/nindy-share/demux.h ${srcdir}/nindy-share/env.h \ | |
361 | ${srcdir}/nindy-share/stop.h ${srcdir}/nindy-share/ttycntl.h \ | |
362 | ${srcdir}/vx-share/dbgRpcLib.h ${srcdir}/vx-share/ptrace.h \ | |
363 | ${srcdir}/vx-share/vxTypes.h ${srcdir}/vx-share/vxWorks.h \ | |
364 | ${srcdir}/vx-share/wait.h ${srcdir}/vx-share/xdr_ld.h \ | |
853a233b JK |
365 | ${srcdir}/vx-share/xdr_ptrace.h ${srcdir}/vx-share/xdr_rdb.h \ |
366 | ${srcdir}/monitor.h | |
367 | ||
368 | # These are things from config/*/*.m? fragments. There is no good reason | |
369 | # why they are separate from the lists of files above. | |
370 | ALLDEPFILES=\ | |
371 | ${srcdir}/29k-share/udi/udip2soc.c\ | |
372 | ${srcdir}/29k-share/udi/udr.c\ | |
373 | ${srcdir}/a29k-pinsn.c\ | |
374 | ${srcdir}/a29k-tdep.c\ | |
375 | ${srcdir}/a68v-nat.c\ | |
376 | ${srcdir}/altos-xdep.c\ | |
377 | ${srcdir}/arm-convert.s\ | |
378 | ${srcdir}/arm-pinsn.c\ | |
379 | ${srcdir}/arm-tdep.c\ | |
380 | ${srcdir}/arm-xdep.c\ | |
381 | ${srcdir}/convex-pinsn.c\ | |
382 | ${srcdir}/convex-tdep.c\ | |
383 | ${srcdir}/convex-xdep.c\ | |
384 | ${srcdir}/core-svr4.c\ | |
385 | ${srcdir}/coredep.c\ | |
386 | ${srcdir}/corelow.c\ | |
387 | ${srcdir}/exec.c\ | |
388 | ${srcdir}/fork-child.c\ | |
389 | ${srcdir}/go32-xdep.c\ | |
390 | ${srcdir}/gould-pinsn.c\ | |
391 | ${srcdir}/gould-xdep.c\ | |
392 | ${srcdir}/h8300-tdep.c\ | |
393 | ${srcdir}/h8500-tdep.c\ | |
394 | ${srcdir}/hp300ux-nat.c\ | |
395 | ${srcdir}/hppa-pinsn.c\ | |
396 | ${srcdir}/hppa-tdep.c\ | |
397 | ${srcdir}/hppab-nat.c\ | |
398 | ${srcdir}/hppah-nat.c\ | |
399 | ${srcdir}/i386-pinsn.c\ | |
400 | ${srcdir}/i386-tdep.c\ | |
401 | ${srcdir}/i386b-nat.c\ | |
402 | ${srcdir}/i386mach-nat.c\ | |
403 | ${srcdir}/i386v-nat.c\ | |
404 | ${srcdir}/i386aix-nat.c\ | |
405 | ${srcdir}/i386v4-nat.c\ | |
406 | ${srcdir}/i387-tdep.c\ | |
407 | ${srcdir}/i960-pinsn.c\ | |
408 | ${srcdir}/i960-tdep.c\ | |
409 | ${srcdir}/infptrace.c\ | |
410 | ${srcdir}/inftarg.c\ | |
411 | ${srcdir}/irix4-nat.c\ | |
412 | ${srcdir}/isi-xdep.c\ | |
413 | ${srcdir}/m68k-pinsn.c\ | |
414 | ${srcdir}/m68k-tdep.c\ | |
415 | ${srcdir}/m88k-nat.c\ | |
416 | ${srcdir}/m88k-pinsn.c\ | |
417 | ${srcdir}/m88k-tdep.c\ | |
418 | ${srcdir}/mips-nat.c\ | |
419 | ${srcdir}/mips-pinsn.c\ | |
420 | ${srcdir}/mips-tdep.c\ | |
421 | ${srcdir}/news-xdep.c\ | |
422 | ${srcdir}/nindy-share/Onindy.c\ | |
423 | ${srcdir}/nindy-share/nindy.c\ | |
424 | ${srcdir}/nindy-share/ttybreak.c\ | |
425 | ${srcdir}/nindy-share/ttyflush.c\ | |
426 | ${srcdir}/nindy-tdep.c\ | |
427 | ${srcdir}/ns32k-pinsn.c\ | |
428 | ${srcdir}/paread.c\ | |
429 | ${srcdir}/procfs.c\ | |
430 | ${srcdir}/pyr-pinsn.c\ | |
431 | ${srcdir}/pyr-tdep.c\ | |
432 | ${srcdir}/pyr-xdep.c\ | |
433 | ${srcdir}/remote-adapt.c\ | |
434 | ${srcdir}/remote-eb.c\ | |
435 | ${srcdir}/remote-es.c\ | |
436 | ${srcdir}/remote-hms.c\ | |
437 | ${srcdir}/remote-mips.c\ | |
438 | ${srcdir}/remote-mm.c\ | |
439 | ${srcdir}/remote-monitor.c\ | |
440 | ${srcdir}/remote-nindy.c\ | |
441 | ${srcdir}/remote-sim.c\ | |
442 | ${srcdir}/remote-st.c\ | |
443 | ${srcdir}/remote-udi.c\ | |
444 | ${srcdir}/remote-vx.c\ | |
445 | ${srcdir}/remote-z8k.c\ | |
446 | ${srcdir}/rs6000-nat.c\ | |
447 | ${srcdir}/rs6000-pinsn.c\ | |
448 | ${srcdir}/rs6000-tdep.c\ | |
449 | ${srcdir}/ser-go32.c\ | |
450 | ${srcdir}/ser-tcp.c\ | |
451 | ${srcdir}/sh-tdep.c\ | |
452 | ${srcdir}/solib.c\ | |
453 | ${srcdir}/sparc-nat.c\ | |
454 | ${srcdir}/sparc-pinsn.c\ | |
455 | ${srcdir}/sparc-tdep.c\ | |
456 | ${srcdir}/sun3-nat.c\ | |
457 | ${srcdir}/sun386-nat.c\ | |
458 | ${srcdir}/symm-tdep.c\ | |
459 | ${srcdir}/symm-xdep.c\ | |
460 | ${srcdir}/tahoe-pinsn.c\ | |
461 | ${srcdir}/ultra3-nat.c\ | |
462 | ${srcdir}/ultra3-xdep.c\ | |
463 | ${srcdir}/umax-xdep.c\ | |
464 | ${srcdir}/vax-pinsn.c\ | |
465 | ${srcdir}/vx-share/xdr_ld.c\ | |
466 | ${srcdir}/vx-share/xdr_ptrace.c\ | |
467 | ${srcdir}/vx-share/xdr_rdb.c\ | |
468 | ${srcdir}/xcoffexec.c\ | |
469 | ${srcdir}/xcoffread.c\ | |
470 | ${srcdir}/xcoffsolib.c\ | |
471 | ${srcdir}/z8k-tdep.c | |
472 | ||
473 | ALLPARAM=\ | |
474 | ${srcdir}/config/a29k/nm-ultra3.h\ | |
475 | ${srcdir}/config/a29k/tm-a29k.h\ | |
476 | ${srcdir}/config/a29k/tm-ultra3.h\ | |
477 | ${srcdir}/config/a29k/xm-ultra3.h\ | |
478 | ${srcdir}/config/arm/tm-arm.h\ | |
479 | ${srcdir}/config/arm/xm-arm.h\ | |
480 | ${srcdir}/config/convex/tm-convex.h\ | |
481 | ${srcdir}/config/convex/xm-convex.h\ | |
482 | ${srcdir}/config/gould/tm-np1.h\ | |
483 | ${srcdir}/config/gould/tm-pn.h\ | |
484 | ${srcdir}/config/gould/xm-np1.h\ | |
485 | ${srcdir}/config/gould/xm-pn.h\ | |
486 | ${srcdir}/config/h8300/tm-h8300.h\ | |
487 | ${srcdir}/config/h8500/tm-h8500.h\ | |
488 | ${srcdir}/config/i386/nm-i386aix.h\ | |
489 | ${srcdir}/config/i386/nm-i386bsd.h\ | |
490 | ${srcdir}/config/i386/nm-i386lynx.h\ | |
491 | ${srcdir}/config/i386/nm-i386mach.h\ | |
492 | ${srcdir}/config/i386/nm-i386sco.h\ | |
493 | ${srcdir}/config/i386/nm-i386sco4.h\ | |
494 | ${srcdir}/config/i386/nm-i386v.h\ | |
495 | ${srcdir}/config/i386/nm-i386v4.h\ | |
496 | ${srcdir}/config/i386/nm-linux.h\ | |
497 | ${srcdir}/config/i386/nm-sun386.h\ | |
498 | ${srcdir}/config/i386/tm-i386aix.h\ | |
499 | ${srcdir}/config/i386/tm-i386bsd.h\ | |
500 | ${srcdir}/config/i386/tm-i386lynx.h\ | |
501 | ${srcdir}/config/i386/tm-i386v.h\ | |
502 | ${srcdir}/config/i386/tm-i386v4.h\ | |
503 | ${srcdir}/config/i386/tm-linux.h\ | |
504 | ${srcdir}/config/i386/tm-sun386.h\ | |
505 | ${srcdir}/config/i386/tm-symmetry.h\ | |
506 | ${srcdir}/config/i386/xm-go32.h\ | |
507 | ${srcdir}/config/i386/xm-i386aix.h\ | |
508 | ${srcdir}/config/i386/xm-i386bsd.h\ | |
509 | ${srcdir}/config/i386/xm-i386lynx.h\ | |
510 | ${srcdir}/config/i386/xm-i386mach.h\ | |
511 | ${srcdir}/config/i386/xm-i386sco.h\ | |
512 | ${srcdir}/config/i386/xm-i386v.h\ | |
513 | ${srcdir}/config/i386/xm-i386v32.h\ | |
514 | ${srcdir}/config/i386/xm-i386v4.h\ | |
515 | ${srcdir}/config/i386/xm-linux.h\ | |
516 | ${srcdir}/config/i386/xm-sun386.h\ | |
517 | ${srcdir}/config/i386/xm-symmetry.h\ | |
518 | ${srcdir}/config/i960/tm-nindy960.h\ | |
519 | ${srcdir}/config/i960/tm-vx960.h\ | |
520 | ${srcdir}/config/m68k/nm-apollo68b.h\ | |
521 | ${srcdir}/config/m68k/nm-apollo68v.h\ | |
522 | ${srcdir}/config/m68k/nm-hp300bsd.h\ | |
523 | ${srcdir}/config/m68k/nm-hp300hpux.h\ | |
524 | ${srcdir}/config/m68k/nm-news.h\ | |
525 | ${srcdir}/config/m68k/nm-sun2.h\ | |
526 | ${srcdir}/config/m68k/nm-sun3.h\ | |
527 | ${srcdir}/config/m68k/tm-3b1.h\ | |
528 | ${srcdir}/config/m68k/tm-altos.h\ | |
529 | ${srcdir}/config/m68k/tm-amix.h\ | |
530 | ${srcdir}/config/m68k/tm-es1800.h\ | |
531 | ${srcdir}/config/m68k/tm-hp300bsd.h\ | |
532 | ${srcdir}/config/m68k/tm-hp300hpux.h\ | |
533 | ${srcdir}/config/m68k/tm-isi.h\ | |
534 | ${srcdir}/config/m68k/tm-m68k-fp.h\ | |
535 | ${srcdir}/config/m68k/tm-m68k-nofp.h\ | |
536 | ${srcdir}/config/m68k/tm-monitor.h\ | |
537 | ${srcdir}/config/m68k/tm-news.h\ | |
538 | ${srcdir}/config/m68k/tm-os68k.h\ | |
539 | ${srcdir}/config/m68k/tm-st2000.h\ | |
540 | ${srcdir}/config/m68k/tm-sun2.h\ | |
541 | ${srcdir}/config/m68k/tm-sun2os4.h\ | |
542 | ${srcdir}/config/m68k/tm-sun3.h\ | |
543 | ${srcdir}/config/m68k/tm-sun3os4.h\ | |
544 | ${srcdir}/config/m68k/tm-vx68.h\ | |
545 | ${srcdir}/config/m68k/xm-3b1.h\ | |
546 | ${srcdir}/config/m68k/xm-altos.h\ | |
547 | ${srcdir}/config/m68k/xm-amix.h\ | |
548 | ${srcdir}/config/m68k/xm-apollo68b.h\ | |
549 | ${srcdir}/config/m68k/xm-apollo68v.h\ | |
550 | ${srcdir}/config/m68k/xm-hp300bsd.h\ | |
551 | ${srcdir}/config/m68k/xm-hp300hpux.h\ | |
552 | ${srcdir}/config/m68k/xm-isi.h\ | |
553 | ${srcdir}/config/m68k/xm-news.h\ | |
554 | ${srcdir}/config/m68k/xm-news1000.h\ | |
555 | ${srcdir}/config/m68k/xm-sun2.h\ | |
556 | ${srcdir}/config/m68k/xm-sun3.h\ | |
557 | ${srcdir}/config/m68k/xm-sun3os4.h\ | |
558 | ${srcdir}/config/m88k/nm-m88k.h\ | |
559 | ${srcdir}/config/m88k/tm-delta88.h\ | |
560 | ${srcdir}/config/m88k/tm-m88k.h\ | |
561 | ${srcdir}/config/m88k/xm-delta88.h\ | |
562 | ${srcdir}/config/m88k/xm-m88k.h\ | |
563 | ${srcdir}/config/mips/nm-irix3.h\ | |
564 | ${srcdir}/config/mips/nm-irix4.h\ | |
565 | ${srcdir}/config/mips/nm-mips.h\ | |
566 | ${srcdir}/config/mips/tm-bigmips.h\ | |
567 | ${srcdir}/config/mips/tm-irix3.h\ | |
568 | ${srcdir}/config/mips/tm-mips.h\ | |
569 | ${srcdir}/config/mips/xm-irix3.h\ | |
570 | ${srcdir}/config/mips/xm-irix4.h\ | |
571 | ${srcdir}/config/mips/xm-mips.h\ | |
572 | ${srcdir}/config/nm-sysv4.h\ | |
573 | ${srcdir}/config/none/nm-none.h\ | |
574 | ${srcdir}/config/none/tm-none.h\ | |
575 | ${srcdir}/config/none/xm-none.h\ | |
576 | ${srcdir}/config/ns32k/nm-umax.h\ | |
577 | ${srcdir}/config/ns32k/tm-merlin.h\ | |
578 | ${srcdir}/config/ns32k/tm-umax.h\ | |
579 | ${srcdir}/config/ns32k/xm-merlin.h\ | |
580 | ${srcdir}/config/ns32k/xm-umax.h\ | |
581 | ${srcdir}/config/pa/nm-hppab.h\ | |
582 | ${srcdir}/config/pa/nm-hppah.h\ | |
583 | ${srcdir}/config/pa/tm-hppab.h\ | |
584 | ${srcdir}/config/pa/tm-hppah.h\ | |
585 | ${srcdir}/config/pa/xm-hppab.h\ | |
586 | ${srcdir}/config/pa/xm-hppah.h\ | |
587 | ${srcdir}/config/pyr/tm-pyr.h\ | |
588 | ${srcdir}/config/pyr/xm-pyr.h\ | |
589 | ${srcdir}/config/romp/xm-rtbsd.h\ | |
590 | ${srcdir}/config/rs6000/nm-rs6000.h\ | |
591 | ${srcdir}/config/rs6000/tm-rs6000.h\ | |
592 | ${srcdir}/config/rs6000/xm-rs6000.h\ | |
593 | ${srcdir}/config/sh/tm-sh.h\ | |
594 | ${srcdir}/config/sparc/nm-sun4os4.h\ | |
595 | ${srcdir}/config/sparc/tm-sparclite.h\ | |
596 | ${srcdir}/config/sparc/tm-spc-em.h\ | |
597 | ${srcdir}/config/sparc/tm-sun4os4.h\ | |
598 | ${srcdir}/config/sparc/tm-sun4sol2.h\ | |
599 | ${srcdir}/config/sparc/tm-vxsparc.h\ | |
600 | ${srcdir}/config/sparc/xm-sun4os4.h\ | |
601 | ${srcdir}/config/sparc/xm-sun4sol2.h\ | |
602 | ${srcdir}/config/tahoe/tm-tahoe.h\ | |
603 | ${srcdir}/config/tahoe/xm-tahoe.h\ | |
604 | ${srcdir}/config/vax/nm-vax.h\ | |
605 | ${srcdir}/config/vax/tm-vax.h\ | |
606 | ${srcdir}/config/vax/xm-vaxbsd.h\ | |
607 | ${srcdir}/config/vax/xm-vaxult.h\ | |
608 | ${srcdir}/config/vax/xm-vaxult2.h\ | |
609 | ${srcdir}/config/z8k/tm-z8k.h | |
610 | ||
611 | ALLCONFIG=\ | |
612 | ${srcdir}/config/a29k/a29k-kern.mt\ | |
613 | ${srcdir}/config/a29k/a29k-udi.mt\ | |
614 | ${srcdir}/config/a29k/a29k.mt\ | |
615 | ${srcdir}/config/a29k/ultra3.mh\ | |
616 | ${srcdir}/config/a29k/ultra3.mt\ | |
617 | ${srcdir}/config/arm/arm.mh\ | |
618 | ${srcdir}/config/arm/arm.mt\ | |
619 | ${srcdir}/config/convex/convex.mh\ | |
620 | ${srcdir}/config/convex/convex.mt\ | |
621 | ${srcdir}/config/gould/np1.mh\ | |
622 | ${srcdir}/config/gould/np1.mt\ | |
623 | ${srcdir}/config/gould/pn.mh\ | |
624 | ${srcdir}/config/gould/pn.mt\ | |
625 | ${srcdir}/config/h8300/h8300hms.mt\ | |
626 | ${srcdir}/config/h8500/h8500hms.mt\ | |
627 | ${srcdir}/config/i386/go32.mh\ | |
628 | ${srcdir}/config/i386/i386aix.mh\ | |
629 | ${srcdir}/config/i386/i386aix.mt\ | |
630 | ${srcdir}/config/i386/i386aout.mt\ | |
631 | ${srcdir}/config/i386/i386bsd.mh\ | |
632 | ${srcdir}/config/i386/i386bsd.mt\ | |
633 | ${srcdir}/config/i386/i386lynx.mh\ | |
634 | ${srcdir}/config/i386/i386lynx.mt\ | |
635 | ${srcdir}/config/i386/i386mach.mh\ | |
636 | ${srcdir}/config/i386/i386sco.mh\ | |
637 | ${srcdir}/config/i386/i386sco4.mh\ | |
638 | ${srcdir}/config/i386/i386sol2.mh\ | |
639 | ${srcdir}/config/i386/i386sol2.mt\ | |
640 | ${srcdir}/config/i386/i386v.mh\ | |
641 | ${srcdir}/config/i386/i386v.mt\ | |
642 | ${srcdir}/config/i386/i386v32.mh\ | |
643 | ${srcdir}/config/i386/i386v4.mh\ | |
644 | ${srcdir}/config/i386/i386v4.mt\ | |
645 | ${srcdir}/config/i386/linux.mh\ | |
646 | ${srcdir}/config/i386/linux.mt\ | |
647 | ${srcdir}/config/i386/ncr3000.mh\ | |
648 | ${srcdir}/config/i386/ncr3000.mt\ | |
649 | ${srcdir}/config/i386/sun386.mh\ | |
650 | ${srcdir}/config/i386/sun386.mt\ | |
651 | ${srcdir}/config/i386/symmetry.mh\ | |
652 | ${srcdir}/config/i386/symmetry.mt\ | |
653 | ${srcdir}/config/i960/nindy960.mt\ | |
654 | ${srcdir}/config/i960/vxworks960.mt\ | |
655 | ${srcdir}/config/m68k/3b1.mh\ | |
656 | ${srcdir}/config/m68k/3b1.mt\ | |
657 | ${srcdir}/config/m68k/altos.mh\ | |
658 | ${srcdir}/config/m68k/altos.mt\ | |
659 | ${srcdir}/config/m68k/amix.mh\ | |
660 | ${srcdir}/config/m68k/amix.mt\ | |
661 | ${srcdir}/config/m68k/apollo68b.mh\ | |
662 | ${srcdir}/config/m68k/apollo68v.mh\ | |
663 | ${srcdir}/config/m68k/es1800.mt\ | |
664 | ${srcdir}/config/m68k/hp300bsd.mh\ | |
665 | ${srcdir}/config/m68k/hp300bsd.mt\ | |
666 | ${srcdir}/config/m68k/hp300hpux.mh\ | |
667 | ${srcdir}/config/m68k/hp300hpux.mt\ | |
668 | ${srcdir}/config/m68k/isi.mh\ | |
669 | ${srcdir}/config/m68k/isi.mt\ | |
670 | ${srcdir}/config/m68k/m68k-fp.mt\ | |
671 | ${srcdir}/config/m68k/m68k-nofp.mt\ | |
672 | ${srcdir}/config/m68k/monitor.mt\ | |
673 | ${srcdir}/config/m68k/news.mh\ | |
674 | ${srcdir}/config/m68k/news.mt\ | |
675 | ${srcdir}/config/m68k/news1000.mh\ | |
676 | ${srcdir}/config/m68k/os68k.mt\ | |
677 | ${srcdir}/config/m68k/st2000.mt\ | |
678 | ${srcdir}/config/m68k/sun2os3.mh\ | |
679 | ${srcdir}/config/m68k/sun2os3.mt\ | |
680 | ${srcdir}/config/m68k/sun2os4.mh\ | |
681 | ${srcdir}/config/m68k/sun2os4.mt\ | |
682 | ${srcdir}/config/m68k/sun3os3.mh\ | |
683 | ${srcdir}/config/m68k/sun3os3.mt\ | |
684 | ${srcdir}/config/m68k/sun3os4.mh\ | |
685 | ${srcdir}/config/m68k/sun3os4.mt\ | |
686 | ${srcdir}/config/m68k/vxworks68.mt\ | |
687 | ${srcdir}/config/m88k/delta88.mh\ | |
688 | ${srcdir}/config/m88k/delta88.mt\ | |
689 | ${srcdir}/config/m88k/m88k.mh\ | |
690 | ${srcdir}/config/m88k/m88k.mt\ | |
691 | ${srcdir}/config/mips/bigmips.mt\ | |
692 | ${srcdir}/config/mips/decstation.mh\ | |
693 | ${srcdir}/config/mips/decstation.mt\ | |
694 | ${srcdir}/config/mips/idt.mt\ | |
695 | ${srcdir}/config/mips/idtl.mt\ | |
696 | ${srcdir}/config/mips/irix3.mh\ | |
697 | ${srcdir}/config/mips/irix3.mt\ | |
698 | ${srcdir}/config/mips/irix4.mh\ | |
699 | ${srcdir}/config/mips/littlemips.mh\ | |
700 | ${srcdir}/config/mips/littlemips.mt\ | |
701 | ${srcdir}/config/none/none.mh\ | |
702 | ${srcdir}/config/none/none.mt\ | |
703 | ${srcdir}/config/ns32k/merlin.mh\ | |
704 | ${srcdir}/config/ns32k/merlin.mt\ | |
705 | ${srcdir}/config/ns32k/umax.mh\ | |
706 | ${srcdir}/config/ns32k/umax.mt\ | |
707 | ${srcdir}/config/pa/hppabsd.mh\ | |
708 | ${srcdir}/config/pa/hppabsd.mt\ | |
709 | ${srcdir}/config/pa/hppahpux.mh\ | |
710 | ${srcdir}/config/pa/hppahpux.mt\ | |
711 | ${srcdir}/config/pyr/pyramid.mh\ | |
712 | ${srcdir}/config/pyr/pyramid.mt\ | |
713 | ${srcdir}/config/romp/rtbsd.mh\ | |
714 | ${srcdir}/config/rs6000/rs6000.mh\ | |
715 | ${srcdir}/config/rs6000/rs6000.mt\ | |
716 | ${srcdir}/config/sh/sh.mt\ | |
717 | ${srcdir}/config/sparc/sparc-em.mt\ | |
718 | ${srcdir}/config/sparc/sparclite.mt\ | |
719 | ${srcdir}/config/sparc/sun4os4.mh\ | |
720 | ${srcdir}/config/sparc/sun4os4.mt\ | |
721 | ${srcdir}/config/sparc/sun4sol2.mh\ | |
722 | ${srcdir}/config/sparc/sun4sol2.mt\ | |
723 | ${srcdir}/config/sparc/vxsparc.mt\ | |
724 | ${srcdir}/config/tahoe/tahoe.mh\ | |
725 | ${srcdir}/config/tahoe/tahoe.mt\ | |
726 | ${srcdir}/config/vax/vax.mt\ | |
727 | ${srcdir}/config/vax/vaxbsd.mh\ | |
728 | ${srcdir}/config/vax/vaxult.mh\ | |
729 | ${srcdir}/config/vax/vaxult2.mh\ | |
730 | ${srcdir}/config/z8k/z8ksim.mt | |
2531303c FF |
731 | |
732 | # GDB "info" files, which should be included in their entirety | |
733 | INFOFILES = gdb.info* | |
33cf356a | 734 | |
22473f72 | 735 | REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar |
33cf356a | 736 | |
24c2857c | 737 | POSSLIBS = ${srcdir}/regex.c ${srcdir}/regex.h ${srcdir}/alloca.c |
33cf356a SG |
738 | |
739 | TESTS = testbpt.c testfun.c testrec.c testreg.c testregs.c | |
740 | ||
33cf356a SG |
741 | # Subdirectories of gdb, which should be included in their entirety in |
742 | # gdb-xxx.tar.Z: | |
f4ed8840 | 743 | TARDIRS = doc sparclite # tests |
33cf356a | 744 | |
fd382d28 JK |
745 | # {X,T,NAT}DEPFILES are something of a pain in that it's hard to |
746 | # default their values the way we do for SER_HARDWIRE; in the future | |
747 | # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other | |
748 | # variables analogous to SER_HARDWIRE which get defaulted in this | |
749 | # Makefile.in | |
750 | ||
751 | DEPFILES = ${TDEPFILES} ${XDEPFILES} ${SER_HARDWIRE} ${NATDEPFILES} | |
33cf356a | 752 | |
2531303c | 753 | SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) |
853a233b JK |
754 | # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES, |
755 | # and it's more useful to see it in the .y file. | |
756 | TAGFILES = ${SFILES} ${ALLDEPFILES} ${ALLPARAM} ${POSSLIBS} | |
2531303c FF |
757 | |
758 | TARFILES = ${SFILES} ${HFILES} ${NONSRC} ${ALLDEPFILES} $(ALLCONFIG) \ | |
0f0834c5 | 759 | $(ALLPARAM) $(INFOFILES) ${POSSLIBS} ${REMOTE_EXAMPLES} |
33cf356a | 760 | |
327f7197 | 761 | OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ |
33cf356a | 762 | values.o eval.o valops.o valarith.o valprint.o printcmd.o \ |
17cb669f | 763 | symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \ |
327f7197 | 764 | command.o utils.o expprint.o environ.o gdbtypes.o \ |
3402b1cf | 765 | copying.o $(DEPFILES) mem-break.o target.o \ |
00cea52f | 766 | putenv.o parse.o language.o $(YYOBJ) \ |
781fa085 | 767 | buildsym.o objfiles.o minsyms.o maint.o demangle.o \ |
f4ed8840 | 768 | dbxread.o coffread.o elfread.o dwarfread.o mipsread.o \ |
a8a69e63 FF |
769 | stabsread.o core.o c-lang.o ch-lang.o m2-lang.o complaints.o \ |
770 | typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \ | |
4e772f44 | 771 | c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o \ |
fd382d28 | 772 | serial.o |
33cf356a SG |
773 | |
774 | RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES) | |
775 | ||
c9c23412 | 776 | TSOBS = inflow.o |
33cf356a SG |
777 | |
778 | NTSOBS = standalone.o | |
779 | ||
780 | TSSTART = /lib/crt0.o | |
781 | ||
782 | NTSSTART = kdb-start.o | |
783 | ||
aecc5459 | 784 | SUBDIRS = doc testsuite |
33cf356a SG |
785 | |
786 | # For now, shortcut the "configure GDB for fewer languages" stuff. | |
e58de8a2 FF |
787 | YYFILES = c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
788 | YYOBJ = c-exp.tab.o m2-exp.tab.o ch-exp.tab.o | |
33cf356a SG |
789 | |
790 | # Prevent Sun make from putting in the machine type. Setting | |
791 | # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. | |
792 | .c.o: | |
793 | ${CC} -c ${INTERNAL_CFLAGS} $< | |
794 | ||
795 | all: gdb | |
0139c441 | 796 | @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do |
6fcb280e | 797 | |
80c8fd72 | 798 | installcheck: |
e7d3b7d1 | 799 | check: force |
0139c441 | 800 | @rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=check DODIRS=testsuite subdir_do |
b396a969 | 801 | info dvi: force |
0139c441 | 802 | @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do |
33cf356a | 803 | install-info: force |
0139c441 | 804 | @$(MAKE) $(FLAGS_TO_PASS) DO=install-info "DODIRS=$(SUBDIRS)" subdir_do |
33cf356a | 805 | clean-info: force |
0139c441 | 806 | @$(MAKE) $(FLAGS_TO_PASS) DO=clean-info "DODIRS=$(SUBDIRS)" subdir_do |
33cf356a SG |
807 | |
808 | gdb.z:gdb.1 | |
809 | nroff -man $(srcdir)/gdb.1 | col -b > gdb.t | |
810 | pack gdb.t ; rm -f gdb.t | |
811 | mv gdb.t.z gdb.z | |
812 | ||
702c0ff7 JK |
813 | # Traditionally this depends on "all". But it is probably more useful |
814 | # not to; for example, if the user has made some trivial change to a | |
815 | # source file and doesn't care about rebuilding or just wants to save the | |
816 | # time it takes for make to check that all is up to date. | |
817 | install: | |
98a7278b DZ |
818 | $(INSTALL_XFORM) gdb $(bindir)/gdb |
819 | $(INSTALL_XFORM1) $(srcdir)/gdb.1 $(man1dir)/gdb.1 | |
b68b44fa | 820 | $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$n.1 |
33cf356a | 821 | $(M_INSTALL) |
0139c441 | 822 | @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
33cf356a SG |
823 | |
824 | init.c: $(srcdir)/munch $(OBS) $(TSOBS) | |
825 | $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c | |
826 | ||
827 | gdb: $(OBS) $(TSOBS) ${ADD_DEPS} ${CDEPS} init.o | |
828 | ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \ | |
829 | init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) | |
830 | ||
831 | saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c | |
53f0969b | 832 | #setopt load_flags $(CFLAGS) ${BFD_INCLUDES} -DHOST_SYS=SUN4_SYS |
33cf356a | 833 | #load ./init.c $(SFILES) |
b076b3f8 FF |
834 | #unload ${srcdir}/c-exp.y ${srcdir}/m2-exp.y ${srcdir}/ch-exp.y |
835 | #unload ${srcdir}/vx-share/*.h | |
33cf356a | 836 | #unload ${srcdir}/nindy-share/[A-Z]* |
e58de8a2 | 837 | #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
33cf356a | 838 | #load copying.c version.c |
1e4f3c20 | 839 | #load ../opcodes/libopcodes.a |
33cf356a SG |
840 | #load ../libiberty/libiberty.a |
841 | #load ../bfd/libbfd.a | |
842 | #load ../readline/libreadline.a | |
843 | #load ../mmalloc/libmmalloc.a | |
844 | #load -ltermcap | |
845 | #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'` | |
846 | echo "Load .c corresponding to:" $(DEPFILES) | |
847 | ||
848 | ||
849 | # This is useful when debugging GDB, because some Unix's don't let you run GDB | |
850 | # on itself without copying the executable. So "make gdb1" will make | |
851 | # gdb and put a copy in gdb1, and you can run it with "gdb gdb1". | |
852 | # Removing gdb1 before the copy is the right thing if gdb1 is open | |
853 | # in another process. | |
854 | gdb1: gdb | |
855 | rm -f gdb1 | |
856 | cp gdb gdb1 | |
857 | ||
858 | # This is a remote stub which runs under unix and starts up an | |
859 | # inferior process. This is at least useful for debugging GDB's | |
860 | # remote support. | |
861 | rapp: $(RAPP_OBS) | |
862 | rm -f rapp_init.c | |
863 | ${srcdir}/munch ${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c | |
864 | ${CC-LD} $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS) | |
33cf356a | 865 | |
33cf356a SG |
866 | depend: $(SOURCES) Makefile.in |
867 | @echo Ignore errors about non-existent system-supplied include files | |
868 | @echo for systems other than the one you are using. | |
ee7e82fe | 869 | @echo Also ignore any errors in arm-convert.s. |
53f0969b FF |
870 | -$(GCC) -MM -nostdinc -I/usr/include ${BFD_INCLUDES} \ |
871 | -I${READLINE_DIR} $(INTERNAL_CFLAGS) \ | |
3402b1cf | 872 | `ls $(SOURCES) | grep -v '\.[hy]$$' | \ |
33cf356a | 873 | sort -u` >depend.tmp |
31d16514 | 874 | #BEGIN COMMENTED OUT CODE -- this should now be taken care of below. |
33cf356a | 875 | # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except |
b6113cc4 | 876 | # for xm.h, tm.h and nm.h. This allows the same "depend" file to be used |
33cf356a | 877 | # by the various subdirectories. |
31d16514 JK |
878 | # if [ "${srcdir}" = "." ] ; then \ |
879 | # <depend.tmp sed \ | |
880 | # -e 's; ./xm.h; xm.h;g' \ | |
881 | # -e 's; ./tm.h; tm.h;g' \ | |
882 | # -e 's; ./nm.h; nm.h;g' \ | |
883 | # -e 's; \./; $${srcdir}/;g' \ | |
884 | # -e 's; vx-share/; $${srcdir}/vx-share/;g' \ | |
885 | # -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \ | |
886 | # -e 's; 29k-share/; $${srcdir}/29k-share/;g' \ | |
887 | # >depend.tm2; \ | |
888 | # rm depend.tmp; \ | |
889 | # mv depend.tm2 depend.tmp; \ | |
890 | # fi | |
891 | #END COMMENTED OUT CODE | |
892 | # Make everything which depends on {x,t,n}m.h depend on config.status as | |
893 | # well, in case someone reconfigures gdb out from under an already | |
894 | # compiled gdb. | |
895 | # | |
896 | # Translate SRCDIR/foo.c to $srcdir/foo.c. This allows this "depend" file | |
897 | # to be used by any dir, or included in a distribution. It's possible | |
898 | # we should write the generated copy into SRCDIR like "make headers" does | |
899 | # in bfd. We do not try to quote the regexp, so if SRCDIR/ is "./" it will | |
900 | # also match any single character followed by "/". This is OK. | |
33cf356a | 901 | <depend.tmp sed \ |
33cf356a SG |
902 | -e 's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \ |
903 | -e 's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \ | |
904 | -e 's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \ | |
3ef6f604 | 905 | -e 's; $(INCLUDE_DEP)/bfd\.h; $$(BFD_OBJ_DIR)/../include/bfd.h;g' \ |
31d16514 JK |
906 | -e 's; \./xm.h; xm.h config.status;g' \ |
907 | -e 's; \./tm.h; tm.h config.status;g' \ | |
908 | -e 's; \./nm.h; nm.h config.status;g' \ | |
909 | -e 's; ${srcdir}/; $${srcdir}/;g' \ | |
910 | -e 's; vx-share/; $${srcdir}/vx-share/;g' \ | |
911 | -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \ | |
912 | -e 's; 29k-share/; $${srcdir}/29k-share/;g' \ | |
5b8462fa | 913 | >depend.tm3; |
67d2bd1a | 914 | # OK, get your sed manual out. This script makes the rules in |
5b8462fa JK |
915 | # depend explicitly state the rule, rather than relying on VPATH |
916 | # or a .c.o implicit rule. This is needed for Sun make, and should | |
67d2bd1a FF |
917 | # be portable to any make worthy of the name. |
918 | # There is one exception: the *.tab.c files can exist either in srcdir | |
919 | # or in ., so make sure not to use an explicit rule for them. | |
31d16514 | 920 | # |
53f0969b FF |
921 | # Adding -I${BFD_SRC_DIR} and -I${BFD_OBJ_DIR}/../include is required for all |
922 | # the files which use BFD internals. This is because some bfd include files | |
923 | # are in the source directory, and some (bfd.h for example) are generated in | |
924 | # a sibling include directory of the bfd build directory. | |
31d16514 JK |
925 | # Adding -I${READLINE_DIR} is required because the readline header files |
926 | # are in readline not in include. They probably should be moved. | |
5b8462fa JK |
927 | <depend.tm3 sed \ |
928 | -e '/:/h' \ | |
929 | -e '/\\$$/b end' \ | |
930 | -e 'p' \ | |
931 | -e 'g' \ | |
67d2bd1a | 932 | -e '/:.*\.tab\.c/d' \ |
5b8462fa | 933 | -e 's/.*:\(.*\.c\).*/ $${CC} -c $${INTERNAL_CFLAGS} \1/' \ |
53f0969b FF |
934 | -e 's;$${srcdir}/xcoffread.c;$${BFD_INCLUDES} &;' \ |
935 | -e 's;$${srcdir}/xcoffexec.c;$${BFD_INCLUDES} &;' \ | |
936 | -e 's;$${srcdir}/paread.c;$${BFD_INCLUDES} &;' \ | |
937 | -e 's;$${srcdir}/stabsread.c;$${BFD_INCLUDES} &;' \ | |
938 | -e 's;$${srcdir}/dwarfread.c;$${BFD_INCLUDES} &;' \ | |
939 | -e 's;$${srcdir}/elfread.c;$${BFD_INCLUDES} &;' \ | |
940 | -e 's;$${srcdir}/mipsread.c;$${BFD_INCLUDES} &;' \ | |
941 | -e 's;$${srcdir}/coffread.c;$${BFD_INCLUDES} &;' \ | |
942 | -e 's;$${srcdir}/dbxread.c;$${BFD_INCLUDES} &;' \ | |
31d16514 | 943 | -e 's;$${srcdir}/main.c;-I$${READLINE_DIR} &;' \ |
5b8462fa JK |
944 | -e ': end' \ |
945 | >depend.tm4; | |
946 | mv depend.tm4 depend | |
31d16514 | 947 | # rm depend.tm? |
33cf356a SG |
948 | |
949 | config.status: | |
950 | @echo "You must configure gdb. Look at the README file for details." | |
951 | @false | |
952 | ||
ef131e13 JG |
953 | # This checks the configure.in file versus the config/ directory. |
954 | config-check: config-check-hosts config-check-targets | |
955 | config-check-hosts: | |
956 | grep gdb_host= ${srcdir}/configure.in | \ | |
957 | sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o | |
958 | (cd ${srcdir}/config; ls *.mh) >HOSTdir.o | |
959 | diff -u HOSTconf.o HOSTdir.o | |
960 | ||
961 | config-check-targets: | |
962 | grep gdb_target= ${srcdir}/configure.in | \ | |
963 | sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o | |
964 | (cd ${srcdir}/config; ls *.mt) >TARGdir.o | |
965 | diff -u HOSTconf.o HOSTdir.o | |
966 | ||
33cf356a SG |
967 | # These are not generated by "make depend" because they only are there |
968 | # for some machines. | |
969 | # But these rules don't do what we want; we want to hack the foo.o: tm.h | |
970 | # dependency to do the right thing. | |
2225eb85 FF |
971 | tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-m68k.h |
972 | tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-m68k.h | |
33cf356a SG |
973 | xm-news1000.h: xm-news.h |
974 | xm-i386-sv32.h: xm-i386.h | |
975 | tm-i386gas.h: tm-i386.h | |
976 | xm-sun4os4.h: xm-sparc.h | |
977 | tm-sun4os4.h: tm-sparc.h | |
978 | xm-vaxult.h: xm-vax.h | |
979 | xm-vaxbsd.h: xm-vax.h | |
980 | ||
2531303c | 981 | kdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS} |
33cf356a SG |
982 | rm -f init.c |
983 | $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c | |
984 | $(CC) $(LDFLAGS) -c init.c $(CLIBS) | |
985 | ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \ | |
986 | -lc $(CLIBS) | |
987 | ||
8d57a263 JK |
988 | # Put the proper machine-specific files first, so M-. on a machine |
989 | # specific routine gets the one for the correct machine. | |
db7c818b | 990 | # The xyzzy stuff below deals with empty DEPFILES |
2531303c | 991 | TAGS: ${TAGFILES} |
24c2857c JK |
992 | etags `find ${srcdir}/config -name $(TM_FILE) -print` \ |
993 | `find ${srcdir}/config -name ${XM_FILE} -print` \ | |
994 | `find ${srcdir}/config -name ${NAT_FILE} -print` \ | |
db7c818b JK |
995 | `for i in yzzy ${DEPFILES}; do \ |
996 | if [ x$$i != xyzzy ]; then \ | |
997 | echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \ | |
998 | fi; \ | |
999 | done` \ | |
24c2857c | 1000 | ${TAGFILES} |
33cf356a SG |
1001 | tags: TAGS |
1002 | ||
1003 | # Making distributions of GDB and friends. | |
1004 | ||
33cf356a SG |
1005 | # Make a tar file containing the GDB directory of the distribution. |
1006 | gdb.tar.Z: force_update | |
1007 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
1008 | $(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z | |
1009 | ||
2531303c FF |
1010 | # Make a directory `proto-gdb.dir' that contains an image of the GDB |
1011 | # directory of the distribution, built up with symlinks. Note that this | |
1012 | # make target is not directly referenced by any other rules in this makefile, | |
1013 | # it is referenced by the makefile in the parent directory. | |
1014 | make-proto-gdb.dir: force_update | |
1015 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
1016 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 | |
1017 | ||
1018 | # Set up the GDB source directory for distribution, by building all files that | |
1019 | # are products of other files. | |
1020 | setup-to-dist: update-depend force_update | |
1021 | ../configure none | |
1022 | (cd doc; $(MAKE) $(MFLAGS) GDBvn.texi) | |
1023 | $(MAKE) $(MFLAGS) gdb.info | |
1024 | $(MAKE) $(MFLAGS) refcard.ps | |
22473f72 | 1025 | |
853a233b JK |
1026 | # Update the "depend" file in a source directory. |
1027 | update-depend: force_update | |
b3d4dd73 | 1028 | ../configure none -norecursion |
6f4a4fbb FF |
1029 | (cd ../bfd; ../configure sun4 -norecursion; rm -f stmp-bfd.h) |
1030 | (cd ../bfd; $(MAKE) $(MFLAGS) bfd.h) | |
33cf356a SG |
1031 | rm -f depend |
1032 | $(MAKE) $(MFLAGS) depend | |
22473f72 | 1033 | |
33cf356a SG |
1034 | # Build a tar file from a proto-gdb.dir. |
1035 | gdb-$(VERSION).tar.Z: force_update | |
1036 | rm -f gdb.tar gdb-$(VERSION).tar.Z | |
2531303c | 1037 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 |
33cf356a SG |
1038 | ln -s proto-gdb.dir $(DIST) |
1039 | tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z | |
1040 | rm -rf $(DIST) proto-gdb.dir | |
1041 | ||
1042 | # Build a proto-gdb.dir after GDB has been set up for distribution. | |
1043 | # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile | |
1044 | # built in the setup-to-dist process, since it defines things like ALLCONFIG | |
1045 | # and ALLDEPFILES, that we need. | |
1046 | make-proto-gdb-1: ${TARFILES} ${TARDIRS} gdb.info | |
1047 | rm -rf proto-gdb.dir | |
1048 | mkdir proto-gdb.dir | |
2531303c FF |
1049 | rootme=`pwd`/ ; export rootme ; \ |
1050 | for i in `echo ${TARDIRS}`; do \ | |
1051 | (cd proto-gdb.dir ; \ | |
1052 | mkdir -p $$i; \ | |
1053 | cd $$i; \ | |
1054 | ln -s $${rootme}/$$i/* .; \ | |
1055 | rm -rf SCCS CVS CVS.adm RCS config.status; \ | |
1056 | if test -f Makefile.in; then rm Makefile; else true; fi;); \ | |
1057 | done ; \ | |
1058 | for i in `echo ${TARFILES}`; do \ | |
1059 | (cd proto-gdb.dir ; \ | |
1060 | dir=`dirname $$i`; \ | |
1061 | if test -d $$dir; then true; else mkdir -p $$dir; fi; \ | |
1062 | ln -s $${rootme}/$$i $$i;); \ | |
1063 | done | |
33cf356a SG |
1064 | chmod og=u `find . -print` |
1065 | ||
97e72c06 FF |
1066 | # Build a proto-testsuite.dir. |
1067 | make-proto-testsuite.dir: force_update | |
1068 | rm -rf proto-testsuite.dir | |
1069 | mkdir proto-testsuite.dir | |
1070 | rootme=`pwd`/ ; export rootme ; \ | |
1071 | for i in `find testsuite -type f -print`; do \ | |
1072 | (cd proto-testsuite.dir ; \ | |
1073 | dir=`dirname $$i`; \ | |
1074 | if test -d $$dir; then true; else mkdir -p $$dir; fi; \ | |
1075 | ln -s $${rootme}/$$i $$i;); \ | |
1076 | done | |
1077 | find proto-testsuite.dir -name Makefile -exec rm {} \; | |
1078 | find proto-testsuite.dir -name config.status -exec rm {} \; | |
1079 | ||
33cf356a | 1080 | clean: |
4e772f44 | 1081 | @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do |
33cf356a SG |
1082 | rm -f *.o ${ADD_FILES} *~ |
1083 | rm -f init.c version.c | |
2531303c | 1084 | rm -f gdb core make.log |
33cf356a | 1085 | rm -f gdb[0-9] |
33cf356a | 1086 | |
39d4639b JK |
1087 | # This used to depend on c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
1088 | # I believe this is wrong; the makefile standards for distclean just | |
1089 | # describe removing files; the only sort of "re-create a distribution" | |
1090 | # functionality described is if the distributed files are unmodified. | |
1091 | distclean: clean | |
4e772f44 | 1092 | @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do |
39d4639b | 1093 | rm -f nm.h tm.h xm.h config.status |
33cf356a SG |
1094 | rm -f y.output yacc.acts yacc.tmp |
1095 | rm -f ${TESTS} Makefile depend | |
33cf356a SG |
1096 | |
1097 | realclean: clean | |
4e772f44 | 1098 | @$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do |
e58de8a2 | 1099 | rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
39d4639b JK |
1100 | rm -f nm.h tm.h xm.h config.status |
1101 | rm -f y.output yacc.acts yacc.tmp | |
1102 | rm -f ${TESTS} Makefile depend | |
33cf356a SG |
1103 | |
1104 | STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb | |
1105 | ||
1106 | subdir_do: force | |
1107 | @for i in $(DODIRS); do \ | |
6f4a4fbb | 1108 | if [ -f ./$$i/Makefile ] ; then \ |
33cf356a | 1109 | if (cd ./$$i; \ |
ef131e13 | 1110 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
33cf356a SG |
1111 | else exit 1 ; fi ; \ |
1112 | else true ; fi ; \ | |
1113 | done | |
d941d8c3 | 1114 | |
33cf356a SG |
1115 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
1116 | $(SHELL) ./config.status | |
d941d8c3 | 1117 | |
33cf356a | 1118 | force: |
d941d8c3 | 1119 | |
33cf356a SG |
1120 | # Documentation! |
1121 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) | |
2b21d8aa | 1122 | refcard.dvi: |
ef131e13 | 1123 | ( cd ./doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) ) |
33cf356a | 1124 | mv ./doc/refcard.dvi . |
d941d8c3 | 1125 | |
33cf356a | 1126 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) |
2b21d8aa | 1127 | refcard.ps: |
ef131e13 | 1128 | ( cd ./doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) ) |
33cf356a | 1129 | mv ./doc/refcard.ps . |
d941d8c3 | 1130 | |
33cf356a | 1131 | # GDB MANUAL: TeX dvi file |
259d1dea | 1132 | gdb.dvi: |
2b21d8aa | 1133 | ( cd ./doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) ) |
33cf356a | 1134 | mv ./doc/gdb.dvi . |
d941d8c3 | 1135 | |
33cf356a | 1136 | # GDB MANUAL: info file |
259d1dea | 1137 | gdb.info: |
24b88ae8 | 1138 | ( cd ./doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) ) |
33cf356a | 1139 | mv ./doc/gdb.info* . |
d941d8c3 | 1140 | |
33cf356a SG |
1141 | # Make copying.c from COPYING |
1142 | copying.c: ${srcdir}/COPYING ${srcdir}/copying.awk | |
1143 | awk -f ${srcdir}/copying.awk < ${srcdir}/COPYING > copying.c | |
d941d8c3 | 1144 | |
33cf356a SG |
1145 | version.c: Makefile |
1146 | echo 'char *version = "$(VERSION)";' >version.c | |
90494078 RP |
1147 | echo 'char *host_canonical = "$(host_canonical)";' >> version.c |
1148 | echo 'char *target_canonical = "$(target_canonical)";' >> version.c | |
d941d8c3 | 1149 | |
33cf356a SG |
1150 | # c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist |
1151 | # in srcdir, then compiled in target dir to c-exp.tab.o. | |
f4ed8840 JG |
1152 | # ././c-exp.tab.c is so the command argument will never match $(srcdir)/c-exp.y |
1153 | # (some "makes" rewrite the VPATH into command arguments if they match deps). | |
9aa44833 SG |
1154 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
1155 | # else. | |
33cf356a | 1156 | c-exp.tab.o: c-exp.tab.c |
f4ed8840 | 1157 | c-exp.tab.c: $(srcdir)/c-exp.y $(srcdir)/Makefile.in |
33cf356a | 1158 | @echo 'Expect 4 shift/reduce conflicts.' |
3717e95b | 1159 | ${YACC} ${YFLAGS} $(srcdir)/c-exp.y |
9aa44833 SG |
1160 | -sed -e '/extern.*malloc/d' \ |
1161 | -e '/extern.*realloc/d' \ | |
1162 | -e '/extern.*free/d' \ | |
e58de8a2 | 1163 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
1164 | -e 's/malloc/xmalloc/g' \ |
1165 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 1166 | < y.tab.c > c-exp.new |
9aa44833 | 1167 | -rm y.tab.c |
39d4639b | 1168 | mv c-exp.new ././c-exp.tab.c |
d941d8c3 | 1169 | |
e58de8a2 FF |
1170 | # ch-exp.tab.c is generated in target dir from ch-exp.y if it doesn't exist |
1171 | # in srcdir, then compiled in target dir to ch-exp.tab.o. | |
1172 | # Remove bogus decls for malloc/realloc/free which conflict with everything | |
1173 | # else. | |
1174 | ch-exp.tab.o: ch-exp.tab.c | |
f4ed8840 | 1175 | ch-exp.tab.c: $(srcdir)/ch-exp.y $(srcdir)/Makefile.in |
3717e95b | 1176 | ${YACC} ${YFLAGS} $(srcdir)/ch-exp.y |
e58de8a2 FF |
1177 | -sed -e '/extern.*malloc/d' \ |
1178 | -e '/extern.*realloc/d' \ | |
1179 | -e '/extern.*free/d' \ | |
1180 | -e '/include.*malloc.h/d' \ | |
1181 | -e 's/malloc/xmalloc/g' \ | |
1182 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 1183 | < y.tab.c > ch-exp.new |
e58de8a2 | 1184 | -rm y.tab.c |
39d4639b | 1185 | mv ch-exp.new ././ch-exp.tab.c |
e58de8a2 | 1186 | |
33cf356a SG |
1187 | # m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist |
1188 | # in srcdir, then compiled in target dir to m2-exp.tab.o. | |
e58de8a2 FF |
1189 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
1190 | # else. | |
33cf356a | 1191 | m2-exp.tab.o: m2-exp.tab.c |
f4ed8840 | 1192 | m2-exp.tab.c: $(srcdir)/m2-exp.y $(srcdir)/Makefile.in |
3717e95b | 1193 | ${YACC} ${YFLAGS} $(srcdir)/m2-exp.y |
9aa44833 SG |
1194 | -sed -e '/extern.*malloc/d' \ |
1195 | -e '/extern.*realloc/d' \ | |
1196 | -e '/extern.*free/d' \ | |
e58de8a2 | 1197 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
1198 | -e 's/malloc/xmalloc/g' \ |
1199 | -e 's/realloc/xrealloc/g' \ | |
39d4639b | 1200 | < y.tab.c > m2-exp.new |
9aa44833 | 1201 | -rm y.tab.c |
39d4639b JK |
1202 | mv m2-exp.new ././m2-exp.tab.c |
1203 | ||
1204 | # These files are updated atomically, so make never has to remove them | |
1205 | .PRECIOUS: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c | |
d941d8c3 | 1206 | |
33cf356a SG |
1207 | lint: $(LINTFILES) |
1208 | $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ | |
1209 | `echo ${DEPFILES} | sed 's/\.o /\.c /g' | |
d941d8c3 | 1210 | |
33cf356a SG |
1211 | gdb.cxref: $(SFILES) |
1212 | cxref -I. $(SFILES) >gdb.cxref | |
d941d8c3 | 1213 | |
33cf356a | 1214 | force_update: |
d941d8c3 | 1215 | |
33cf356a SG |
1216 | # GNU Make has an annoying habit of putting *all* the Makefile variables |
1217 | # into the environment, unless you include this target as a circumvention. | |
1218 | # Rumor is that this will be fixed (and this target can be removed) | |
1219 | # in GNU Make 4.0. | |
1220 | .NOEXPORT: | |
d941d8c3 | 1221 | |
aecc5459 ILT |
1222 | # GNU Make 3.63 has a different problem: it keeps tacking command line |
1223 | # overrides onto the definition of $(MAKE). This variable setting | |
1224 | # will remove them. | |
1225 | MAKEOVERRIDES= | |
1226 | ||
58bb1e76 ILT |
1227 | ## This is ugly, but I don't want GNU make to put these variables in |
1228 | ## the environment. Older makes will see this as a set of targets | |
1229 | ## with no dependencies and no actions. | |
1230 | unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET : | |
58bb1e76 | 1231 | |
33cf356a SG |
1232 | # This is the end of "Makefile.in". When built into "Makefile" |
1233 | # by the configure script, two things are added below this point: | |
33cf356a SG |
1234 | # depend -- what .o files depend on what .c and .h files, |
1235 | # for all configurations. |