* Makefile.in: Rebuilt dependencies.
[binutils-gdb.git] / gas / Makefile.in
1 # Makefile for GNU Assembler
2 # Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
3
4 # This file is part of GNU GAS.
5
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.
10
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.
15
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
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20 # The targets for external use include:
21 # all, doc, proto, install, uninstall, includes, TAGS,
22 # clean, mostlyclean, distclean, realclean, stage1, stage2, stage3, stage4.
23
24 # Variables that exist for you to override.
25 # See below for how to change them for certain systems.
26
27 srcdir = .
28 srcroot = $(srcdir)/..
29
30 prefix = /usr/local
31
32 program_transform_name =
33 exec_prefix = $(prefix)
34 bindir = $(exec_prefix)/bin
35 libdir = $(exec_prefix)/lib
36 tooldir = $(libdir)/$(target_alias)
37
38 datadir = $(prefix)/lib
39 mandir = $(prefix)/man
40 man1dir = $(mandir)/man1
41 man2dir = $(mandir)/man2
42 man3dir = $(mandir)/man3
43 man4dir = $(mandir)/man4
44 man5dir = $(mandir)/man5
45 man6dir = $(mandir)/man6
46 man7dir = $(mandir)/man7
47 man8dir = $(mandir)/man8
48 man9dir = $(mandir)/man9
49 infodir = $(prefix)/info
50 includedir = $(prefix)/include
51 docdir = $(datadir)/doc
52
53 VERSION=cygnus-2.3.1
54
55 SHELL = /bin/sh
56
57 INSTALL = $${srcroot}/install.sh -c
58 INSTALL_PROGRAM = $(INSTALL)
59 INSTALL_DATA = $(INSTALL)
60 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
61 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
62
63 AR = ar
64 AR_FLAGS = qv
65 BISON = bison
66 MAKEINFO = makeinfo
67 TEXI2DVI = texi2dvi
68 RANLIB = ranlib
69 CFLAGS = -g
70
71 MAKEOVERRIDES=
72
73 AS_FOR_TARGET = $${here}/as.new
74
75 CC_FOR_TARGET = ` \
76 if [ -f $${here}/../gcc/Makefile ] ; then \
77 echo $${here}/../gcc/xgcc -B$${here}/../gcc/; \
78 else \
79 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
80 echo $(CC); \
81 else \
82 t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
83 fi; \
84 fi`
85
86 NM_FOR_TARGET = ` \
87 if [ -f $${here}/../binutils/Makefile ] ; then \
88 echo $${here}/../binutils/nm ; \
89 else \
90 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
91 echo $(NM); \
92 else \
93 t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
94 fi; \
95 fi`
96
97 OBJDUMP=objdump
98 OBJDUMP_FOR_TARGET = ` \
99 if [ -f $${here}/../binutils/Makefile ] ; then \
100 echo $${here}/../binutils/objdump ; \
101 else \
102 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
103 echo $(OBJDUMP); \
104 else \
105 t='$(program_transform_name)'; echo objdump | sed -e 's/brokensed/brokensed/' $$t ; \
106 fi; \
107 fi`
108
109 FLAGS_TO_PASS = \
110 "prefix=$(prefix)" \
111 "exec_prefix=$(exec_prefix)" \
112 "tooldir=$(tooldir)" \
113 "AR=$(AR)" \
114 "AR_FLAGS=$(AR_FLAGS)" \
115 "CC=$(CC)" \
116 "CFLAGS=$(CFLAGS)" \
117 "RANLIB=$(RANLIB)" \
118 "LOADLIBES=$(LOADLIBES)" \
119 "LDFLAGS=$(LDFLAGS)" \
120 "BISON=$(BISON)" \
121 "LEX=$(LEX)" \
122 "MAKEINFO=$(MAKEINFO)" \
123 "INSTALL=$(INSTALL)" \
124 "INSTALL_DATA=$(INSTALL_DATA)" \
125 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
126
127 RUNTEST=runtest
128 CHECKFLAGS= \
129 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
130 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
131 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
132 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
133 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
134 "RUNTEST=$(RUNTEST)"
135
136 # Lists of files for various purposes.
137
138 REAL_SOURCES = \
139 $(srcdir)/app.c \
140 $(srcdir)/as.c \
141 $(srcdir)/atof-generic.c \
142 $(srcdir)/bignum-copy.c \
143 $(srcdir)/cond.c \
144 $(srcdir)/expr.c \
145 $(srcdir)/flonum-konst.c \
146 $(srcdir)/flonum-copy.c \
147 $(srcdir)/flonum-mult.c \
148 $(srcdir)/frags.c \
149 $(srcdir)/hash.c \
150 $(srcdir)/hex-value.c \
151 $(srcdir)/input-file.c \
152 $(srcdir)/input-scrub.c \
153 $(srcdir)/literal.c \
154 $(srcdir)/messages.c \
155 $(srcdir)/output-file.c \
156 $(srcdir)/read.c \
157 $(srcdir)/subsegs.c \
158 $(srcdir)/symbols.c \
159 $(srcdir)/write.c \
160 $(srcdir)/listing.c \
161 $(srcdir)/ecoff.c \
162 $(srcdir)/stabs.c \
163 $(srcdir)/xmalloc.c
164
165 # in an expedient order
166 LINKED_SOURCES = \
167 targ-cpu.c \
168 obj-format.c \
169 atof-targ.c
170
171 SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
172
173 REAL_HEADERS = \
174 $(srcdir)/as.h \
175 $(srcdir)/bignum.h \
176 $(srcdir)/expr.h \
177 $(srcdir)/flonum.h \
178 $(srcdir)/frags.h \
179 $(srcdir)/hash.h \
180 $(srcdir)/input-file.h \
181 $(srcdir)/listing.h \
182 $(srcdir)/tc.h \
183 $(srcdir)/obj.h \
184 $(srcdir)/read.h \
185 $(srcdir)/struc-symbol.h \
186 $(srcdir)/subsegs.h \
187 $(srcdir)/symbols.h \
188 $(srcdir)/write.h \
189 $(srcdir)/ecoff.h
190
191 LINKED_HEADERS = \
192 a.out.gnu.h \
193 a.out.h \
194 host.h \
195 targ-env.h \
196 targ-cpu.h \
197 obj-format.h \
198 atof-targ.h
199
200 HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
201
202 #### host, target, and site specific Makefile frags come in here.
203
204 OBJS = \
205 targ-cpu.o \
206 obj-format.o \
207 atof-targ.o \
208 app.o \
209 as.o \
210 atof-generic.o \
211 bignum-copy.o \
212 cond.o \
213 expr.o \
214 flonum-konst.o \
215 flonum-copy.o \
216 flonum-mult.o \
217 frags.o \
218 hash.o \
219 hex-value.o \
220 input-file.o \
221 input-scrub.o \
222 literal.o \
223 messages.o \
224 output-file.o \
225 read.o \
226 subsegs.o \
227 symbols.o \
228 write.o \
229 listing.o \
230 ecoff.o \
231 stabs.o \
232 xmalloc.o \
233 $(TE_OBJS)
234
235 # These are objects we know we'll be pulling in from other directories.
236 # For VMS, we have to build them explicitly.
237 VMS_OTHER_OBJS = \
238 ../libiberty/obstack.o \
239 ../libiberty/strdup.o \
240 ../libiberty/strncasecmp.o \
241 ../libiberty/getruntime.o
242
243 all: as.new gasp.new
244 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
245 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
246
247 dvi info install-info clean-info:
248 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
249 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
250
251 make-gas.com: stamp-mk.com
252 stamp-mk.com: vmsconf.sh Makefile
253 sh $(srcdir)/vmsconf.sh $(OBJS) $(VMS_OTHER_OBJS) > new-make.com
254 $(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
255 touch stamp-mk.com
256
257 # Now figure out from those variables how to compile and link.
258
259 # This is the variable actually used when we compile.
260 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
261
262 # How to link with both our special library facilities
263 # and the system's installed libraries.
264
265 LIBS = $(OPCODES_LIB) $(BFDLIB) $(LOCAL_LOADLIBES) \
266 ../libiberty/libiberty.a
267
268 # Specify the directories to be searched for header files.
269 # Both . and srcdir are used, in that order,
270 # so that tm.h and config.h will be found in the compilation
271 # subdirectory rather than in the source directory.
272 INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/..
273 SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
274
275 # Always use -I$(srcdir)/config when compiling.
276 .c.o:
277 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
278
279 # This tells GNU make version 3 not to export all the variables
280 # defined in this file into the environment.
281 .NOEXPORT:
282
283 # Files to be copied away after each stage in building.
284 STAGESTUFF = *.o as.new gasp.new
285
286 $(OBJS): $(ALL_OBJ_DEPS)
287
288 as.new: $(OBJS) $(LIBS)
289 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
290
291 gasp.new: gasp.o
292 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
293
294 installcheck:
295 @echo No installcheck target is available yet for the GNU assembler.
296
297 check:
298 @(here=`pwd` ; export here ; \
299 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
300
301 config.status:
302 @echo You must configure gas. Look at the INSTALL file for details.
303 @false
304
305 config.h: config-stamp ; @true
306 config-stamp: Makefile
307 -rm -f config.new config-stamp
308 echo '#ifndef TARGET_CPU' > config.new
309 echo '#define TARGET_CPU "$(target_cpu)"' >> config.new
310 echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
311 echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
312 echo '#define GAS_VERSION "$(VERSION)"' >> config.new
313 if [ "$(defs)" != "" ]; then \
314 for d in $(defs) ; do \
315 echo "#define $$d" >> config.new ; \
316 done ; \
317 else true; fi
318 echo '#endif /* TARGET_CPU */' >> config.new
319 $(srcdir)/../move-if-change config.new config.h
320 touch config-stamp
321
322 # Compiling object files from source files.
323
324 gasp.o : gasp.c
325 app.o : app.c as.h host.h targ-env.h obj-format.h \
326 targ-cpu.h struc-symbol.h \
327 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
328 as.o : as.c as.h host.h targ-env.h obj-format.h output-file.h \
329 targ-cpu.h struc-symbol.h \
330 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
331 tc.h obj.h config.h
332 atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
333 targ-cpu.h struc-symbol.h \
334 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
335 bignum-copy.o : bignum-copy.c as.h host.h \
336 targ-env.h obj-format.h \
337 targ-cpu.h struc-symbol.h \
338 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
339 cond.o : cond.c as.h host.h targ-env.h obj-format.h \
340 targ-cpu.h struc-symbol.h \
341 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
342
343 debug.o : debug.c as.h host.h targ-env.h obj-format.h \
344 targ-cpu.h struc-symbol.h \
345 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
346 subsegs.h
347 expr.o : expr.c as.h host.h targ-env.h obj-format.h \
348 targ-cpu.h struc-symbol.h \
349 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
350
351 flonum-konst.o : flonum-konst.c flonum.h bignum.h
352 flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
353 targ-cpu.h struc-symbol.h \
354 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
355 flonum-mult.o : flonum-mult.c flonum.h bignum.h
356 frags.o : frags.c as.h host.h targ-env.h obj-format.h \
357 targ-cpu.h struc-symbol.h \
358 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
359 subsegs.h
360 hash.o : hash.c as.h host.h targ-env.h obj-format.h \
361 targ-cpu.h struc-symbol.h \
362 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
363 hex-value.o : hex-value.c
364 input-file.o : input-file.c as.h host.h \
365 targ-env.h obj-format.h targ-cpu.h \
366 struc-symbol.h write.h flonum.h bignum.h expr.h \
367 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
368 input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
369 as.h host.h targ-env.h obj-format.h \
370 targ-cpu.h struc-symbol.h \
371 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
372 input-file.h
373 listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
374 listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
375 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
376 literal.o : literal.c subsegs.h as.h host.h targ-env.h obj-format.h \
377 targ-cpu.h struc-symbol.h \
378 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
379 messages.o : messages.c as.h host.h targ-env.h obj-format.h \
380 targ-cpu.h struc-symbol.h \
381 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
382 output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
383 targ-cpu.h struc-symbol.h \
384 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
385 output-file.h
386 read.o : read.c as.h host.h targ-env.h obj-format.h \
387 targ-cpu.h struc-symbol.h \
388 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
389 subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
390 targ-cpu.h struc-symbol.h \
391 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
392 subsegs.h
393 symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
394 targ-cpu.h struc-symbol.h \
395 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
396 subsegs.h
397 write.o : write.c as.h host.h targ-env.h obj-format.h \
398 targ-cpu.h struc-symbol.h \
399 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
400 subsegs.h output-file.h
401 ecoff.o : ecoff.c as.h host.h targ-env.h obj-format.h \
402 targ-cpu.h struc-symbol.h \
403 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
404 ecoff.h $(srcdir)/../include/coff/internal.h \
405 $(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
406 $(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
407 stabs.o : stabs.c as.h host.h targ-env.h obj-format.h \
408 targ-cpu.h struc-symbol.h \
409 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
410 subsegs.h $(srcdir)/../include/aout/stab_gnu.h
411 xmalloc.o : xmalloc.c
412 atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
413 targ-cpu.h struc-symbol.h \
414 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
415 symbols.h tc.h obj.h
416 obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
417 targ-cpu.h struc-symbol.h \
418 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
419 subsegs.h symbols.h tc.h obj.h
420 targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
421 targ-cpu.h struc-symbol.h \
422 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
423 symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
424
425 # Remake the info files.
426
427 doc: $(srcdir)/as.info
428
429 $(srcdir)/as.info: $(srcdir)/doc/as.texinfo
430 @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
431
432 clean-here:
433 -rm -f $(STAGESTUFF) core
434
435 clean mostlyclean: clean-here
436 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
437 @if [ -d testsuite ] ; then \
438 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
439 else true; fi
440
441 # Like clean but also delete the links made to configure gas.
442 distclean realclean: clean-here
443 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
444 @if [ -d testsuite ] ; then \
445 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
446 else true; fi
447 -rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
448 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
449 config-stamp config.h
450
451 # Entry points `install', `includes' and `uninstall'.
452
453 # Copy the files into directories where they will be run.
454 install:
455 srcroot=`cd $(srcroot); pwd`; export srcroot; \
456 $(INSTALL_XFORM) as.new $(bindir)/as; \
457 $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
458 n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
459 if [ -d $(tooldir) ]; then \
460 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
461 rm -f $(tooldir)/bin/as; \
462 ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
463 || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
464 else true; fi
465 srcroot=`cd $(srcroot); pwd`; export srcroot; \
466 $(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
467 n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
468 if [ -d $(tooldir) ]; then \
469 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
470 rm -f $(tooldir)/bin/gasp; \
471 ln $(bindir)/$$n $(tooldir)/bin/gasp >/dev/null 2>/dev/null \
472 || $(INSTALL_PROGRAM) gasp.new $(tooldir)/bin/gasp; \
473 else true; fi
474
475 # Cancel installation by deleting the installed files.
476 uninstall:
477 -n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
478 rm -f $(bindir)/$$n; \
479 rm -f $(mandir)/$$n.1
480 -n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
481 rm -f $(bindir)/$$n; \
482
483 # These exist for maintenance purposes.
484
485 tags TAGS: force
486 etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
487
488 bootstrap: as.new force
489 $(MAKE) stage1
490 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
491 $(MAKE) stage2
492 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
493 $(MAKE) comparison against=stage2
494
495 bootstrap2: force
496 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
497 $(MAKE) stage2
498 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
499 $(MAKE) comparison against=stage2
500
501 bootstrap3: force
502 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
503 $(MAKE) comparison against=stage2
504
505 # Copy the object files from a particular stage into a subdirectory.
506 stage1: force
507 -mkdir stage1
508 -mv $(STAGESTUFF) stage1
509 if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
510
511 stage2: force
512 -mkdir stage2
513 -mv $(STAGESTUFF) stage2
514 if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
515
516 stage3: force
517 -mkdir stage3
518 -mv $(STAGESTUFF) stage3
519 if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
520
521 against=stage2
522
523 comparison: force
524 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
525
526 de-stage1: force
527 - (cd stage1 ; rm -f as ; mv -f * ..)
528 - rmdir stage1
529
530 de-stage2: force
531 - (cd stage2 ; rm -f as ; mv -f * ..)
532 - rmdir stage2
533
534 de-stage3: force
535 - (cd stage3 ; rm -f as ; mv -f * ..)
536 - rmdir stage3
537
538 #In GNU Make, ignore whether `stage*' exists.
539 .PHONY: stage1 stage2 stage3 stage4 clean mostlyclean realclean distclean
540 .PHONY: TAGS bootstrap
541
542 force:
543
544 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
545 $(srcdir)/configure.in
546 $(SHELL) ./config.status