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