Commit | Line | Data |
---|---|---|
bccaecc6 | 1 | #Copyright 1989, 1990, 1991, 1992 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 | ||
44 | INSTALL = install -c | |
45 | INSTALL_PROGRAM = $(INSTALL) | |
46 | INSTALL_DATA = $(INSTALL) | |
47 | ||
48 | AR = ar | |
33cf356a | 49 | AR_FLAGS = qv |
3e5afc2c RP |
50 | RANLIB = ranlib |
51 | ||
33cf356a SG |
52 | # Flags that describe where you can find the termcap library. |
53 | # This can be overridden in the host Makefile fragment file. | |
54 | TERMCAP = -ltermcap | |
55 | ||
56 | # System V: If you compile gdb with a compiler which uses the coff | |
57 | # encapsulation feature (this is a function of the compiler used, NOT | |
58 | # of the m-?.h file selected by config.gdb), you must make sure that | |
59 | # the GNU nm is the one that is used by munch. | |
60 | ||
61 | # If you are compiling with GCC, make sure that either 1) You use the | |
62 | # -traditional flag, or 2) You have the fixed include files where GCC | |
63 | # can reach them. Otherwise the ioctl calls in inflow.c | |
64 | # will be incorrectly compiled. The "fixincludes" script in the gcc | |
65 | # distribution will fix your include files up. | |
66 | #CC=cc | |
67 | #CC=gcc -traditional | |
68 | GCC=gcc | |
69 | ||
70 | # Directory containing source files. Don't clean up the spacing, | |
71 | # this exact string is matched for by the "configure" script. | |
72 | srcdir = . | |
d941d8c3 | 73 | |
33cf356a SG |
74 | # It is also possible that you will need to add -I/usr/include/sys to the |
75 | # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which | |
76 | # is where it should be according to Posix). | |
77 | ||
19d0f3f4 FF |
78 | # If you use bison instead of yacc, it needs to include the "-y" argument. |
79 | #BISON="bison -y" | |
33cf356a SG |
80 | BISON=yacc |
81 | YACC=$(BISON) | |
33cf356a SG |
82 | |
83 | # Documentation (gdb.dvi) needs either GNU m4 or SysV m4; | |
84 | # Berkeley/Sun don't have quite enough. | |
85 | #M4=/usr/5bin/m4 | |
86 | M4=gm4 | |
87 | ||
88 | # where to find texinfo; GDB dist should include a recent one | |
967007ca | 89 | TEXIDIR=${srcdir}/../texinfo |
33cf356a SG |
90 | |
91 | # where to find makeinfo, preferably one designed for texinfo-2 | |
92 | MAKEINFO=makeinfo | |
93 | ||
94 | # Set this up with gcc if you have gnu ld and the loader will print out | |
95 | # line numbers for undefinded refs. | |
96 | #CC-LD=gcc -static | |
97 | CC-LD=${CC} | |
98 | ||
99 | # Where is the "include" directory? Traditionally ../include or ./include | |
100 | INCLUDE_DIR = ${srcdir}/../include | |
101 | INCLUDE_DEP = $$(INCLUDE_DIR) | |
102 | ||
103 | # Where is the source dir for the MMALLOC library? Traditionally ../mmalloc | |
104 | # or ./mmalloc (When we want the binary library built from it, we use | |
105 | # ${MMALLOC_DIR}${subdir}.) | |
106 | # Note that mmalloc can still be used on systems without mmap(). | |
107 | # To use your system malloc, comment out the following defines. | |
108 | MMALLOC_DIR = ${srcdir}/../mmalloc | |
109 | MMALLOC_DEP = $$(MMALLOC_DIR) | |
110 | MMALLOC_LIB = ./../mmalloc${subdir}/libmmalloc.a | |
111 | # To use your system malloc, uncomment MMALLOC_DISABLE. | |
112 | #MMALLOC_DISABLE = -DNO_MMALLOC | |
113 | # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK | |
114 | #MMALLOC_CHECK = -DNO_MMALLOC_CHECK | |
115 | MMALLOC_CFLAGS = ${MMALLOC_CHECK} ${MMALLOC_DISABLE} | |
116 | ||
117 | # Where is the source dir for the BFD library? Traditionally ../bfd or ./bfd | |
118 | # (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.) | |
119 | BFD_DIR = ${srcdir}/../bfd | |
120 | BFD_DEP = $$(BFD_DIR) | |
121 | BFD_LIB = ./../bfd${subdir}/libbfd.a | |
122 | ||
123 | # Where is the source dir for the READLINE library? Traditionally in .. or . | |
124 | # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.) | |
125 | READLINE_DIR = ${srcdir}/../readline | |
126 | READLINE_DEP = $$(READLINE_DIR) | |
127 | RL_LIB = ./../readline${subdir}/libreadline.a | |
128 | ||
129 | # All the includes used for CFLAGS and for lint. | |
130 | # -I. for config files. | |
131 | # -I${srcdir} possibly for regex.h also. | |
a679650f | 132 | INCLUDE_CFLAGS = -I. -I${srcdir} -I$(INCLUDE_DIR) |
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 SG |
156 | # The config/mh-* file must define REGEX and REGEX1 on USG machines. |
157 | # If your sysyem is missing alloca(), or, more likely, it's there but | |
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. | |
d40309c7 JG |
163 | CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \ |
164 | ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS} | |
165 | CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \ | |
072b552a | 166 | ${BFD_LIB} ${RL_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} |
33cf356a | 167 | |
d40309c7 JG |
168 | ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} |
169 | ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} | |
33cf356a | 170 | |
a8a69e63 | 171 | VERSION = 4.7.4 |
33cf356a SG |
172 | DIST=gdb |
173 | ||
174 | LINT=/usr/5bin/lint | |
175 | LINTFLAGS= -I${BFD_DIR} | |
176 | ||
33cf356a SG |
177 | # Host and target-dependent makefile fragments come in here. |
178 | #### | |
179 | # End of host and target-dependent makefile fragments | |
180 | ||
ef131e13 JG |
181 | FLAGS_TO_PASS = \ |
182 | "against=$(against)" \ | |
183 | "AR=$(AR)" \ | |
184 | "AR_FLAGS=$(AR_FLAGS)" \ | |
185 | "CC=$(CC)" \ | |
186 | "CFLAGS=$(CFLAGS)" \ | |
187 | "RANLIB=$(RANLIB)" \ | |
188 | "MAKEINFO=$(MAKEINFO)" \ | |
189 | "INSTALL=$(INSTALL)" \ | |
190 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
191 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
192 | "BISON=$(BISON)" | |
193 | ||
33cf356a SG |
194 | # Source files in the main directory. |
195 | # Files which are included via a config/* Makefile fragment | |
196 | # should *not* be specified here; they're in "ALLDEPFILES". | |
197 | SFILES_MAINDIR = \ | |
2dbde378 | 198 | blockframe.c breakpoint.c command.c core.c demangle.c \ |
33cf356a | 199 | environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \ |
7c173357 | 200 | main.c printcmd.c gdbtypes.c \ |
33cf356a SG |
201 | remote.c source.c stack.c symmisc.c symtab.c symfile.c \ |
202 | utils.c valarith.c valops.c valprint.c values.c c-exp.y m2-exp.y \ | |
b3d4dd73 | 203 | mem-break.c target.c \ |
a679650f | 204 | dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \ |
33cf356a | 205 | ieee-float.c language.c parse.c buildsym.c objfiles.c \ |
51b80b00 | 206 | minsyms.c mipsread.c maint.c ch-exp.y c-lang.c ch-lang.c m2-lang.c \ |
a8a69e63 FF |
207 | complaints.c typeprint.c c-typeprint.c ch-typeprint.c m2-typeprint.c \ |
208 | c-valprint.c cp-valprint.c ch-valprint.c m2-valprint.c | |
33cf356a SG |
209 | |
210 | # Source files in subdirectories (which will be handled separately by | |
211 | # 'make gdb.tar.Z'). | |
212 | # Files which are included via a config/* Makefile fragment | |
213 | # should *not* be specified here; they're in "ALLDEPFILES". | |
214 | SFILES_SUBDIR = \ | |
215 | ${srcdir}/vx-share/dbgRpcLib.h \ | |
216 | ${srcdir}/vx-share/ptrace.h \ | |
33cf356a SG |
217 | ${srcdir}/vx-share/vxTypes.h \ |
218 | ${srcdir}/vx-share/vxWorks.h \ | |
219 | ${srcdir}/vx-share/wait.h \ | |
220 | ${srcdir}/vx-share/xdr_ld.h \ | |
221 | ${srcdir}/vx-share/xdr_ptrace.h \ | |
222 | ${srcdir}/vx-share/xdr_rdb.h \ | |
33cf356a SG |
223 | ${srcdir}/nindy-share/b.out.h \ |
224 | ${srcdir}/nindy-share/block_io.h \ | |
225 | ${srcdir}/nindy-share/coff.h \ | |
226 | ${srcdir}/nindy-share/demux.h \ | |
227 | ${srcdir}/nindy-share/env.h \ | |
228 | ${srcdir}/nindy-share/stop.h \ | |
6881fb6d | 229 | ${srcdir}/nindy-share/ttycntl.h \ |
6881fb6d SG |
230 | ${srcdir}/29k-share/udi/udiphcfg.h \ |
231 | ${srcdir}/29k-share/udi/udiphsun.h \ | |
232 | ${srcdir}/29k-share/udi/udiproc.h \ | |
233 | ${srcdir}/29k-share/udi/udipt29k.h \ | |
234 | ${srcdir}/29k-share/udi/udiptcfg.h \ | |
235 | ${srcdir}/29k-share/udi/udisoc.h | |
33cf356a SG |
236 | |
237 | # Non-source files in subdirs, that should go into gdb.tar.Z. | |
238 | NONSRC_SUBDIR = \ | |
239 | ${srcdir}/nindy-share/Makefile \ | |
22473f72 JG |
240 | ${srcdir}/nindy-share/VERSION \ |
241 | ${srcdir}/nindy-share/README \ | |
242 | ${srcdir}/vx-share/README | |
33cf356a SG |
243 | |
244 | # All source files that go into linking GDB, except config-specified files. | |
245 | SFILES = $(SFILES_MAINDIR) $(SFILES_SUBDIR) | |
246 | ||
247 | # All source files that lint should look at | |
248 | LINTFILES = $(SFILES) $(YYFILES) init.c | |
249 | ||
250 | # Any additional files specified on these lines should also be added to | |
251 | # the OTHERS = definition below, so they go in the tar files. | |
252 | SFILES_STAND = $(SFILES) standalone.c | |
253 | SFILES_KGDB = $(SFILES) stuff.c kdb-start.c | |
254 | ||
255 | # Header files that are not named in config/* Makefile fragments go here. | |
3402b1cf | 256 | HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \ |
b50a958c | 257 | environ.h expression.h frame.h gdbcmd.h gdbcore.h gdbtypes.h \ |
22473f72 JG |
258 | gdb-stabs.h ieee-float.h inferior.h language.h \ |
259 | minimon.h objfiles.h parser-defs.h partial-stab.h \ | |
260 | serial.h signals.h solib.h symfile.h symtab.h stabsread.h \ | |
261 | target.h terminal.h xcoffsolib.h value.h \ | |
262 | tm-68k.h tm-hppa.h tm-i960.h tm-sparc.h tm-sunos.h tm-sysv4.h \ | |
e6c61372 | 263 | xm-m68k.h xm-sparc.h xm-sysv4.h xm-vax.h \ |
603900c7 | 264 | nm-i386bsd.h nm-i386mach.h nm-i386sco.h nm-i386v.h nm-i386v4.h nm-irix3.h \ |
d95eb930 | 265 | nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \ |
ca048722 | 266 | nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \ |
124a6fc0 | 267 | nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h \ |
b1de302a | 268 | nm-apollo68b.h nm-apollo68v.h nm-vax.h nm-hp300bsd.h \ |
a8a69e63 FF |
269 | nm-hp300hpux.h c-lang.h ch-lang.h m2-lang.h complaints.h \ |
270 | valprint.h | |
33cf356a | 271 | |
22473f72 | 272 | REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar |
33cf356a SG |
273 | |
274 | POSSLIBS_MAINDIR = regex.c regex.h alloca.c | |
275 | POSSLIBS = $(POSSLIBS_MAINDIR) | |
276 | ||
277 | TESTS = testbpt.c testfun.c testrec.c testreg.c testregs.c | |
278 | ||
279 | OTHERS = Makefile.in depend alldeps.mak createtags munch configure.in \ | |
280 | ChangeLog ChangeLog-9091 ChangeLog-3.x gdb.1 refcard.ps \ | |
22473f72 | 281 | README TODO TAGS NEWS Projects \ |
33cf356a SG |
282 | .gdbinit COPYING $(YYFILES) \ |
283 | copying.c Convex.notes copying.awk \ | |
284 | saber.suppress standalone.c stuff.c kdb-start.c \ | |
cdaa27e9 | 285 | putenv.c gcc.patch |
33cf356a SG |
286 | |
287 | # Subdirectories of gdb, which should be included in their entirety in | |
288 | # gdb-xxx.tar.Z: | |
289 | TARDIRS = doc # tests | |
290 | ||
291 | # GDB "info" files, which should be included in their entirety | |
292 | INFOFILES = gdb.info* | |
293 | ||
d40309c7 | 294 | DEPFILES= ${TDEPFILES} ${XDEPFILES} ${NATDEPFILES} |
33cf356a SG |
295 | |
296 | SOURCES=$(SFILES) $(ALLDEPFILES) $(YYFILES) | |
297 | TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} | |
298 | TAGFILES_MAINDIR = $(SFILES_MAINDIR) $(ALLDEPFILES_MAINDIR) \ | |
299 | ${HFILES} ${ALLPARAM} ${POSSLIBS_MAINDIR} | |
300 | TARFILES = ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES} | |
301 | ||
327f7197 | 302 | OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ |
33cf356a | 303 | values.o eval.o valops.o valarith.o valprint.o printcmd.o \ |
17cb669f | 304 | symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \ |
327f7197 | 305 | command.o utils.o expprint.o environ.o gdbtypes.o \ |
3402b1cf | 306 | copying.o $(DEPFILES) mem-break.o target.o \ |
b3d4dd73 | 307 | ieee-float.o putenv.o parse.o language.o $(YYOBJ) \ |
781fa085 | 308 | buildsym.o objfiles.o minsyms.o maint.o demangle.o \ |
a679650f | 309 | dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \ |
a8a69e63 FF |
310 | stabsread.o core.o c-lang.o ch-lang.o m2-lang.o complaints.o \ |
311 | typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \ | |
312 | c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o | |
33cf356a SG |
313 | |
314 | RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES) | |
315 | ||
c9c23412 | 316 | TSOBS = inflow.o |
33cf356a SG |
317 | |
318 | NTSOBS = standalone.o | |
319 | ||
320 | TSSTART = /lib/crt0.o | |
321 | ||
322 | NTSSTART = kdb-start.o | |
323 | ||
781fa085 | 324 | SUBDIRS = doc |
33cf356a SG |
325 | |
326 | # For now, shortcut the "configure GDB for fewer languages" stuff. | |
e58de8a2 FF |
327 | YYFILES = c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
328 | YYOBJ = c-exp.tab.o m2-exp.tab.o ch-exp.tab.o | |
33cf356a SG |
329 | |
330 | # Prevent Sun make from putting in the machine type. Setting | |
331 | # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. | |
332 | .c.o: | |
333 | ${CC} -c ${INTERNAL_CFLAGS} $< | |
334 | ||
335 | all: gdb | |
ef131e13 | 336 | $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
4db3902a | 337 | check: |
33cf356a | 338 | info: force |
ef131e13 | 339 | $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a | 340 | install-info: force |
ef131e13 | 341 | $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a | 342 | clean-info: force |
ef131e13 | 343 | $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a SG |
344 | |
345 | gdb.z:gdb.1 | |
346 | nroff -man $(srcdir)/gdb.1 | col -b > gdb.t | |
347 | pack gdb.t ; rm -f gdb.t | |
348 | mv gdb.t.z gdb.z | |
349 | ||
350 | install: gdb | |
ef131e13 JG |
351 | -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \ |
352 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
353 | -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi | |
354 | -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ | |
355 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
356 | -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi | |
b68b44fa ILT |
357 | -n=`t='$(program_transform_name)'; echo gdb | sed -e "" $$t`; \ |
358 | $(INSTALL_PROGRAM) gdb $(bindir)/$$n; \ | |
359 | $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$n.1 | |
33cf356a | 360 | $(M_INSTALL) |
ef131e13 | 361 | $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a SG |
362 | |
363 | init.c: $(srcdir)/munch $(OBS) $(TSOBS) | |
364 | $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c | |
365 | ||
366 | gdb: $(OBS) $(TSOBS) ${ADD_DEPS} ${CDEPS} init.o | |
367 | ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \ | |
368 | init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) | |
369 | ||
370 | saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c | |
371 | #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS | |
372 | #load ./init.c $(SFILES) | |
b076b3f8 FF |
373 | #unload ${srcdir}/c-exp.y ${srcdir}/m2-exp.y ${srcdir}/ch-exp.y |
374 | #unload ${srcdir}/vx-share/*.h | |
33cf356a | 375 | #unload ${srcdir}/nindy-share/[A-Z]* |
e58de8a2 | 376 | #load c-exp.tab.c m2-exp.tab.c ch-exp.tab.c |
33cf356a | 377 | #load copying.c version.c |
1e4f3c20 | 378 | #load ../opcodes/libopcodes.a |
33cf356a SG |
379 | #load ../libiberty/libiberty.a |
380 | #load ../bfd/libbfd.a | |
381 | #load ../readline/libreadline.a | |
382 | #load ../mmalloc/libmmalloc.a | |
383 | #load -ltermcap | |
384 | #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'` | |
385 | echo "Load .c corresponding to:" $(DEPFILES) | |
386 | ||
387 | ||
388 | # This is useful when debugging GDB, because some Unix's don't let you run GDB | |
389 | # on itself without copying the executable. So "make gdb1" will make | |
390 | # gdb and put a copy in gdb1, and you can run it with "gdb gdb1". | |
391 | # Removing gdb1 before the copy is the right thing if gdb1 is open | |
392 | # in another process. | |
393 | gdb1: gdb | |
394 | rm -f gdb1 | |
395 | cp gdb gdb1 | |
396 | ||
397 | # This is a remote stub which runs under unix and starts up an | |
398 | # inferior process. This is at least useful for debugging GDB's | |
399 | # remote support. | |
400 | rapp: $(RAPP_OBS) | |
401 | rm -f rapp_init.c | |
402 | ${srcdir}/munch ${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c | |
403 | ${CC-LD} $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS) | |
404 | ||
405 | # Support for building Makefile out of configured pieces, automatically | |
406 | # generated dependencies, etc. alldeps.mak is a file that contains | |
407 | # "make" variable definitions for all ALLDEPFILES, ALLDEPFILES_MAINDIR, | |
408 | # ALLDEPFILES_SUBDIR, ALLPARAM, and ALLCONFIG, all cadged from the current | |
409 | # contents of the config subdirectory. | |
410 | ||
411 | alldeps.mak: ${srcdir}/config | |
412 | rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp | |
413 | for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \ | |
414 | echo $$i >>allconfig.tmp; \ | |
415 | awk <$$i ' \ | |
d40309c7 | 416 | $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \ |
a1096574 | 417 | || $$1 == "NATDEPFILES=" { \ |
33cf356a SG |
418 | for (i = 2; i <= NF; i++) \ |
419 | print $$i >> "alldeps.tmp" ; \ | |
420 | } \ | |
d40309c7 | 421 | $$1 == "TM_FILE=" || $$1 == "XM_FILE=" || $$1 == "NAT_FILE" { \ |
33cf356a SG |
422 | print $$2 >> "allparam.tmp" }' ; \ |
423 | done | |
424 | sort <alldeps.tmp | uniq | \ | |
425 | sed -e 's/arm-convert.o/arm-convert.s/' \ | |
426 | -e 's!^Onindy.o!nindy-share/Onindy.c!' \ | |
427 | -e 's!^nindy.o!nindy-share/nindy.c!' \ | |
428 | -e 's!ttybreak.o!nindy-share/ttybreak.c!' \ | |
429 | -e 's!ttyflush.o!nindy-share/ttyflush.c!' \ | |
430 | -e 's!xdr_ld.o!vx-share/xdr_ld.c!' \ | |
431 | -e 's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \ | |
432 | -e 's!xdr_rdb.o!vx-share/xdr_rdb.c!' \ | |
6881fb6d | 433 | -e 's!udr.o!29k-share/udi/udr.c!' \ |
6881fb6d | 434 | -e 's!udip2soc.o!29k-share/udi/udip2soc.c!' \ |
33cf356a SG |
435 | -e 's/\.o/.c/' \ |
436 | >alldeps2.tmp | |
437 | echo '# Start of "alldeps.mak" definitions' \ | |
438 | >>alldeps.mak; | |
439 | echo 'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \ | |
440 | >>alldeps.mak; | |
441 | grep -v / alldeps2.tmp | \ | |
442 | awk 'BEGIN {printf "ALLDEPFILES_MAINDIR="} \ | |
443 | NR == 0 {printf $$0;} \ | |
444 | NR != 0 {printf "\\\n" $$0} \ | |
445 | END {printf "\n\n"}' >>alldeps.mak; | |
446 | grep / alldeps2.tmp | \ | |
447 | awk 'BEGIN {printf "ALLDEPFILES_SUBDIR="} \ | |
448 | NR == 0 {printf $$0;} \ | |
449 | NR != 0 {printf "\\\n" $$0} \ | |
450 | END {printf "\n\n"}' >>alldeps.mak; | |
451 | sort <allparam.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \ | |
452 | NR == 0 {printf $$0;} \ | |
453 | NR != 0 {printf "\\\n" $$0} \ | |
454 | END {printf "\n\n"}' >>alldeps.mak; | |
455 | sort <allconfig.tmp | uniq | awk 'BEGIN {printf "ALLCONFIG="} \ | |
456 | NR == 0 {printf $$0;} \ | |
457 | NR != 0 {printf "\\\n" $$0} \ | |
458 | END {printf "\n\n"}' >>alldeps.mak; | |
459 | echo '# End of "alldeps.mak" definitions' \ | |
460 | >>alldeps.mak; | |
461 | rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp | |
462 | ||
463 | # The sed script makes everything which depends on {x,t}m.h depend on | |
464 | # config.status as well, in case someone reconfigures gdb out from | |
465 | # under an already compiled gdb. | |
466 | depend: $(SOURCES) Makefile.in | |
467 | @echo Ignore errors about non-existent system-supplied include files | |
468 | @echo for systems other than the one you are using. | |
469 | @echo Also ignore parse errors in valops.c, and any errors in | |
470 | @echo arm-convert.s. | |
b6113cc4 | 471 | touch xm.h tm.h nm.h |
33cf356a | 472 | -$(GCC) -MM -nostdinc -I/usr/include $(CFLAGS) -I$(BFD_DIR) \ |
3402b1cf PB |
473 | -I${READLINE_DIR} $(INCLUDE_CFLAGS) \ |
474 | `ls $(SOURCES) | grep -v '\.[hy]$$' | \ | |
33cf356a SG |
475 | sort -u` >depend.tmp |
476 | # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except | |
b6113cc4 | 477 | # for xm.h, tm.h and nm.h. This allows the same "depend" file to be used |
33cf356a SG |
478 | # by the various subdirectories. |
479 | if [ "${srcdir}" = "." ] ; then \ | |
480 | <depend.tmp sed \ | |
481 | -e 's; ./xm.h; xm.h;g' \ | |
482 | -e 's; ./tm.h; tm.h;g' \ | |
b6113cc4 | 483 | -e 's; ./nm.h; nm.h;g' \ |
33cf356a SG |
484 | -e 's; \./; $${srcdir}/;g' \ |
485 | -e 's; vx-share/; $${srcdir}/vx-share/;g' \ | |
486 | -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \ | |
6881fb6d | 487 | -e 's; 29k-share/; $${srcdir}/29k-share/;g' \ |
33cf356a SG |
488 | >depend.tm2; \ |
489 | rm depend.tmp; \ | |
490 | mv depend.tm2 depend.tmp; \ | |
491 | fi | |
492 | <depend.tmp sed \ | |
493 | -e 's; [xt]m.h;& config.status;g' \ | |
494 | -e 's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \ | |
495 | -e 's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \ | |
496 | -e 's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \ | |
497 | -e 's; ./xm.h; xm.h config.status;g' \ | |
498 | -e 's; ./tm.h; tm.h config.status;g' \ | |
b6113cc4 | 499 | -e 's; ./nm.h; nm.h config.status;g' \ |
33cf356a SG |
500 | >depend |
501 | rm depend.tmp | |
502 | ||
503 | config.status: | |
504 | @echo "You must configure gdb. Look at the README file for details." | |
505 | @false | |
506 | ||
ef131e13 JG |
507 | # This checks the configure.in file versus the config/ directory. |
508 | config-check: config-check-hosts config-check-targets | |
509 | config-check-hosts: | |
510 | grep gdb_host= ${srcdir}/configure.in | \ | |
511 | sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o | |
512 | (cd ${srcdir}/config; ls *.mh) >HOSTdir.o | |
513 | diff -u HOSTconf.o HOSTdir.o | |
514 | ||
515 | config-check-targets: | |
516 | grep gdb_target= ${srcdir}/configure.in | \ | |
517 | sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o | |
518 | (cd ${srcdir}/config; ls *.mt) >TARGdir.o | |
519 | diff -u HOSTconf.o HOSTdir.o | |
520 | ||
33cf356a SG |
521 | # These are not generated by "make depend" because they only are there |
522 | # for some machines. | |
523 | # But these rules don't do what we want; we want to hack the foo.o: tm.h | |
524 | # dependency to do the right thing. | |
525 | tm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-68k.h | |
526 | tm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-68k.h | |
527 | xm-news1000.h: xm-news.h | |
528 | xm-i386-sv32.h: xm-i386.h | |
529 | tm-i386gas.h: tm-i386.h | |
530 | xm-sun4os4.h: xm-sparc.h | |
531 | tm-sun4os4.h: tm-sparc.h | |
532 | xm-vaxult.h: xm-vax.h | |
533 | xm-vaxbsd.h: xm-vax.h | |
534 | ||
535 | kdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS} | |
536 | rm -f init.c | |
537 | $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c | |
538 | $(CC) $(LDFLAGS) -c init.c $(CLIBS) | |
539 | ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \ | |
540 | -lc $(CLIBS) | |
541 | ||
542 | # Put the proper machine-specific files first. | |
543 | # createtags will edit the .o in DEPFILES into .c | |
544 | TAGS: ${TAGFILES} | |
d40309c7 JG |
545 | $(srcdir)/createtags $(TM_FILE) ${XM_FILE} ${NAT_FILE} \ |
546 | $(DEPFILES) ${TAGFILES} | |
33cf356a SG |
547 | tags: TAGS |
548 | ||
549 | # Making distributions of GDB and friends. | |
550 | ||
551 | # Make a directory `proto-gdb.dir' that contains an image of the GDB | |
552 | # directory of the distribution, built up with symlinks. | |
553 | make-proto-gdb.dir: force_update | |
554 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
555 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 | |
556 | ||
557 | # Make a tar file containing the GDB directory of the distribution. | |
558 | gdb.tar.Z: force_update | |
559 | $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist | |
560 | $(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z | |
561 | ||
22473f72 JG |
562 | # Update the "alldeps.mak" file in a source directory. |
563 | update-alldeps: force_update | |
b3d4dd73 | 564 | ../configure none -norecursion |
33cf356a SG |
565 | rm -f alldeps.mak |
566 | $(MAKE) $(MFLAGS) alldeps.mak | |
22473f72 JG |
567 | |
568 | # Update the "depend" and "alldeps.mak" files in a source directory. | |
569 | # We update alldeps.mak first, since it is used to generate the list | |
570 | # of files to be checked for dependencies. | |
571 | update-depend: update-alldeps force_update | |
b3d4dd73 | 572 | ../configure none -norecursion |
33cf356a SG |
573 | rm -f depend |
574 | $(MAKE) $(MFLAGS) depend | |
22473f72 JG |
575 | |
576 | # Set up the GDB source directory for distribution, by building all files that | |
577 | # are products of other files. | |
578 | setup-to-dist: update-depend force_update | |
0da70124 | 579 | ../configure none |
33cf356a SG |
580 | (cd doc; $(MAKE) $(MFLAGS) gdbVN.m4) |
581 | $(MAKE) $(MFLAGS) gdb.info | |
582 | $(MAKE) $(MFLAGS) refcard.ps | |
583 | ||
584 | # Build a tar file from a proto-gdb.dir. | |
585 | gdb-$(VERSION).tar.Z: force_update | |
586 | rm -f gdb.tar gdb-$(VERSION).tar.Z | |
587 | $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 | |
588 | ln -s proto-gdb.dir $(DIST) | |
589 | tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z | |
590 | rm -rf $(DIST) proto-gdb.dir | |
591 | ||
592 | # Build a proto-gdb.dir after GDB has been set up for distribution. | |
593 | # This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile | |
594 | # built in the setup-to-dist process, since it defines things like ALLCONFIG | |
595 | # and ALLDEPFILES, that we need. | |
596 | make-proto-gdb-1: ${TARFILES} ${TARDIRS} gdb.info | |
597 | rm -rf proto-gdb.dir | |
598 | mkdir proto-gdb.dir | |
599 | cd proto-gdb.dir ; for i in ${TARFILES} ; do ln -s ../$$i . ; done | |
600 | cd proto-gdb.dir ; ln -s ../${INFOFILES} . | |
601 | cd proto-gdb.dir ; for i in ${TARDIRS}; do \ | |
602 | mkdir $$i; cd $$i; \ | |
603 | ln -s ../../$$i/* .; \ | |
604 | rm -rf SCCS CVS.adm RCS config.status; \ | |
605 | if test -f Makefile.in; then rm Makefile; else true; fi; done | |
606 | mkdir proto-gdb.dir/config | |
607 | cd proto-gdb.dir/config ; \ | |
608 | for i in $(ALLCONFIG) ; do ln -s ../../$$i ../$$i ; done | |
6881fb6d SG |
609 | mkdir proto-gdb.dir/vx-share proto-gdb.dir/nindy-share \ |
610 | proto-gdb.dir/29k-share | |
51b80b00 | 611 | mkdir proto-gdb.dir/29k-share/udi |
33cf356a SG |
612 | cd proto-gdb.dir/config ; \ |
613 | for i in $(SFILES_SUBDIR) $(NONSRC_SUBDIR) $(ALLDEPFILES_SUBDIR); \ | |
614 | do ln -s ../../$$i ../$$i ; done | |
615 | chmod og=u `find . -print` | |
616 | ||
617 | clean: | |
618 | rm -f *.o ${ADD_FILES} *~ | |
619 | rm -f init.c version.c | |
620 | rm -f gdb core gdb.tar gdb.tar.Z make.log | |
621 | rm -f gdb[0-9] | |
ef131e13 | 622 | @$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a | 623 | |
e58de8a2 | 624 | distclean: clean c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
33cf356a SG |
625 | rm -f tm.h xm.h config.status |
626 | rm -f y.output yacc.acts yacc.tmp | |
627 | rm -f ${TESTS} Makefile depend | |
ef131e13 | 628 | @$(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a SG |
629 | |
630 | realclean: clean | |
e58de8a2 | 631 | rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS |
33cf356a SG |
632 | rm -f tm.h xm.h config.status |
633 | rm -f Makefile depend | |
ef131e13 | 634 | @$(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) |
33cf356a SG |
635 | |
636 | STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb | |
637 | ||
638 | subdir_do: force | |
639 | @for i in $(DODIRS); do \ | |
640 | if [ -d ./$$i ] ; then \ | |
641 | if (cd ./$$i; \ | |
ef131e13 | 642 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ |
33cf356a SG |
643 | else exit 1 ; fi ; \ |
644 | else true ; fi ; \ | |
645 | done | |
d941d8c3 | 646 | |
33cf356a SG |
647 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
648 | $(SHELL) ./config.status | |
d941d8c3 | 649 | |
33cf356a | 650 | force: |
d941d8c3 | 651 | |
33cf356a SG |
652 | # Documentation! |
653 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) | |
654 | refcard.dvi: $(srcdir)/doc/refcard.tex | |
ef131e13 | 655 | ( cd ./doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) ) |
33cf356a | 656 | mv ./doc/refcard.dvi . |
d941d8c3 | 657 | |
33cf356a SG |
658 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) |
659 | refcard.ps: $(srcdir)/doc/refcard.tex | |
ef131e13 | 660 | ( cd ./doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) ) |
33cf356a | 661 | mv ./doc/refcard.ps . |
d941d8c3 | 662 | |
33cf356a SG |
663 | # GDB MANUAL: TeX dvi file |
664 | gdb.dvi: ./doc/gdb-all.texi | |
ef131e13 | 665 | ( cd ./doc; $(MAKE) M4=$(M4) gdb.dvi $(FLAGS_TO_PASS) ) |
33cf356a | 666 | mv ./doc/gdb.dvi . |
d941d8c3 | 667 | |
33cf356a SG |
668 | # GDB MANUAL: info file |
669 | gdb.info: ./doc/gdb-all.texi | |
ef131e13 | 670 | ( cd ./doc; $(MAKE) M4=$(M4) gdb.info $(FLAGS_TO_PASS) ) |
33cf356a | 671 | mv ./doc/gdb.info* . |
d941d8c3 | 672 | |
33cf356a | 673 | ./doc/gdb-all.texi: |
8c095066 | 674 | (cd ./doc; $(MAKE) M4=$(M4) gdb-all.texi $(FLAGS_TO_PASS) ) |
d941d8c3 | 675 | |
33cf356a SG |
676 | # Make copying.c from COPYING |
677 | copying.c: ${srcdir}/COPYING ${srcdir}/copying.awk | |
678 | awk -f ${srcdir}/copying.awk < ${srcdir}/COPYING > copying.c | |
d941d8c3 | 679 | |
33cf356a SG |
680 | version.c: Makefile |
681 | echo 'char *version = "$(VERSION)";' >version.c | |
d941d8c3 | 682 | |
33cf356a SG |
683 | # c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist |
684 | # in srcdir, then compiled in target dir to c-exp.tab.o. | |
9aa44833 SG |
685 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
686 | # else. | |
33cf356a | 687 | c-exp.tab.o: c-exp.tab.c |
e58de8a2 | 688 | c-exp.tab.c: $(srcdir)/c-exp.y Makefile |
33cf356a SG |
689 | @echo 'Expect 4 shift/reduce conflicts.' |
690 | ${YACC} $(srcdir)/c-exp.y | |
9aa44833 SG |
691 | -sed -e '/extern.*malloc/d' \ |
692 | -e '/extern.*realloc/d' \ | |
693 | -e '/extern.*free/d' \ | |
e58de8a2 | 694 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
695 | -e 's/malloc/xmalloc/g' \ |
696 | -e 's/realloc/xrealloc/g' \ | |
9aa44833 SG |
697 | < y.tab.c > c-exp.tab.c |
698 | -rm y.tab.c | |
d941d8c3 | 699 | |
19cfe25d | 700 | # start-sanitize-chill |
e58de8a2 FF |
701 | # ch-exp.tab.c is generated in target dir from ch-exp.y if it doesn't exist |
702 | # in srcdir, then compiled in target dir to ch-exp.tab.o. | |
703 | # Remove bogus decls for malloc/realloc/free which conflict with everything | |
704 | # else. | |
705 | ch-exp.tab.o: ch-exp.tab.c | |
706 | ch-exp.tab.c: $(srcdir)/ch-exp.y Makefile | |
19cfe25d | 707 | @echo 'Expect rules never reduced, and lots of reduce/reduce conflicts.' |
e58de8a2 FF |
708 | ${YACC} $(srcdir)/ch-exp.y |
709 | -sed -e '/extern.*malloc/d' \ | |
710 | -e '/extern.*realloc/d' \ | |
711 | -e '/extern.*free/d' \ | |
712 | -e '/include.*malloc.h/d' \ | |
713 | -e 's/malloc/xmalloc/g' \ | |
714 | -e 's/realloc/xrealloc/g' \ | |
715 | < y.tab.c > ch-exp.tab.c | |
716 | -rm y.tab.c | |
19cfe25d | 717 | # end-sanitize-chill |
e58de8a2 | 718 | |
33cf356a SG |
719 | # m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist |
720 | # in srcdir, then compiled in target dir to m2-exp.tab.o. | |
e58de8a2 FF |
721 | # Remove bogus decls for malloc/realloc/free which conflict with everything |
722 | # else. | |
33cf356a | 723 | m2-exp.tab.o: m2-exp.tab.c |
e58de8a2 | 724 | m2-exp.tab.c: $(srcdir)/m2-exp.y Makefile |
33cf356a | 725 | ${YACC} $(srcdir)/m2-exp.y |
9aa44833 SG |
726 | -sed -e '/extern.*malloc/d' \ |
727 | -e '/extern.*realloc/d' \ | |
728 | -e '/extern.*free/d' \ | |
e58de8a2 | 729 | -e '/include.*malloc.h/d' \ |
e35843d4 FF |
730 | -e 's/malloc/xmalloc/g' \ |
731 | -e 's/realloc/xrealloc/g' \ | |
9aa44833 SG |
732 | < y.tab.c > m2-exp.tab.c |
733 | -rm y.tab.c | |
d941d8c3 | 734 | |
a679650f FF |
735 | |
736 | main.o: ${srcdir}/main.c | |
737 | ${CC} -c ${INTERNAL_CFLAGS} -I${READLINE_DIR} $< | |
738 | ||
33cf356a SG |
739 | # The symbol-file readers have dependencies on BFD header files. |
740 | dbxread.o: ${srcdir}/dbxread.c | |
741 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dbxread.c | |
d941d8c3 | 742 | |
33cf356a SG |
743 | coffread.o: ${srcdir}/coffread.c |
744 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/coffread.c | |
d941d8c3 | 745 | |
33cf356a SG |
746 | mipsread.o: ${srcdir}/mipsread.c |
747 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/mipsread.c | |
d941d8c3 | 748 | |
33cf356a SG |
749 | elfread.o: ${srcdir}/elfread.c |
750 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/elfread.c | |
d941d8c3 | 751 | |
33cf356a SG |
752 | dwarfread.o: ${srcdir}/dwarfread.c |
753 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dwarfread.c | |
d941d8c3 | 754 | |
a679650f FF |
755 | stabsread.o: ${srcdir}/stabsread.c |
756 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/stabsread.c | |
757 | ||
33cf356a SG |
758 | xcoffread.o: ${srcdir}/xcoffread.c |
759 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffread.c | |
d941d8c3 | 760 | |
33cf356a SG |
761 | xcoffexec.o: ${srcdir}/xcoffexec.c |
762 | ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffexec.c | |
d941d8c3 | 763 | |
33cf356a | 764 | # Drag in the files that are in another directory. |
d941d8c3 | 765 | |
33cf356a SG |
766 | xdr_ld.o: ${srcdir}/vx-share/xdr_ld.c |
767 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ld.c | |
d941d8c3 | 768 | |
33cf356a SG |
769 | xdr_ptrace.o: ${srcdir}/vx-share/xdr_ptrace.c |
770 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ptrace.c | |
d941d8c3 | 771 | |
33cf356a SG |
772 | xdr_rdb.o: ${srcdir}/vx-share/xdr_rdb.c |
773 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_rdb.c | |
d941d8c3 | 774 | |
33cf356a | 775 | nindy.o: ${srcdir}/nindy-share/nindy.c |
6a1f93f6 KR |
776 | ${CC} -c ${INTERNAL_CFLAGS} -DSTRIP='"$(tooldir)/bin/strip"' \ |
777 | ${srcdir}/nindy-share/nindy.c | |
d941d8c3 | 778 | |
33cf356a SG |
779 | Onindy.o: ${srcdir}/nindy-share/Onindy.c |
780 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/Onindy.c | |
d941d8c3 | 781 | |
33cf356a SG |
782 | ttybreak.o: ${srcdir}/nindy-share/ttybreak.c |
783 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttybreak.c | |
d941d8c3 | 784 | |
33cf356a SG |
785 | ttyflush.o: ${srcdir}/nindy-share/ttyflush.c |
786 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.c | |
d941d8c3 | 787 | |
6881fb6d SG |
788 | udr.o: ${srcdir}/29k-share/udi/udr.c |
789 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/udi/udr.c | |
790 | ||
791 | udip2soc.o: ${srcdir}/29k-share/udi/udip2soc.c | |
792 | ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/udi/udip2soc.c | |
793 | ||
33cf356a SG |
794 | lint: $(LINTFILES) |
795 | $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ | |
796 | `echo ${DEPFILES} | sed 's/\.o /\.c /g' | |
d941d8c3 | 797 | |
33cf356a SG |
798 | gdb.cxref: $(SFILES) |
799 | cxref -I. $(SFILES) >gdb.cxref | |
d941d8c3 | 800 | |
33cf356a | 801 | force_update: |
d941d8c3 | 802 | |
33cf356a SG |
803 | # GNU Make has an annoying habit of putting *all* the Makefile variables |
804 | # into the environment, unless you include this target as a circumvention. | |
805 | # Rumor is that this will be fixed (and this target can be removed) | |
806 | # in GNU Make 4.0. | |
807 | .NOEXPORT: | |
d941d8c3 | 808 | |
33cf356a SG |
809 | # This is the end of "Makefile.in". When built into "Makefile" |
810 | # by the configure script, two things are added below this point: | |
811 | # alldeps.mak -- defintions of all files that are used in | |
812 | # host- or target-dependent configurations | |
813 | # depend -- what .o files depend on what .c and .h files, | |
814 | # for all configurations. | |
3e5afc2c RP |
815 | |
816 |