feffed61311911920beb61475d409d37e95002aa
[deliverable/binutils-gdb.git] / gas / Makefile.in
1 # Makefile for GNU Assembler
2 # Copyright (C) 1987, 1988, 1990, 1991 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 1, 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 # $Id$
21
22 # The targets for external use include:
23 # all, doc, proto, install, uninstall, includes, TAGS,
24 # clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
25
26 # Variables that exist for you to override.
27 # See below for how to change them for certain systems.
28
29 ALLOCA =
30 CFLAGS = -g $(XCFLAGS) # -I$(srcdir)/../include
31 INTERNAL_CFLAGS = $(CROSS)
32 OLDCC = cc
33 BISON = bison
34 BISONFLAGS = -v
35 AR = ar
36 OLDAR_FLAGS = qc
37 AR_FLAGS = rc
38 SHELL = /bin/sh
39 # on sysV, define this as cp.
40 INSTALL = install -c
41 # These permit overriding just for certain files.
42 INSTALL_PROGRAM = $(INSTALL)
43 INSTALL_FILE = $(INSTALL)
44
45 # Define this as & to perform parallel make on a Sequent.
46 # Note that this has some bugs, and it seems currently necessary
47 # to compile all the gen* files first by hand to avoid erroneous results.
48 P =
49
50 # How to invoke ranlib.
51 RANLIB = ranlib
52 # Test to use to see whether ranlib exists on the system.
53 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
54
55 # CFLAGS for use with OLDCC, for compiling gnulib.
56 # NOTE: -O does not work on some Unix systems!
57 CCLIBFLAGS = -O
58
59 # Version of ar to use when compiling gnulib.
60 OLDAR = ar
61
62 version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion`
63
64 # Directory where sources are, from where we are.
65 srcdir = .
66 # Common prefix for installation directories.
67 # NOTE: This directory must exist when you start installation.
68 destdir = /usr/local
69 prefix = $(destdir)
70 # Directory in which to put the executable for the command `gcc'
71 bindir = $(prefix)/bin
72 # Directory in which to put the directories used by the compiler.
73 libdir = $(prefix)/lib
74 # Directory in which the compiler finds executables, libraries, etc.
75 libsubdir = $(libdir)/gcc/$(target)/$(version)
76 # Number to put in man-page filename.
77 manext = 1
78 # Directory in which to put man pages.
79 mandir = $(prefix)/man/man$(manext)
80
81 # Additional system libraries to link with.
82 CLIB=
83
84 # Change this to a null string if obstacks are installed in the
85 # system library.
86 OBSTACK=obstack.o
87
88 # Specify the rule for actually making gnulib.
89 GNULIB = gnulib.portable
90
91 # Specify the rule for actually making gnulib2.
92 GNULIB2 = gnulib2.portable
93
94 # List of extra C and assembler files to add to gnulib.
95 # Assembler files should have names ending in `.asm'.
96 LIBFUNCS_EXTRA =
97
98 # Program to convert libraries.
99 LIBCONVERT =
100
101 # Control whether header files are installed.
102 INSTALL_HEADERS=install-headers
103
104 # Change this to empty to prevent installing limits.h
105 LIMITS_H = limits.h
106
107 # Directory to link to, when using the target `maketest'.
108 DIR = ../gcc
109
110 # For better debugging under COFF, define SEPARATE_AUX_OUTPUT in config.h
111 # and define the following variable as `aux-output2.c' in make-...
112 AUX_OUTPUT2 =
113
114 # Flags to use when cross-building GCC.
115 # Prefix to apply to names of object files when using them
116 # to run on the machine we are compiling on.
117 HOST_PREFIX=
118 # Prefix to apply to names of object files when compiling them
119 # to run on the machine we are compiling on.
120 # The default for this variable is chosen to keep these rules
121 # out of the way of the other rules for compiling the same source files.
122 HOST_PREFIX_1=loser-
123 HOST_CC=$(CC)
124 HOST_CFLAGS=$(ALL_CFLAGS)
125 HOST_LDFLAGS=$(LDFLAGS)
126 HOST_CPPFLAGS=$(CPPFLAGS)
127
128 # Choose the real default target.
129 ALL=gas
130
131 # End of variables for you to override.
132
133 # Lists of files for various purposes.
134
135 REAL_SOURCES = \
136 $(srcdir)/app.c \
137 $(srcdir)/as.c \
138 $(srcdir)/atof-generic.c \
139 $(srcdir)/bignum-copy.c \
140 $(srcdir)/cond.c \
141 $(srcdir)/expr.c \
142 $(srcdir)/flonum-const.c \
143 $(srcdir)/flonum-copy.c \
144 $(srcdir)/flonum-mult.c \
145 $(srcdir)/frags.c \
146 $(srcdir)/hash.c \
147 $(srcdir)/hex-value.c \
148 $(srcdir)/input-file.c \
149 $(srcdir)/input-scrub.c \
150 $(srcdir)/messages.c \
151 $(srcdir)/output-file.c \
152 $(srcdir)/read.c \
153 $(srcdir)/strstr.c \
154 $(srcdir)/subsegs.c \
155 $(srcdir)/symbols.c \
156 $(srcdir)/version.c \
157 $(srcdir)/write.c \
158 $(srcdir)/xmalloc.c \
159 $(srcdir)/xrealloc.c
160
161 # in an expedient order
162 LINKED_SOURCES = \
163 targ-cpu.c \
164 obj-format.c \
165 atof-targ.c
166
167 SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
168
169 REAL_HEADERS = \
170 $(srcdir)/as.h \
171 $(srcdir)/bignum.h \
172 $(srcdir)/expr.h \
173 $(srcdir)/flonum.h \
174 $(srcdir)/frags.h \
175 $(srcdir)/hash.h \
176 $(srcdir)/input-file.h \
177 $(srcdir)/tc.h \
178 $(srcdir)/obj.h \
179 $(srcdir)/read.h \
180 $(srcdir)/reloc.h \
181 $(srcdir)/struc-symbol.h \
182 $(srcdir)/subsegs.h \
183 $(srcdir)/symbols.h \
184 $(srcdir)/syscalls.h \
185 $(srcdir)/write.h
186
187 LINKED_HEADERS = \
188 a.out.gnu.h \
189 a.out.h \
190 host.h \
191 targ-env.h \
192 targ-cpu.h \
193 obj-format.h \
194 atof-targ.h
195
196 HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
197
198 OBJS = \
199 targ-cpu.o \
200 obj-format.o \
201 atof-targ.o \
202 app.o \
203 as.o \
204 atof-generic.o \
205 bignum-copy.o \
206 cond.o \
207 expr.o \
208 flonum-const.o \
209 flonum-copy.o \
210 flonum-mult.o \
211 frags.o \
212 hash.o \
213 hex-value.o \
214 input-file.o \
215 input-scrub.o \
216 messages.o \
217 output-file.o \
218 read.o \
219 strstr.o \
220 subsegs.o \
221 symbols.o \
222 version.o \
223 write.o \
224 xmalloc.o \
225 xrealloc.o
226
227 # Definition of `all' is here so that new rules inserted by sed
228 # do not specify the default target.
229 # The real definition is under `all.internal'.
230
231 all: $(ALL)
232
233 # sed inserts variable overrides after the following line.
234 ####
235 \f
236 # Now figure out from those variables how to compile and link.
237
238 # This is the variable actually used when we compile.
239 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CFLAGS)
240
241 # Even if ALLOCA is set, don't use it if compiling with GCC.
242 USE_ALLOCA= `if [ x"${CC}" = x"${OLDCC}" ] ; then echo ${ALLOCA}; else true; fi`
243 USE_HOST_ALLOCA= `if [ x"${CC}" = x"${OLDCC}" ] ; then echo ${HOST_PREFIX}${ALLOCA}; else true; fi`
244
245 # Dependency on obstack, alloca, malloc or whatever library facilities
246 # are not installed in the system libraries.
247 # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
248 LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
249
250 # Likewise, for use in the tools that must run on this machine
251 # even if we are cross-building GCC.
252 # We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
253 HOST_LIBDEPS= $(HOST_PREFIX)$(OBSTACK) $(HOST_PREFIX)$(ALLOCA) $(HOST_PREFIX)$(MALLOC)
254
255 # How to link with both our special library facilities
256 # and the system's installed libraries.
257 LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(CLIB)
258
259 # Likewise, for use in the tools that must run on this machine
260 # even if we are cross-building GCC.
261 HOST_LIBS = $(HOST_PREFIX)$(OBSTACK) $(USE_HOST_ALLOCA) $(HOST_PREFIX)$(MALLOC) $(CLIB)
262
263 # Specify the directories to be searched for header files.
264 # Both . and srcdir are used, in that order,
265 # so that tm.h and config.h will be found in the compilation
266 # subdirectory rather than in the source directory.
267 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
268 SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
269
270 # Always use -I$(srcdir)/config when compiling.
271 .c.o:
272 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
273
274 # This tells GNU make version 3 not to export all the variables
275 # defined in this file into the environment.
276 .NOEXPORT:
277 \f
278 # Files to be copied away after each stage in building.
279 STAGE_GCC=gcc
280 STAGESTUFF = *.o gas
281
282 # The files that "belong" in CONFIG_H are deliberately omitted
283 # because having them there would not be useful in actual practice.
284 # All they would do is cause complete recompilation every time
285 # one of the machine description files is edited.
286 # That may or may not be what one wants to do.
287 # If it is, rm *.o is an easy way to do it.
288 # CONFIG_H = config.h tm.h
289 CONFIG_H =
290 \f
291 gas: $(OBJS) $(LIBDEPS)
292 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gas $(OBJS) $(LIBS)
293
294 objdump:
295
296 all.internal: native
297 # This is what is made with the host's compiler if making a cross assembler.
298 native: config.status gas
299
300 config.status:
301 @echo You must configure gas. Look at the INSTALL file for details.
302 @false
303
304 compilations: ${OBJS}
305
306 # Compiling object files from source files.
307
308 # Note that dependencies on obstack.h are not written
309 # because that file is not part of GAS.
310
311 app.o : app.c as.h host.h targ-env.h obj-format.h \
312 targ-cpu.h struc-symbol.h reloc.h \
313 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
314 as.o : as.c as.h host.h targ-env.h obj-format.h \
315 targ-cpu.h struc-symbol.h reloc.h \
316 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
317 atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
318 targ-cpu.h struc-symbol.h reloc.h \
319 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
320 bignum-copy.o : bignum-copy.c as.h host.h \
321 targ-env.h obj-format.h \
322 targ-cpu.h struc-symbol.h reloc.h \
323 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
324 cond.o : cond.c as.h host.h targ-env.h obj-format.h \
325 targ-cpu.h struc-symbol.h reloc.h \
326 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
327 obstack.h
328 debug.o : debug.c as.h host.h targ-env.h obj-format.h \
329 targ-cpu.h struc-symbol.h reloc.h \
330 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
331 subsegs.h
332 expr.o : expr.c as.h host.h targ-env.h obj-format.h \
333 targ-cpu.h struc-symbol.h reloc.h \
334 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
335 obstack.h
336 flonum-const.o : flonum-const.c flonum.h bignum.h
337 flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
338 targ-cpu.h struc-symbol.h reloc.h \
339 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
340 flonum-mult.o : flonum-mult.c flonum.h bignum.h
341 frags.o : frags.c as.h host.h targ-env.h obj-format.h \
342 targ-cpu.h struc-symbol.h reloc.h \
343 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
344 subsegs.h obstack.h
345 hash.o : hash.c as.h host.h targ-env.h obj-format.h \
346 targ-cpu.h struc-symbol.h reloc.h \
347 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
348 hex-value.o : hex-value.c
349 input-file.o : input-file.c as.h host.h \
350 targ-env.h obj-format.h targ-cpu.h \
351 struc-symbol.h reloc.h write.h flonum.h bignum.h expr.h \
352 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
353 input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
354 as.h host.h targ-env.h obj-format.h \
355 targ-cpu.h struc-symbol.h reloc.h \
356 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
357 input-file.h
358 messages.o : messages.c as.h host.h targ-env.h obj-format.h \
359 targ-cpu.h struc-symbol.h reloc.h \
360 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
361 obstack.o : obstack.c obstack.h
362 output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
363 targ-cpu.h struc-symbol.h reloc.h \
364 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
365 output-file.h
366 read.o : read.c as.h host.h targ-env.h obj-format.h \
367 targ-cpu.h struc-symbol.h reloc.h \
368 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
369 obstack.h
370 strstr.o : strstr.c
371 subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
372 targ-cpu.h struc-symbol.h reloc.h \
373 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
374 subsegs.h obstack.h
375 symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
376 targ-cpu.h struc-symbol.h reloc.h \
377 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
378 obstack.h subsegs.h
379 version.o : version.c
380 write.o : write.c as.h host.h targ-env.h obj-format.h \
381 targ-cpu.h struc-symbol.h reloc.h \
382 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
383 subsegs.h obstack.h output-file.h
384 xmalloc.o : xmalloc.c
385 xrealloc.o : xrealloc.c
386 atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
387 targ-cpu.h struc-symbol.h reloc.h \
388 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
389 symbols.h tc.h obj.h
390 obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
391 targ-cpu.h struc-symbol.h reloc.h \
392 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
393 symbols.h tc.h obj.h obstack.h
394 targ-cpu.o : targ-cpu.c targ-env.h obj-format.h \
395 targ-cpu.h struc-symbol.h reloc.h \
396 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
397 symbols.h tc.h obj.h obstack.h
398
399 # Normally this target is not used; but it is used if you
400 # define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c
401 # from the GNU Emacs distribution.
402 # Note some machines won't allow $(CC) without -S on this source file.
403 alloca.o: alloca.c
404 $(CC) $(ALL_CFLAGS) $(CPPFLAGS) -S `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
405 as alloca.s -o alloca.o
406 \f
407 # Compile the libraries to be used by gen*.
408 # If we are not cross-building, gen* use the same .o's that cc1 will use,
409 # and HOST_PREFIX_1 is `foobar', just to ensure these rules don't conflict
410 # with the rules for rtl.o, alloca.o, etc.
411 $(HOST_PREFIX_1)alloca.o: alloca.c
412 rm -f $(HOST_PREFIX)alloca.c
413 cp $(srcdir)/alloca.c $(HOST_PREFIX)alloca.c
414 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
415
416 $(HOST_PREFIX_1)obstack.o: obstack.c
417 rm -f $(HOST_PREFIX)obstack.c
418 cp $(srcdir)/obstack.c $(HOST_PREFIX)obstack.c
419 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
420
421 $(HOST_PREFIX_1)malloc.o: malloc.c
422 rm -f $(HOST_PREFIX)malloc.c
423 cp $(srcdir)/malloc.c $(HOST_PREFIX)malloc.c
424 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
425 \f
426 # Remake the info files.
427
428 doc: $(srcdir)/gas.info
429
430 $(srcdir)/gas.info: $(srcdir)/gas.texinfo
431 makeinfo `echo $(srcdir)/gas.texinfo | sed 's,^\./,,'`
432
433 \f
434 # Deletion of files made during compilation.
435 # There are three levels of this: `clean', `cleanconfig' and `realclean'.
436 # `clean' deletes what you want to delete ordinarily to save space.
437 # This is most, but not all, of the files made by compilation.
438 # `cleanconfig' also deletes everything depending
439 # on the choice of config files.
440 # `realclean' also deletes everything that could be regenerated automatically.
441
442 clean:
443 -rm -f $(STAGESTUFF)
444 # Delete the temporary source copies for cross compilation.
445 -rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
446 -rm -f $(HOST_PREFIX_1)obstack.c
447 # Delete the stamp files except stamp-gnulib2.
448 -rm -f core
449
450 # Like clean but also delete the links made to configure gas.
451 cleanconfig: clean
452 -rm -f config.status Makefile host.h targ-env.h
453 -rm -f targ-cpu.h targ-cpu.c
454 -rm -f obj-format.h obj-format.c
455 -rm -f atof-targ.c
456
457 # Get rid of every file that's generated from some other file (except INSTALL).
458 realclean: cleanconfig
459 -rm -f gas.aux gas.cps gas.fns gas.info gas.kys gas.pgs gas.tps gas.vrs
460 -rm -f TAGS
461 -rm -f gas.info* gas.?? gas.??s gas.log gas.toc gas.*aux
462 -rm -f *.dvi
463 \f
464 # Entry points `install', `includes' and `uninstall'.
465
466 # Copy the files into directories where they will be run.
467 install: gas
468 $(INSTALL_PROGRAM) gas $(libsubdir)/as
469
470 # Create the installation directory.
471 install-dir:
472 -mkdir $(libdir)
473 -mkdir $(libdir)/gcc
474 -mkdir $(libdir)/gcc/$(target)
475 -mkdir $(libdir)/gcc/$(target)/$(version)
476
477 # Install the compiler executables built during cross compilation.
478 install-cross: native install-dir
479 -if [ -f cc1 ] ; then $(INSTALL_PROGRAM) cc1 $(libsubdir)/cc1; else true; fi
480 -if [ -f cc1plus ] ; then $(INSTALL_PROGRAM) cc1plus $(libsubdir)/cc1plus; else true; fi
481 $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
482 ./gcc -dumpspecs > $(libsubdir)/specs
483 $(INSTALL_PROGRAM) gcc $(bindir)/gcc
484
485 # Install the man pages.
486 install-man: install-dir $(srcdir)/gcc.1 protoize.1 unprotoize.1
487 $(INSTALL_FILE) $(srcdir)/gcc.1 $(mandir)/gcc.$(manext)
488 chmod a-x $(mandir)/gcc.$(manext)
489 $(INSTALL_FILE) $(srcdir)/protoize.1 $(mandir)/protoize.$(manext)
490 chmod a-x $(mandir)/protoize.$(manext)
491 $(INSTALL_FILE) $(srcdir)/unprotoize.1 $(mandir)/unprotoize.$(manext)
492 chmod a-x $(mandir)/unprotoize.$(manext)
493
494 # Cancel installation by deleting the installed files.
495 uninstall:
496 -rm -rf $(libsubdir)
497 -rm -rf $(bindir)/gas
498 -rm -rf $(mandir)/gas.$(manext)
499
500 \f
501 # These exist for maintenance purposes.
502
503 tags TAGS: force
504 etags $(REAL_SOURCES) $(REAL_HEADERS) README Makefile config/*.[hc]
505
506 bootstrap: gas force
507 $(MAKE) stage1
508 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
509 $(MAKE) stage2
510 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
511 for i in *.o; do cmp $$i stage2/$$i; done
512
513 bootstrap2: force
514 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
515 $(MAKE) stage2
516 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
517 $(MAKE) stage-last
518
519 bootstrap3: force
520 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
521 $(MAKE) comparison
522
523 # Copy the object files from a particular stage into a subdirectory.
524 stage1: force
525 -mkdir stage1
526 -mv $(STAGESTUFF) stage1
527 -(cd stage1 ; ln -s gas as)
528
529 stage2: force
530 -mkdir stage2
531 -mv $(STAGESTUFF) stage2
532 -(cd stage2 ; ln -s gas as)
533
534
535 stage3: force
536 -mkdir stage3
537 -mv $(STAGESTUFF) $(STAGE_GCC) stage3
538 -rm -f stage3/gnulib
539 -cp gnulib stage3
540 -if $(RANLIB_TEST) ; then $(RANLIB) stage3/gnulib; else true; fi
541
542 stage4: force
543 -mkdir stage4
544 -mv $(STAGESTUFF) $(STAGE_GCC) stage4
545 -rm -f stage4/gnulib
546 -cp gnulib stage4
547 -if $(RANLIB_TEST) ; then $(RANLIB) stage4/gnulib; else true; fi
548
549 stage-last:
550 for i in *.o; do cmp $$i stage2/$$i; done
551
552 # Copy just the executable files from a particular stage into a subdirectory,
553 # and delete the object files. Use this if you're just verifying a version
554 # that is pretty sure to work, and you are short of disk space.
555 risky-stage1: force
556 -mkdir stage1
557 -mv cc1 cpp cccp gcc stage1
558 -rm -f stage1/gnulib
559 -cp gnulib stage1 && $(RANLIB) stage1/gnulib
560 -make clean
561
562 risky-stage2: force
563 -mkdir stage2
564 -mv cc1 cpp cccp gcc stage2
565 -rm -f stage2/gnulib
566 -cp gnulib stage2 && $(RANLIB) stage2/gnulib
567 -make clean
568
569 risky-stage3: force
570 -mkdir stage3
571 -mv cc1 cpp cccp gcc stage3
572 -rm -f stage3/gnulib
573 -cp gnulib stage3 && $(RANLIB) stage3/gnulib
574 -make clean
575
576 risky-stage4: force
577 -mkdir stage4
578 -mv cc1 cpp cccp gcc stage4
579 -rm -f stage4/gnulib
580 -cp gnulib stage4 && $(RANLIB) stage4/gnulib
581 -make clean
582
583 #In GNU Make, ignore whether `stage*' exists.
584 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
585 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
586
587 comparison: clean
588 $(MAKE) "CC=/usr/local/bin/gcc -Wall" gas
589 $(MAKE) stage1
590 - $(MAKE) "CC=/usr/local/bin/gcc -Wall -b$(target) -Bstage1/" gas -k
591 $(MAKE) stage2
592 - $(MAKE) "CC=/usr/local/bin/gcc -Wall -b$(target)" gas -k
593 $(MAKE) stage-last
594
595 force:
596
597 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
598 (cd $(srcdir) ; \
599 ./configure +destdir=$(destdir) \
600 +norecurse \
601 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
602 $(host) +target=$(target))
603
This page took 0.043477 seconds and 4 git commands to generate.