i386v host/target/native separation
[deliverable/binutils-gdb.git] / gas / Makefile.generic
CommitLineData
fecd2382
RP
1host = generic
2target = generic
3# Makefile for GNU Assembler
4# Copyright (C) 1987, 1988, 1990, 1991 Free Software Foundation, Inc.
5
6#This file is part of GNU GAS.
7
8#GNU GAS is free software; you can redistribute it and/or modify
9#it under the terms of the GNU General Public License as published by
10#the Free Software Foundation; either version 1, or (at your option)
11#any later version.
12
13#GNU GAS is distributed in the hope that it will be useful,
14#but WITHOUT ANY WARRANTY; without even the implied warranty of
15#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16#GNU General Public License for more details.
17
18#You should have received a copy of the GNU General Public License
19#along with GNU GAS; see the file COPYING. If not, write to
20#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
21
22# $Id$
23
24# The targets for external use include:
25# all, doc, proto, install, uninstall, includes, TAGS,
26# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
27
28# Variables that exist for you to override.
29# See below for how to change them for certain systems.
30
31ALLOCA =
32CFLAGS = -g $(XCFLAGS) # -I$(srcdir)/../include
33INTERNAL_CFLAGS = $(CROSS)
34OLDCC = cc
35BISON = bison
36BISONFLAGS = -v
37AR = ar
38OLDAR_FLAGS = qc
39AR_FLAGS = rc
40SHELL = /bin/sh
41# on sysV, define this as cp.
42INSTALL = install -c
43# These permit overriding just for certain files.
44INSTALL_PROGRAM = $(INSTALL)
45INSTALL_FILE = $(INSTALL)
46
47# Define this as & to perform parallel make on a Sequent.
48# Note that this has some bugs, and it seems currently necessary
49# to compile all the gen* files first by hand to avoid erroneous results.
50P =
51
52# How to invoke ranlib.
53RANLIB = ranlib
54# Test to use to see whether ranlib exists on the system.
55RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
56
57# CFLAGS for use with OLDCC, for compiling gnulib.
58# NOTE: -O does not work on some Unix systems!
59CCLIBFLAGS = -O
60
61# Version of ar to use when compiling gnulib.
62OLDAR = ar
63
64version=`./gcc -dumpversion`
65
66# Directory where sources are, from where we are.
67srcdir = .
68# Common prefix for installation directories.
69# NOTE: This directory must exist when you start installation.
70prefix = /usr/local
71# Directory in which to put the executable for the command `gcc'
72bindir = $(prefix)/bin
73# Directory in which to put the directories used by the compiler.
74libdir = $(prefix)/lib
75# Directory in which the compiler finds executables, libraries, etc.
76libsubdir = $(libdir)/gcc/$(target)/$(version)
77# Number to put in man-page filename.
78manext = 1
79# Directory in which to put man pages.
80mandir = $(prefix)/man/man$(manext)
81
82# Additional system libraries to link with.
83CLIB=
84
85# Change this to a null string if obstacks are installed in the
86# system library.
87OBSTACK=obstack.o
88
89# Specify the rule for actually making gnulib.
90GNULIB = gnulib.portable
91
92# Specify the rule for actually making gnulib2.
93GNULIB2 = gnulib2.portable
94
95# List of extra C and assembler files to add to gnulib.
96# Assembler files should have names ending in `.asm'.
97LIBFUNCS_EXTRA =
98
99# Program to convert libraries.
100LIBCONVERT =
101
102# Control whether header files are installed.
103INSTALL_HEADERS=install-headers
104
105# Change this to empty to prevent installing limits.h
106LIMITS_H = limits.h
107
108# Directory to link to, when using the target `maketest'.
109DIR = ../gcc
110
111# For better debugging under COFF, define SEPARATE_AUX_OUTPUT in config.h
112# and define the following variable as `aux-output2.c' in make-...
113AUX_OUTPUT2 =
114
115# Flags to use when cross-building GCC.
116# Prefix to apply to names of object files when using them
117# to run on the machine we are compiling on.
118HOST_PREFIX=
119# Prefix to apply to names of object files when compiling them
120# to run on the machine we are compiling on.
121# The default for this variable is chosen to keep these rules
122# out of the way of the other rules for compiling the same source files.
123HOST_PREFIX_1=loser-
124HOST_CC=$(CC)
125HOST_CFLAGS=$(ALL_CFLAGS)
126HOST_LDFLAGS=$(LDFLAGS)
127HOST_CPPFLAGS=$(CPPFLAGS)
128
129# Choose the real default target.
130ALL=bootstrap
131
132# End of variables for you to override.
133
134# Lists of files for various purposes.
135
136REAL_SOURCES = \
137 $(srcdir)/app.c \
138 $(srcdir)/as.c \
139 $(srcdir)/atof-generic.c \
140 $(srcdir)/bignum-copy.c \
141 $(srcdir)/cond.c \
142 $(srcdir)/expr.c \
143 $(srcdir)/flonum-const.c \
144 $(srcdir)/flonum-copy.c \
145 $(srcdir)/flonum-mult.c \
146 $(srcdir)/frags.c \
147 $(srcdir)/hash.c \
148 $(srcdir)/hex-value.c \
149 $(srcdir)/input-file.c \
150 $(srcdir)/input-scrub.c \
151 $(srcdir)/messages.c \
152 $(srcdir)/output-file.c \
153 $(srcdir)/read.c \
154 $(srcdir)/strstr.c \
155 $(srcdir)/subsegs.c \
156 $(srcdir)/symbols.c \
157 $(srcdir)/version.c \
158 $(srcdir)/write.c \
159 $(srcdir)/xmalloc.c \
160 $(srcdir)/xrealloc.c
161
162# in an expedient order
163LINKED_SOURCES = \
164 targ-cpu.c \
165 obj-format.c \
166 atof-targ.c
167
168SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
169
170REAL_HEADERS = \
171 $(srcdir)/as.h \
172 $(srcdir)/bignum.h \
173 $(srcdir)/expr.h \
174 $(srcdir)/flonum.h \
175 $(srcdir)/frags.h \
176 $(srcdir)/hash.h \
177 $(srcdir)/input-file.h \
178 $(srcdir)/tc.h \
179 $(srcdir)/obj.h \
180 $(srcdir)/read.h \
181 $(srcdir)/reloc.h \
182 $(srcdir)/struc-symbol.h \
183 $(srcdir)/subsegs.h \
184 $(srcdir)/symbols.h \
185 $(srcdir)/syscalls.h \
186 $(srcdir)/write.h
187
188LINKED_HEADERS = \
189 a.out.gnu.h \
190 a.out.h \
191 host.h \
192 targ-env.h \
193 targ-cpu.h \
194 obj-format.h \
195 atof-targ.h
196
197HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
198
199OBJS = \
200 targ-cpu.o \
201 obj-format.o \
202 atof-targ.o \
203 app.o \
204 as.o \
205 atof-generic.o \
206 bignum-copy.o \
207 cond.o \
208 expr.o \
209 flonum-const.o \
210 flonum-copy.o \
211 flonum-mult.o \
212 frags.o \
213 hash.o \
214 hex-value.o \
215 input-file.o \
216 input-scrub.o \
217 messages.o \
218 output-file.o \
219 read.o \
220 strstr.o \
221 subsegs.o \
222 symbols.o \
223 version.o \
224 write.o \
225 xmalloc.o \
226 xrealloc.o
227
228# Definition of `all' is here so that new rules inserted by sed
229# do not specify the default target.
230# The real definition is under `all.internal'.
231
232all: $(ALL)
233
234# sed inserts variable overrides after the following line.
235####
236
237# Now figure out from those variables how to compile and link.
238
239# This is the variable actually used when we compile.
240ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CFLAGS)
241
242# Even if ALLOCA is set, don't use it if compiling with GCC.
243USE_ALLOCA= `if [ x"${CC}" = x"${OLDCC}" ] ; then echo ${ALLOCA}; else true; fi`
244USE_HOST_ALLOCA= `if [ x"${CC}" = x"${OLDCC}" ] ; then echo ${HOST_PREFIX}${ALLOCA}; else true; fi`
245
246# Dependency on obstack, alloca, malloc or whatever library facilities
247# are not installed in the system libraries.
248# We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
249LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
250
251# Likewise, for use in the tools that must run on this machine
252# even if we are cross-building GCC.
253# We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
254HOST_LIBDEPS= $(HOST_PREFIX)$(OBSTACK) $(HOST_PREFIX)$(ALLOCA) $(HOST_PREFIX)$(MALLOC)
255
256# How to link with both our special library facilities
257# and the system's installed libraries.
258LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(CLIB)
259
260# Likewise, for use in the tools that must run on this machine
261# even if we are cross-building GCC.
262HOST_LIBS = $(HOST_PREFIX)$(OBSTACK) $(USE_HOST_ALLOCA) $(HOST_PREFIX)$(MALLOC) $(CLIB)
263
264# Specify the directories to be searched for header files.
265# Both . and srcdir are used, in that order,
266# so that tm.h and config.h will be found in the compilation
267# subdirectory rather than in the source directory.
268INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
269SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
270
271# Always use -I$(srcdir)/config when compiling.
272.c.o:
273 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
274
275# This tells GNU make version 3 not to export all the variables
276# defined in this file into the environment.
277.NOEXPORT:
278
279# Files to be copied away after each stage in building.
280STAGE_GCC=gcc
281STAGESTUFF = *.o gas
282
283# The files that "belong" in CONFIG_H are deliberately omitted
284# because having them there would not be useful in actual practice.
285# All they would do is cause complete recompilation every time
286# one of the machine description files is edited.
287# That may or may not be what one wants to do.
288# If it is, rm *.o is an easy way to do it.
289# CONFIG_H = config.h tm.h
290CONFIG_H =
291
292gas: $(OBJS) $(LIBDEPS)
293 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gas $(OBJS) $(LIBS)
294
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
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
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
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
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
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
516 for i in *.o; do cmp $$i stage2/$$i; done
517
518bootstrap3: force
519 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= gas
520 for i in *.o; do cmp $$i stage2/$$i; done
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
548# Copy just the executable files from a particular stage into a subdirectory,
549# and delete the object files. Use this if you're just verifying a version
550# that is pretty sure to work, and you are short of disk space.
551risky-stage1: force
552 -mkdir stage1
553 -mv cc1 cpp cccp gcc stage1
554 -rm -f stage1/gnulib
555 -cp gnulib stage1 && $(RANLIB) stage1/gnulib
556 -make clean
557
558risky-stage2: force
559 -mkdir stage2
560 -mv cc1 cpp cccp gcc stage2
561 -rm -f stage2/gnulib
562 -cp gnulib stage2 && $(RANLIB) stage2/gnulib
563 -make clean
564
565risky-stage3: force
566 -mkdir stage3
567 -mv cc1 cpp cccp gcc stage3
568 -rm -f stage3/gnulib
569 -cp gnulib stage3 && $(RANLIB) stage3/gnulib
570 -make clean
571
572risky-stage4: force
573 -mkdir stage4
574 -mv cc1 cpp cccp gcc stage4
575 -rm -f stage4/gnulib
576 -cp gnulib stage4 && $(RANLIB) stage4/gnulib
577 -make clean
578
579#In GNU Make, ignore whether `stage*' exists.
580.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
581.PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
582
583force:
584
585Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
586 $(srcdir)/configure.was -srcdir=$(srcdir) -host=$(host) $(target)
This page took 0.071102 seconds and 4 git commands to generate.