* ldmain.c (struct warning_callback_info): Define.
[deliverable/binutils-gdb.git] / gas / Makefile.in
CommitLineData
fecd2382 1# Makefile for GNU Assembler
7420b02b 2# Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
fecd2382 3
7420b02b 4# This file is part of GNU GAS.
fecd2382 5
7420b02b
JL
6# GNU GAS is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
fecd2382 10
7420b02b
JL
11# GNU GAS is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
fecd2382 15
7420b02b
JL
16# You should have received a copy of the GNU General Public License
17# along with GNU GAS; see the file COPYING. If not, write to
a2a5a4fa 18# the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
fecd2382 19
fecd2382
RP
20# The targets for external use include:
21# all, doc, proto, install, uninstall, includes, TAGS,
daa7e184 22# clean, mostlyclean, distclean, realclean, stage1, stage2, stage3, stage4.
fecd2382
RP
23
24# Variables that exist for you to override.
25# See below for how to change them for certain systems.
26
b11fb939
KR
27VPATH = @srcdir@
28srcdir = @srcdir@
7420b02b 29srcroot = $(srcdir)/..
1058238c 30
fa156ffe 31target_alias = @target_alias@
1bc37618 32prefix = @prefix@
1058238c 33
fa156ffe 34program_transform_name = @program_transform_name@
1bc37618 35exec_prefix = @exec_prefix@
787c6bfe
RP
36bindir = $(exec_prefix)/bin
37libdir = $(exec_prefix)/lib
b63defaa 38tooldir = $(exec_prefix)/$(target_alias)
787c6bfe 39
1058238c 40datadir = $(prefix)/lib
787c6bfe 41mandir = $(prefix)/man
1058238c
RP
42man1dir = $(mandir)/man1
43man2dir = $(mandir)/man2
44man3dir = $(mandir)/man3
45man4dir = $(mandir)/man4
46man5dir = $(mandir)/man5
47man6dir = $(mandir)/man6
48man7dir = $(mandir)/man7
49man8dir = $(mandir)/man8
50man9dir = $(mandir)/man9
787c6bfe 51infodir = $(prefix)/info
1058238c
RP
52includedir = $(prefix)/include
53docdir = $(datadir)/doc
54
aa30c7ee 55VERSION=cygnus-2.5.3
c97b9003 56
fecd2382 57SHELL = /bin/sh
1058238c 58
7420b02b 59INSTALL = $${srcroot}/install.sh -c
fecd2382 60INSTALL_PROGRAM = $(INSTALL)
1058238c 61INSTALL_DATA = $(INSTALL)
aa30c7ee 62INSTALL_XFORM = $(INSTALL) -t='-e $(program_transform_name)'
c97b9003 63INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
fecd2382 64
a1c7c0f3 65DISTSTUFF= make-gas.com m68k-parse.c
6d60424f 66
1058238c
RP
67AR = ar
68AR_FLAGS = qv
a1c7c0f3
ILT
69BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
70BISONFLAGS =
1058238c 71MAKEINFO = makeinfo
c97b9003 72TEXI2DVI = texi2dvi
fecd2382 73RANLIB = ranlib
b11fb939 74CC = @CC@
4b857710
ILT
75CFLAGS = -g
76
7420b02b
JL
77MAKEOVERRIDES=
78
4b857710
ILT
79FLAGS_TO_PASS = \
80 "prefix=$(prefix)" \
81 "exec_prefix=$(exec_prefix)" \
82 "tooldir=$(tooldir)" \
83 "AR=$(AR)" \
84 "AR_FLAGS=$(AR_FLAGS)" \
85 "CC=$(CC)" \
86 "CFLAGS=$(CFLAGS)" \
87 "RANLIB=$(RANLIB)" \
88 "LOADLIBES=$(LOADLIBES)" \
89 "LDFLAGS=$(LDFLAGS)" \
90 "BISON=$(BISON)" \
91 "LEX=$(LEX)" \
92 "MAKEINFO=$(MAKEINFO)" \
93 "INSTALL=$(INSTALL)" \
94 "INSTALL_DATA=$(INSTALL_DATA)" \
95 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
fecd2382 96
833c46e1
KR
97RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
98 echo ${srcdir}/../dejagnu/runtest ; else echo runtest; \
99 fi`
100RUNTESTFLAGS=
c97b9003 101CHECKFLAGS= \
03372cf4 102 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
5a051773 103 "RUNTEST=$(RUNTEST)"
c97b9003 104
fecd2382
RP
105# Lists of files for various purposes.
106
107REAL_SOURCES = \
108 $(srcdir)/app.c \
109 $(srcdir)/as.c \
110 $(srcdir)/atof-generic.c \
111 $(srcdir)/bignum-copy.c \
112 $(srcdir)/cond.c \
113 $(srcdir)/expr.c \
5d53038b 114 $(srcdir)/flonum-konst.c \
fecd2382
RP
115 $(srcdir)/flonum-copy.c \
116 $(srcdir)/flonum-mult.c \
117 $(srcdir)/frags.c \
118 $(srcdir)/hash.c \
fecd2382
RP
119 $(srcdir)/input-file.c \
120 $(srcdir)/input-scrub.c \
dffc8b9e 121 $(srcdir)/literal.c \
fecd2382
RP
122 $(srcdir)/messages.c \
123 $(srcdir)/output-file.c \
124 $(srcdir)/read.c \
fecd2382
RP
125 $(srcdir)/subsegs.c \
126 $(srcdir)/symbols.c \
fecd2382 127 $(srcdir)/write.c \
3340f7e5 128 $(srcdir)/listing.c \
9cc8106c 129 $(srcdir)/ecoff.c \
b63defaa 130 $(srcdir)/stabs.c
fecd2382
RP
131
132# in an expedient order
133LINKED_SOURCES = \
134 targ-cpu.c \
135 obj-format.c \
136 atof-targ.c
137
138SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
139
140REAL_HEADERS = \
141 $(srcdir)/as.h \
142 $(srcdir)/bignum.h \
143 $(srcdir)/expr.h \
144 $(srcdir)/flonum.h \
145 $(srcdir)/frags.h \
146 $(srcdir)/hash.h \
147 $(srcdir)/input-file.h \
542e1629 148 $(srcdir)/listing.h \
fecd2382
RP
149 $(srcdir)/tc.h \
150 $(srcdir)/obj.h \
151 $(srcdir)/read.h \
fecd2382
RP
152 $(srcdir)/struc-symbol.h \
153 $(srcdir)/subsegs.h \
154 $(srcdir)/symbols.h \
9cc8106c
ILT
155 $(srcdir)/write.h \
156 $(srcdir)/ecoff.h
fecd2382
RP
157
158LINKED_HEADERS = \
fecd2382
RP
159 targ-env.h \
160 targ-cpu.h \
161 obj-format.h \
162 atof-targ.h
163
164HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
165
7e047ac2
ILT
166TE_OBJS=
167
b11fb939 168# @target_frag@
b3cd8555 169
fecd2382
RP
170OBJS = \
171 targ-cpu.o \
172 obj-format.o \
173 atof-targ.o \
174 app.o \
175 as.o \
176 atof-generic.o \
177 bignum-copy.o \
178 cond.o \
179 expr.o \
5d53038b 180 flonum-konst.o \
fecd2382
RP
181 flonum-copy.o \
182 flonum-mult.o \
183 frags.o \
184 hash.o \
fecd2382
RP
185 input-file.o \
186 input-scrub.o \
dffc8b9e 187 literal.o \
fecd2382
RP
188 messages.o \
189 output-file.o \
190 read.o \
fecd2382
RP
191 subsegs.o \
192 symbols.o \
fecd2382 193 write.o \
3340f7e5 194 listing.o \
9cc8106c 195 ecoff.o \
c751ad19 196 stabs.o \
7e047ac2
ILT
197 sb.o \
198 macro.o \
816a827b 199 @extra_objects@ \
b3cd8555 200 $(TE_OBJS)
f6b67e4c 201
7e047ac2
ILT
202GASPOBJS = \
203 gasp.o \
204 macro.o \
205 sb.o \
206 hash.o
207
1df6e266 208all: .gdbinit as.new gasp.new
7420b02b
JL
209 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
210 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
79a54a5b 211
7420b02b
JL
212dvi info install-info clean-info:
213 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
214 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
fecd2382 215
c20c7506
JL
216make-gas.com: stamp-mk.com
217stamp-mk.com: vmsconf.sh Makefile
816a827b 218 sh $(srcdir)/vmsconf.sh $(OBJS) > new-make.com
c20c7506
JL
219 $(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
220 touch stamp-mk.com
221
fecd2382
RP
222# Now figure out from those variables how to compile and link.
223
224# This is the variable actually used when we compile.
420065a5 225ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
fecd2382 226
fecd2382
RP
227# How to link with both our special library facilities
228# and the system's installed libraries.
f6b67e4c 229
b11fb939 230LIBS = @OPCODES_LIB@ @BFDLIB@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
fecd2382
RP
231
232# Specify the directories to be searched for header files.
233# Both . and srcdir are used, in that order,
234# so that tm.h and config.h will be found in the compilation
235# subdirectory rather than in the source directory.
816a827b 236INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/.. -I$(srcdir)/../bfd
fecd2382
RP
237
238# Always use -I$(srcdir)/config when compiling.
239.c.o:
240 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
241
242# This tells GNU make version 3 not to export all the variables
243# defined in this file into the environment.
244.NOEXPORT:
542e1629 245
fecd2382 246# Files to be copied away after each stage in building.
c20c7506 247STAGESTUFF = *.o as.new gasp.new
fecd2382 248
b11fb939 249$(OBJS): @ALL_OBJ_DEPS@
c92d9ee9 250
7f2cb270 251as.new: $(OBJS) $(LIBS)
da0b2bff 252 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
fecd2382 253
84951544
KR
254$(OBJS): config.h as.h targ-env.h obj-format.h targ-cpu.h flonum.h expr.h \
255 struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h obj.h \
256 listing.h bignum.h
b11fb939 257
138b11d8
ILT
258gasp.new: $(GASPOBJS) ../libiberty/libiberty.a
259 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new $(GASPOBJS) ../libiberty/libiberty.a $(LOADLIBES)
a5a4b5ac 260
c97b9003
DZ
261installcheck:
262 @echo No installcheck target is available yet for the GNU assembler.
263
0b3d0999 264check:
c97b9003
DZ
265 @(here=`pwd` ; export here ; \
266 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
787c6bfe 267
b11fb939
KR
268config.status: configure
269 if [ -r config.status ]; then \
1be01033 270 sh ./config.status --recheck ; \
b11fb939
KR
271 else \
272 echo You must configure gas. Look at the INSTALL file for details. ; \
273 exit 1 ; \
274 fi
275
fc00f451 276config.h: config-stamp ; @true
b11fb939 277config-stamp: Makefile conf
fc00f451 278 -rm -f config.new config-stamp
1e84ff7e
KR
279 echo '/* config.h. Generated automatically by make. */' > config.new
280 echo '#ifndef GAS_VERSION' >> config.new
b11fb939
KR
281 echo '#define GAS_VERSION "$(VERSION)"' >> config.new
282 echo '' >> config.new
283 cat conf >> config.new
284 echo '#endif /* GAS_VERSION */' >> config.new
fc00f451
KR
285 $(srcdir)/../move-if-change config.new config.h
286 touch config-stamp
287
fecd2382
RP
288# Compiling object files from source files.
289
833c46e1
KR
290TARG_CPU_DEP_a29k =
291TARG_CPU_DEP_alpha =
292# start-sanitize-arc
293TARG_CPU_DEP_arc = $(srcdir)/../include/opcode/arc.h
294# end-sanitize-arc
295TARG_CPU_DEP_arm =
296TARG_CPU_DEP_generic =
297TARG_CPU_DEP_h8300 = $(srcdir)/../include/opcode/h8300.h
298TARG_CPU_DEP_h8500 = $(srcdir)/../opcodes/h8500-opc.h
299TARG_CPU_DEP_hppa =
300TARG_CPU_DEP_i386 = $(srcdir)/../include/opcode/i386.h
301TARG_CPU_DEP_i860 =
302TARG_CPU_DEP_i960 =
a1c7c0f3 303TARG_CPU_DEP_m68k = $(srcdir)/../include/opcode/m68k.h \
7e047ac2 304 $(srcdir)/config/m68k-parse.h subsegs.h
833c46e1
KR
305TARG_CPU_DEP_m88k = $(srcdir)/config/m88k-opcode.h
306TARG_CPU_DEP_mips = $(srcdir)/../include/opcode/mips.h
307TARG_CPU_DEP_ns32k =
308TARG_CPU_DEP_ppc =
309# start-sanitize-rce
310TARG_CPU_DEP_rce = $(srcdir)/../opcodes/rce-opc.h
311# end-sanitize-rce
312TARG_CPU_DEP_sh = $(srcdir)/../opcodes/sh-opc.h
313TARG_CPU_DEP_sparc =
314TARG_CPU_DEP_tahoe =
315TARG_CPU_DEP_vax =
316TARG_CPU_DEP_w65 = $(srcdir)/../opcodes/w65-opc.h
317TARG_CPU_DEP_z8k = $(srcdir)/../opcodes/z8k-opc.h
318
7e047ac2
ILT
319gasp.o : gasp.c sb.h macro.h config.h
320sb.o : sb.c sb.h config.h
321macro.o : macro.c macro.h sb.h hash.h config.h
84951544 322app.o : app.c write.h
7e047ac2 323as.o : as.c output-file.h write.h subsegs.h sb.h macro.h
84951544
KR
324atof-generic.o : atof-generic.c
325bignum-copy.o : bignum-copy.c
326cond.o : cond.c
327debug.o : debug.c subsegs.h
328expr.o : expr.c
329flonum-konst.o : flonum-konst.c
330flonum-copy.o : flonum-copy.c
331flonum-mult.o : flonum-mult.c
332frags.o : frags.c subsegs.h
333hash.o : hash.c
84951544 334input-file.o : input-file.c input-file.h
7e047ac2 335input-scrub.o : input-scrub.c input-file.h sb.h
84951544
KR
336listing.o : listing.c input-file.h subsegs.h
337literal.o : literal.c subsegs.h
338messages.o : messages.c
339output-file.o : output-file.c output-file.h
7e047ac2 340read.o : read.c sb.h macro.h
84951544
KR
341subsegs.o : subsegs.c subsegs.h
342symbols.o : symbols.c subsegs.h
343write.o : write.c subsegs.h output-file.h
344ecoff.o : ecoff.c ecoff.h \
345 $(srcdir)/../include/coff/internal.h $(srcdir)/../include/coff/sym.h \
346 $(srcdir)/../include/coff/ecoff.h \
347 $(srcdir)/../include/coff/symconst.h \
348 $(srcdir)/../include/aout/stab_gnu.h
349stabs.o : stabs.c subsegs.h $(srcdir)/../include/aout/stab_gnu.h
350atof-targ.o : atof-targ.c
351obj-format.o : obj-format.c
bf4bd1fc 352targ-cpu.o : targ-cpu.c $(TARG_CPU_DEP_@target_cpu_type@)
d1a9e594 353
816a827b
ILT
354obj-elf.o : $(srcdir)/config/obj-elf.c
355 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-elf.c
356obj-ecoff.o : $(srcdir)/config/obj-ecoff.c
357 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-ecoff.c
358
359e-mipself.o : $(srcdir)/config/e-mipself.c
360 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipself.c
361e-mipsecoff.o : $(srcdir)/config/e-mipsecoff.c
362 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipsecoff.c
363
a1c7c0f3
ILT
364# The m68k operand parser.
365
366m68k-parse.c: $(srcdir)/config/m68k-parse.y
367 $(BISON) $(BISONFLAGS) $(srcdir)/config/m68k-parse.y
368 mv -f y.tab.c m68k-parse.c
336435bc 369m68k-parse.o: m68k-parse.c $(srcdir)/config/m68k-parse.h
a1c7c0f3 370
fecd2382
RP
371# Remake the info files.
372
921faa52 373doc: $(srcdir)/as.info
fecd2382 374
921faa52 375$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
c97b9003 376 @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
fecd2382 377
6d60424f 378diststuff: $(DISTSTUFF)
367d6244 379
7420b02b 380clean-here:
f2889110 381 -rm -f $(STAGESTUFF) core stamp-mk.com
fecd2382 382
daa7e184
ILT
383clean mostlyclean: clean-here
384 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
7420b02b 385 @if [ -d testsuite ] ; then \
daa7e184 386 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
7420b02b
JL
387 else true; fi
388
fecd2382 389# Like clean but also delete the links made to configure gas.
367d6244 390distclean: clean-here
daa7e184 391 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
7420b02b 392 @if [ -d testsuite ] ; then \
daa7e184 393 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
7420b02b 394 else true; fi
b11fb939 395 -rm -f config.status Makefile targ-env.h targ-cpu.h \
7420b02b 396 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
f2889110 397 config-stamp config.h conf config.log config.cache .gdbinit
367d6244 398realclean: clean distclean
6d60424f 399 -rm -rf $(DISTSTUFF)
542e1629 400
fecd2382
RP
401# Entry points `install', `includes' and `uninstall'.
402
403# Copy the files into directories where they will be run.
542e1629 404install:
7420b02b 405 srcroot=`cd $(srcroot); pwd`; export srcroot; \
c97b9003 406 $(INSTALL_XFORM) as.new $(bindir)/as; \
7420b02b 407 $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
28d3e4a3 408 n=`echo as | sed '$(program_transform_name)'`; \
efbfb612
ILT
409 if [ -d $(tooldir) ]; then \
410 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
411 rm -f $(tooldir)/bin/as; \
ac7f7dfe 412 ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
efbfb612
ILT
413 || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
414 else true; fi
a5a4b5ac 415 srcroot=`cd $(srcroot); pwd`; export srcroot; \
138b11d8 416 $(INSTALL_XFORM) gasp.new $(bindir)/gasp
fecd2382 417
fecd2382
RP
418# Cancel installation by deleting the installed files.
419uninstall:
fa156ffe 420 -n=`t='$(program_transform_name)'; echo as | sed $$t`; \
7e10f53c
ILT
421 rm -f $(bindir)/$$n; \
422 rm -f $(mandir)/$$n.1
fa156ffe 423 -n=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
a5a4b5ac 424 rm -f $(bindir)/$$n; \
542e1629 425
fecd2382
RP
426# These exist for maintenance purposes.
427
428tags TAGS: force
787c6bfe 429 etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
ac7f7dfe 430
542e1629 431bootstrap: as.new force
fecd2382 432 $(MAKE) stage1
3256c4b5
KR
433 rm -f stage && ln -s stage1 stage
434 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
fecd2382 435 $(MAKE) stage2
3256c4b5
KR
436 rm -f stage && ln -s stage2 stage
437 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
a01bf1fb 438 $(MAKE) comparison against=stage2
fecd2382
RP
439
440bootstrap2: force
3256c4b5
KR
441 rm -f stage && ln -s stage1 stage
442 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
fecd2382 443 $(MAKE) stage2
3256c4b5
KR
444 rm -f stage && ln -s stage2 stage
445 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
da0b2bff 446 $(MAKE) comparison against=stage2
fecd2382
RP
447
448bootstrap3: force
3256c4b5
KR
449 rm -f stage && ln -s stage2 stage
450 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
a01bf1fb 451 $(MAKE) comparison against=stage2
fecd2382
RP
452
453# Copy the object files from a particular stage into a subdirectory.
454stage1: force
455 -mkdir stage1
456 -mv $(STAGESTUFF) stage1
81f73963 457 if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
fecd2382
RP
458
459stage2: force
460 -mkdir stage2
461 -mv $(STAGESTUFF) stage2
81f73963 462 if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
fecd2382
RP
463
464stage3: force
465 -mkdir stage3
6a3958b2 466 -mv $(STAGESTUFF) stage3
81f73963 467 if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
fecd2382 468
a01bf1fb
RP
469against=stage2
470
f2889110
KR
471# This rule is derived from corresponding code in the Makefile.in for gcc.
472# The "tail +16c" is to bypass headers which may include timestamps or
473# temporary assembly file names.
a01bf1fb 474comparison: force
f2889110
KR
475 x=0 ; \
476 for file in $(STAGESTUFF) ; do \
477 tail +16c ./$$file > tmp-foo1; \
478 if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
479 if cmp tmp-foo1 tmp-foo2 ; then \
480 true ; \
481 else \
482 echo $$file differs ; \
483 x=1 ; \
484 fi ; \
485 else true; fi ; \
486 done ; \
487 exit $$x
488 -rm -f tmp-foo*
a01bf1fb 489
6a3958b2 490de-stage1: force
b3cd8555 491 - (cd stage1 ; rm -f as ; mv -f * ..)
6a3958b2
RP
492 - rmdir stage1
493
494de-stage2: force
b3cd8555 495 - (cd stage2 ; rm -f as ; mv -f * ..)
6a3958b2
RP
496 - rmdir stage2
497
498de-stage3: force
b3cd8555 499 - (cd stage3 ; rm -f as ; mv -f * ..)
6a3958b2 500 - rmdir stage3
fecd2382 501
fecd2382 502#In GNU Make, ignore whether `stage*' exists.
daa7e184
ILT
503.PHONY: stage1 stage2 stage3 stage4 clean mostlyclean realclean distclean
504.PHONY: TAGS bootstrap
fecd2382
RP
505
506force:
507
fc00f451 508Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
a1c7c0f3 509 $(srcdir)/configure.in config.status conf.in
a26878d1 510 $(SHELL) ./config.status
1df6e266
KR
511.gdbinit: $(srcdir)/gdbinit.in config.status
512 $(SHELL) ./config.status
This page took 0.18602 seconds and 4 git commands to generate.