* frags.c (frag_more): Warn if in absolute_section.
[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
b11fb939 166# @target_frag@
b3cd8555 167
fecd2382
RP
168OBJS = \
169 targ-cpu.o \
170 obj-format.o \
171 atof-targ.o \
172 app.o \
173 as.o \
174 atof-generic.o \
175 bignum-copy.o \
176 cond.o \
177 expr.o \
5d53038b 178 flonum-konst.o \
fecd2382
RP
179 flonum-copy.o \
180 flonum-mult.o \
181 frags.o \
182 hash.o \
fecd2382
RP
183 input-file.o \
184 input-scrub.o \
dffc8b9e 185 literal.o \
fecd2382
RP
186 messages.o \
187 output-file.o \
188 read.o \
fecd2382
RP
189 subsegs.o \
190 symbols.o \
fecd2382 191 write.o \
3340f7e5 192 listing.o \
9cc8106c 193 ecoff.o \
c751ad19 194 stabs.o \
816a827b 195 @extra_objects@ \
b3cd8555 196 $(TE_OBJS)
f6b67e4c 197
1df6e266 198all: .gdbinit as.new gasp.new
7420b02b
JL
199 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
200 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
79a54a5b 201
7420b02b
JL
202dvi info install-info clean-info:
203 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
204 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
fecd2382 205
c20c7506
JL
206make-gas.com: stamp-mk.com
207stamp-mk.com: vmsconf.sh Makefile
816a827b 208 sh $(srcdir)/vmsconf.sh $(OBJS) > new-make.com
c20c7506
JL
209 $(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
210 touch stamp-mk.com
211
fecd2382
RP
212# Now figure out from those variables how to compile and link.
213
214# This is the variable actually used when we compile.
420065a5 215ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
fecd2382 216
fecd2382
RP
217# How to link with both our special library facilities
218# and the system's installed libraries.
f6b67e4c 219
b11fb939 220LIBS = @OPCODES_LIB@ @BFDLIB@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
fecd2382
RP
221
222# Specify the directories to be searched for header files.
223# Both . and srcdir are used, in that order,
224# so that tm.h and config.h will be found in the compilation
225# subdirectory rather than in the source directory.
816a827b 226INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/.. -I$(srcdir)/../bfd
fecd2382
RP
227
228# Always use -I$(srcdir)/config when compiling.
229.c.o:
230 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
231
232# This tells GNU make version 3 not to export all the variables
233# defined in this file into the environment.
234.NOEXPORT:
542e1629 235
fecd2382 236# Files to be copied away after each stage in building.
c20c7506 237STAGESTUFF = *.o as.new gasp.new
fecd2382 238
b11fb939 239$(OBJS): @ALL_OBJ_DEPS@
c92d9ee9 240
7f2cb270 241as.new: $(OBJS) $(LIBS)
da0b2bff 242 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
fecd2382 243
84951544
KR
244$(OBJS): config.h as.h targ-env.h obj-format.h targ-cpu.h flonum.h expr.h \
245 struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h obj.h \
246 listing.h bignum.h
b11fb939 247
a5a4b5ac
SC
248gasp.new: gasp.o
249 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
250
c97b9003
DZ
251installcheck:
252 @echo No installcheck target is available yet for the GNU assembler.
253
0b3d0999 254check:
c97b9003
DZ
255 @(here=`pwd` ; export here ; \
256 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
787c6bfe 257
b11fb939
KR
258config.status: configure
259 if [ -r config.status ]; then \
1be01033 260 sh ./config.status --recheck ; \
b11fb939
KR
261 else \
262 echo You must configure gas. Look at the INSTALL file for details. ; \
263 exit 1 ; \
264 fi
265
fc00f451 266config.h: config-stamp ; @true
b11fb939 267config-stamp: Makefile conf
fc00f451 268 -rm -f config.new config-stamp
1e84ff7e
KR
269 echo '/* config.h. Generated automatically by make. */' > config.new
270 echo '#ifndef GAS_VERSION' >> config.new
b11fb939
KR
271 echo '#define GAS_VERSION "$(VERSION)"' >> config.new
272 echo '' >> config.new
273 cat conf >> config.new
274 echo '#endif /* GAS_VERSION */' >> config.new
fc00f451
KR
275 $(srcdir)/../move-if-change config.new config.h
276 touch config-stamp
277
fecd2382
RP
278# Compiling object files from source files.
279
833c46e1
KR
280TARG_CPU_DEP_a29k =
281TARG_CPU_DEP_alpha =
282# start-sanitize-arc
283TARG_CPU_DEP_arc = $(srcdir)/../include/opcode/arc.h
284# end-sanitize-arc
285TARG_CPU_DEP_arm =
286TARG_CPU_DEP_generic =
287TARG_CPU_DEP_h8300 = $(srcdir)/../include/opcode/h8300.h
288TARG_CPU_DEP_h8500 = $(srcdir)/../opcodes/h8500-opc.h
289TARG_CPU_DEP_hppa =
290TARG_CPU_DEP_i386 = $(srcdir)/../include/opcode/i386.h
291TARG_CPU_DEP_i860 =
292TARG_CPU_DEP_i960 =
a1c7c0f3
ILT
293TARG_CPU_DEP_m68k = $(srcdir)/../include/opcode/m68k.h \
294 $(srcdir)/config/m68k-parse.h
833c46e1
KR
295TARG_CPU_DEP_m88k = $(srcdir)/config/m88k-opcode.h
296TARG_CPU_DEP_mips = $(srcdir)/../include/opcode/mips.h
297TARG_CPU_DEP_ns32k =
298TARG_CPU_DEP_ppc =
299# start-sanitize-rce
300TARG_CPU_DEP_rce = $(srcdir)/../opcodes/rce-opc.h
301# end-sanitize-rce
302TARG_CPU_DEP_sh = $(srcdir)/../opcodes/sh-opc.h
303TARG_CPU_DEP_sparc =
304TARG_CPU_DEP_tahoe =
305TARG_CPU_DEP_vax =
306TARG_CPU_DEP_w65 = $(srcdir)/../opcodes/w65-opc.h
307TARG_CPU_DEP_z8k = $(srcdir)/../opcodes/z8k-opc.h
308
620a590e 309gasp.o : gasp.c config.h
84951544
KR
310app.o : app.c write.h
311as.o : as.c output-file.h write.h subsegs.h
312atof-generic.o : atof-generic.c
313bignum-copy.o : bignum-copy.c
314cond.o : cond.c
315debug.o : debug.c subsegs.h
316expr.o : expr.c
317flonum-konst.o : flonum-konst.c
318flonum-copy.o : flonum-copy.c
319flonum-mult.o : flonum-mult.c
320frags.o : frags.c subsegs.h
321hash.o : hash.c
84951544
KR
322input-file.o : input-file.c input-file.h
323input-scrub.o : input-scrub.c input-file.h
324listing.o : listing.c input-file.h subsegs.h
325literal.o : literal.c subsegs.h
326messages.o : messages.c
327output-file.o : output-file.c output-file.h
328read.o : read.c
329subsegs.o : subsegs.c subsegs.h
330symbols.o : symbols.c subsegs.h
331write.o : write.c subsegs.h output-file.h
332ecoff.o : ecoff.c ecoff.h \
333 $(srcdir)/../include/coff/internal.h $(srcdir)/../include/coff/sym.h \
334 $(srcdir)/../include/coff/ecoff.h \
335 $(srcdir)/../include/coff/symconst.h \
336 $(srcdir)/../include/aout/stab_gnu.h
337stabs.o : stabs.c subsegs.h $(srcdir)/../include/aout/stab_gnu.h
338atof-targ.o : atof-targ.c
339obj-format.o : obj-format.c
bf4bd1fc 340targ-cpu.o : targ-cpu.c $(TARG_CPU_DEP_@target_cpu_type@)
d1a9e594 341
816a827b
ILT
342obj-elf.o : $(srcdir)/config/obj-elf.c
343 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-elf.c
344obj-ecoff.o : $(srcdir)/config/obj-ecoff.c
345 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-ecoff.c
346
347e-mipself.o : $(srcdir)/config/e-mipself.c
348 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipself.c
349e-mipsecoff.o : $(srcdir)/config/e-mipsecoff.c
350 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipsecoff.c
351
a1c7c0f3
ILT
352# The m68k operand parser.
353
354m68k-parse.c: $(srcdir)/config/m68k-parse.y
355 $(BISON) $(BISONFLAGS) $(srcdir)/config/m68k-parse.y
356 mv -f y.tab.c m68k-parse.c
357m68k-parse.o: m68k-parse.c $(srcdir)/config/m68k-parse.y
358
fecd2382
RP
359# Remake the info files.
360
921faa52 361doc: $(srcdir)/as.info
fecd2382 362
921faa52 363$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
c97b9003 364 @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
fecd2382 365
6d60424f 366diststuff: $(DISTSTUFF)
367d6244 367
7420b02b 368clean-here:
f2889110 369 -rm -f $(STAGESTUFF) core stamp-mk.com
fecd2382 370
daa7e184
ILT
371clean mostlyclean: clean-here
372 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
7420b02b 373 @if [ -d testsuite ] ; then \
daa7e184 374 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
7420b02b
JL
375 else true; fi
376
fecd2382 377# Like clean but also delete the links made to configure gas.
367d6244 378distclean: clean-here
daa7e184 379 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
7420b02b 380 @if [ -d testsuite ] ; then \
daa7e184 381 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
7420b02b 382 else true; fi
b11fb939 383 -rm -f config.status Makefile targ-env.h targ-cpu.h \
7420b02b 384 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
f2889110 385 config-stamp config.h conf config.log config.cache .gdbinit
367d6244 386realclean: clean distclean
6d60424f 387 -rm -rf $(DISTSTUFF)
542e1629 388
fecd2382
RP
389# Entry points `install', `includes' and `uninstall'.
390
391# Copy the files into directories where they will be run.
542e1629 392install:
7420b02b 393 srcroot=`cd $(srcroot); pwd`; export srcroot; \
c97b9003 394 $(INSTALL_XFORM) as.new $(bindir)/as; \
7420b02b 395 $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
28d3e4a3 396 n=`echo as | sed '$(program_transform_name)'`; \
efbfb612
ILT
397 if [ -d $(tooldir) ]; then \
398 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
399 rm -f $(tooldir)/bin/as; \
ac7f7dfe 400 ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
efbfb612
ILT
401 || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
402 else true; fi
a5a4b5ac
SC
403 srcroot=`cd $(srcroot); pwd`; export srcroot; \
404 $(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
28d3e4a3 405 n=`echo gasp | sed '$(program_transform_name)' `; \
a5a4b5ac
SC
406 if [ -d $(tooldir) ]; then \
407 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
408 rm -f $(tooldir)/bin/gasp; \
ac7f7dfe
ILT
409 ln $(bindir)/$$n $(tooldir)/bin/gasp >/dev/null 2>/dev/null \
410 || $(INSTALL_PROGRAM) gasp.new $(tooldir)/bin/gasp; \
a5a4b5ac 411 else true; fi
fecd2382 412
fecd2382
RP
413# Cancel installation by deleting the installed files.
414uninstall:
fa156ffe 415 -n=`t='$(program_transform_name)'; echo as | sed $$t`; \
7e10f53c
ILT
416 rm -f $(bindir)/$$n; \
417 rm -f $(mandir)/$$n.1
fa156ffe 418 -n=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
a5a4b5ac 419 rm -f $(bindir)/$$n; \
542e1629 420
fecd2382
RP
421# These exist for maintenance purposes.
422
423tags TAGS: force
787c6bfe 424 etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
ac7f7dfe 425
542e1629 426bootstrap: as.new force
fecd2382 427 $(MAKE) stage1
3256c4b5
KR
428 rm -f stage && ln -s stage1 stage
429 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
fecd2382 430 $(MAKE) stage2
3256c4b5
KR
431 rm -f stage && ln -s stage2 stage
432 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
a01bf1fb 433 $(MAKE) comparison against=stage2
fecd2382
RP
434
435bootstrap2: force
3256c4b5
KR
436 rm -f stage && ln -s stage1 stage
437 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
fecd2382 438 $(MAKE) stage2
3256c4b5
KR
439 rm -f stage && ln -s stage2 stage
440 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
da0b2bff 441 $(MAKE) comparison against=stage2
fecd2382
RP
442
443bootstrap3: force
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
a01bf1fb 446 $(MAKE) comparison against=stage2
fecd2382
RP
447
448# Copy the object files from a particular stage into a subdirectory.
449stage1: force
450 -mkdir stage1
451 -mv $(STAGESTUFF) stage1
81f73963 452 if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
fecd2382
RP
453
454stage2: force
455 -mkdir stage2
456 -mv $(STAGESTUFF) stage2
81f73963 457 if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
fecd2382
RP
458
459stage3: force
460 -mkdir stage3
6a3958b2 461 -mv $(STAGESTUFF) stage3
81f73963 462 if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
fecd2382 463
a01bf1fb
RP
464against=stage2
465
f2889110
KR
466# This rule is derived from corresponding code in the Makefile.in for gcc.
467# The "tail +16c" is to bypass headers which may include timestamps or
468# temporary assembly file names.
a01bf1fb 469comparison: force
f2889110
KR
470 x=0 ; \
471 for file in $(STAGESTUFF) ; do \
472 tail +16c ./$$file > tmp-foo1; \
473 if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
474 if cmp tmp-foo1 tmp-foo2 ; then \
475 true ; \
476 else \
477 echo $$file differs ; \
478 x=1 ; \
479 fi ; \
480 else true; fi ; \
481 done ; \
482 exit $$x
483 -rm -f tmp-foo*
a01bf1fb 484
6a3958b2 485de-stage1: force
b3cd8555 486 - (cd stage1 ; rm -f as ; mv -f * ..)
6a3958b2
RP
487 - rmdir stage1
488
489de-stage2: force
b3cd8555 490 - (cd stage2 ; rm -f as ; mv -f * ..)
6a3958b2
RP
491 - rmdir stage2
492
493de-stage3: force
b3cd8555 494 - (cd stage3 ; rm -f as ; mv -f * ..)
6a3958b2 495 - rmdir stage3
fecd2382 496
fecd2382 497#In GNU Make, ignore whether `stage*' exists.
daa7e184
ILT
498.PHONY: stage1 stage2 stage3 stage4 clean mostlyclean realclean distclean
499.PHONY: TAGS bootstrap
fecd2382
RP
500
501force:
502
fc00f451 503Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
a1c7c0f3 504 $(srcdir)/configure.in config.status conf.in
a26878d1 505 $(SHELL) ./config.status
1df6e266
KR
506.gdbinit: $(srcdir)/gdbinit.in config.status
507 $(SHELL) ./config.status
This page took 0.18858 seconds and 4 git commands to generate.