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