* config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
[deliverable/binutils-gdb.git] / gas / Makefile.in
CommitLineData
fecd2382 1# Makefile for GNU Assembler
7420b02b 2# Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
fecd2382 3
7420b02b 4# This file is part of GNU GAS.
fecd2382 5
7420b02b
JL
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.
fecd2382 10
7420b02b
JL
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.
fecd2382 15
7420b02b
JL
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.
fecd2382 19
fecd2382
RP
20# The targets for external use include:
21# all, doc, proto, install, uninstall, includes, TAGS,
22# clean, cleanconfig, 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
1058238c 27srcdir = .
7420b02b 28srcroot = $(srcdir)/..
1058238c
RP
29
30prefix = /usr/local
31
7e10f53c 32program_transform_name =
787c6bfe
RP
33exec_prefix = $(prefix)
34bindir = $(exec_prefix)/bin
35libdir = $(exec_prefix)/lib
efbfb612 36tooldir = $(libdir)/$(target_alias)
787c6bfe 37
1058238c 38datadir = $(prefix)/lib
787c6bfe 39mandir = $(prefix)/man
1058238c
RP
40man1dir = $(mandir)/man1
41man2dir = $(mandir)/man2
42man3dir = $(mandir)/man3
43man4dir = $(mandir)/man4
44man5dir = $(mandir)/man5
45man6dir = $(mandir)/man6
46man7dir = $(mandir)/man7
47man8dir = $(mandir)/man8
48man9dir = $(mandir)/man9
787c6bfe 49infodir = $(prefix)/info
1058238c
RP
50includedir = $(prefix)/include
51docdir = $(datadir)/doc
52
9cc8106c 53VERSION=cygnus-2.2.1
c97b9003 54
fecd2382 55SHELL = /bin/sh
1058238c 56
7420b02b 57INSTALL = $${srcroot}/install.sh -c
fecd2382 58INSTALL_PROGRAM = $(INSTALL)
1058238c 59INSTALL_DATA = $(INSTALL)
5ebaf24b 60INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
c97b9003 61INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
fecd2382 62
1058238c
RP
63AR = ar
64AR_FLAGS = qv
65BISON = bison
66MAKEINFO = makeinfo
c97b9003 67TEXI2DVI = texi2dvi
fecd2382 68RANLIB = ranlib
4b857710
ILT
69CFLAGS = -g
70
7420b02b
JL
71MAKEOVERRIDES=
72
c97b9003
DZ
73AS_FOR_TARGET = $${here}/as.new
74
75CC_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 '' $$t; \
83 fi; \
84 fi`
85
86NM_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 '' $$t ; \
94 fi; \
95 fi`
96
97OBJDUMP=objdump
98OBJDUMP_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 '' $$t ; \
106 fi; \
107 fi`
108
4b857710
ILT
109FLAGS_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)"
fecd2382 126
5a051773 127RUNTEST=runtest
c97b9003
DZ
128CHECKFLAGS= \
129 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
130 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
131 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
7420b02b 132 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
03372cf4 133 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
5a051773 134 "RUNTEST=$(RUNTEST)"
c97b9003 135
fecd2382
RP
136# Lists of files for various purposes.
137
138REAL_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 \
5d53038b 145 $(srcdir)/flonum-konst.c \
fecd2382
RP
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 \
dffc8b9e 153 $(srcdir)/literal.c \
fecd2382
RP
154 $(srcdir)/messages.c \
155 $(srcdir)/output-file.c \
156 $(srcdir)/read.c \
fecd2382
RP
157 $(srcdir)/subsegs.c \
158 $(srcdir)/symbols.c \
fecd2382 159 $(srcdir)/write.c \
3340f7e5 160 $(srcdir)/listing.c \
9cc8106c 161 $(srcdir)/ecoff.c \
c751ad19 162 $(srcdir)/stabs.c \
7f2cb270 163 $(srcdir)/xmalloc.c
fecd2382
RP
164
165# in an expedient order
166LINKED_SOURCES = \
167 targ-cpu.c \
168 obj-format.c \
169 atof-targ.c
170
171SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
172
173REAL_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 \
542e1629 181 $(srcdir)/listing.h \
fecd2382
RP
182 $(srcdir)/tc.h \
183 $(srcdir)/obj.h \
184 $(srcdir)/read.h \
fecd2382
RP
185 $(srcdir)/struc-symbol.h \
186 $(srcdir)/subsegs.h \
187 $(srcdir)/symbols.h \
9cc8106c
ILT
188 $(srcdir)/write.h \
189 $(srcdir)/ecoff.h
fecd2382
RP
190
191LINKED_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
200HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
201
202OBJS = \
203 targ-cpu.o \
204 obj-format.o \
205 atof-targ.o \
206 app.o \
207 as.o \
208 atof-generic.o \
209 bignum-copy.o \
210 cond.o \
211 expr.o \
5d53038b 212 flonum-konst.o \
fecd2382
RP
213 flonum-copy.o \
214 flonum-mult.o \
215 frags.o \
216 hash.o \
217 hex-value.o \
218 input-file.o \
219 input-scrub.o \
dffc8b9e 220 literal.o \
fecd2382
RP
221 messages.o \
222 output-file.o \
223 read.o \
fecd2382
RP
224 subsegs.o \
225 symbols.o \
fecd2382 226 write.o \
3340f7e5 227 listing.o \
9cc8106c 228 ecoff.o \
c751ad19 229 stabs.o \
7f2cb270 230 xmalloc.o
fecd2382 231
f6b67e4c
RP
232#### host, target, and site specific Makefile frags come in here.
233
542e1629 234all: as.new
7420b02b
JL
235 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
236 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
79a54a5b 237
7420b02b
JL
238dvi info install-info clean-info:
239 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
240 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
fecd2382 241
fecd2382
RP
242# Now figure out from those variables how to compile and link.
243
244# This is the variable actually used when we compile.
420065a5 245ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
fecd2382 246
fecd2382
RP
247# How to link with both our special library facilities
248# and the system's installed libraries.
f6b67e4c 249
fc00f451
KR
250LIBS = ../opcodes/libopcodes.a $(BFDLIB) $(LOCAL_LOADLIBES) \
251 ../libiberty/libiberty.a
fecd2382
RP
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.
5a051773 257INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/..
1058238c 258SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
fecd2382
RP
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:
542e1629 267
fecd2382 268# Files to be copied away after each stage in building.
da0b2bff 269STAGESTUFF = *.o as.new
fecd2382 270
7f2cb270 271as.new: $(OBJS) $(LIBS)
da0b2bff 272 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
fecd2382 273
c97b9003
DZ
274installcheck:
275 @echo No installcheck target is available yet for the GNU assembler.
276
277check: as.new
278 @(here=`pwd` ; export here ; \
279 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
787c6bfe 280
fecd2382
RP
281config.status:
282 @echo You must configure gas. Look at the INSTALL file for details.
283 @false
284
fc00f451
KR
285config.h: config-stamp ; @true
286config-stamp: Makefile
287 -rm -f config.new config-stamp
420065a5
KR
288 echo '#ifndef TARGET_CPU' > config.new
289 echo '#define TARGET_CPU "$(target_cpu)"' >> config.new
fc00f451
KR
290 echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
291 echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
c97b9003 292 echo '#define GAS_VERSION "$(VERSION)"' >> config.new
420065a5
KR
293 echo '#$(BFDDEF) BFD_ASSEMBLER' >> config.new
294 echo '#endif /* TARGET_CPU */' >> config.new
fc00f451
KR
295 $(srcdir)/../move-if-change config.new config.h
296 touch config-stamp
297
fecd2382
RP
298# Compiling object files from source files.
299
fecd2382 300app.o : app.c as.h host.h targ-env.h obj-format.h \
d1a9e594 301 targ-cpu.h struc-symbol.h \
fecd2382 302 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
7420b02b 303as.o : as.c as.h host.h targ-env.h obj-format.h output-file.h \
d1a9e594 304 targ-cpu.h struc-symbol.h \
7f2cb270 305 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
fc00f451 306 tc.h obj.h config.h
fecd2382 307atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
d1a9e594 308 targ-cpu.h struc-symbol.h \
fecd2382
RP
309 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
310bignum-copy.o : bignum-copy.c as.h host.h \
311 targ-env.h obj-format.h \
d1a9e594 312 targ-cpu.h struc-symbol.h \
fecd2382
RP
313 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
314cond.o : cond.c as.h host.h targ-env.h obj-format.h \
d1a9e594 315 targ-cpu.h struc-symbol.h \
da7aaffb
SEF
316 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
317
fecd2382 318debug.o : debug.c as.h host.h targ-env.h obj-format.h \
d1a9e594 319 targ-cpu.h struc-symbol.h \
fecd2382
RP
320 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
321 subsegs.h
322expr.o : expr.c as.h host.h targ-env.h obj-format.h \
d1a9e594 323 targ-cpu.h struc-symbol.h \
da7aaffb
SEF
324 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
325
5d53038b 326flonum-konst.o : flonum-konst.c flonum.h bignum.h
fecd2382 327flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
d1a9e594 328 targ-cpu.h struc-symbol.h \
fecd2382
RP
329 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
330flonum-mult.o : flonum-mult.c flonum.h bignum.h
331frags.o : frags.c as.h host.h targ-env.h obj-format.h \
d1a9e594 332 targ-cpu.h struc-symbol.h \
fecd2382 333 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 334 subsegs.h
fecd2382 335hash.o : hash.c as.h host.h targ-env.h obj-format.h \
d1a9e594 336 targ-cpu.h struc-symbol.h \
fecd2382
RP
337 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
338hex-value.o : hex-value.c
339input-file.o : input-file.c as.h host.h \
340 targ-env.h obj-format.h targ-cpu.h \
d1a9e594 341 struc-symbol.h write.h flonum.h bignum.h expr.h \
fecd2382
RP
342 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
343input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
344 as.h host.h targ-env.h obj-format.h \
d1a9e594 345 targ-cpu.h struc-symbol.h \
fecd2382
RP
346 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
347 input-file.h
3340f7e5
RP
348listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
349 listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
420065a5 350 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
fecd2382 351messages.o : messages.c as.h host.h targ-env.h obj-format.h \
d1a9e594 352 targ-cpu.h struc-symbol.h \
fecd2382 353 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
fecd2382 354output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
d1a9e594 355 targ-cpu.h struc-symbol.h \
fecd2382
RP
356 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
357 output-file.h
358read.o : read.c as.h host.h targ-env.h obj-format.h \
d1a9e594 359 targ-cpu.h struc-symbol.h \
da7aaffb 360 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
fecd2382 361subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
d1a9e594 362 targ-cpu.h struc-symbol.h \
fecd2382 363 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 364 subsegs.h
fecd2382 365symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
d1a9e594 366 targ-cpu.h struc-symbol.h \
fecd2382 367 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 368 subsegs.h
fecd2382 369write.o : write.c as.h host.h targ-env.h obj-format.h \
d1a9e594 370 targ-cpu.h struc-symbol.h \
fecd2382 371 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 372 subsegs.h output-file.h
9cc8106c
ILT
373ecoff.o : ecoff.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 symbols.h tc.h obj.h \
376 ecoff.h $(srcdir)/../include/coff/internal.h \
377 $(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
378 $(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
c751ad19
ILT
379stabs.o : stabs.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 subsegs.h $(srcdir)/../include/aout/stab_gnu.h
fecd2382 383xmalloc.o : xmalloc.c
fecd2382 384atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
d1a9e594 385 targ-cpu.h struc-symbol.h \
fecd2382
RP
386 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
387 symbols.h tc.h obj.h
388obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
d1a9e594 389 targ-cpu.h struc-symbol.h \
fecd2382 390 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
7f2cb270 391 subsegs.h symbols.h tc.h obj.h
69498fa2 392targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
d1a9e594 393 targ-cpu.h struc-symbol.h \
fecd2382 394 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
da0b2bff 395 symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
d1a9e594 396
fecd2382
RP
397# Remake the info files.
398
921faa52 399doc: $(srcdir)/as.info
fecd2382 400
921faa52 401$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
c97b9003 402 @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
fecd2382 403
7420b02b 404clean-here:
542e1629 405 -rm -f $(STAGESTUFF) core
fecd2382 406
5a051773 407clean: clean-here
7420b02b
JL
408 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean
409 @if [ -d testsuite ] ; then \
410 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean ; \
411 else true; fi
412
fecd2382 413# Like clean but also delete the links made to configure gas.
7420b02b
JL
414distclean: clean-here
415 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) distclean
416 @if [ -d testsuite ] ; then \
417 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) distclean ; \
418 else true; fi
542e1629 419 -rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
7420b02b
JL
420 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
421 config-stamp config.h
542e1629 422
fecd2382
RP
423# Entry points `install', `includes' and `uninstall'.
424
425# Copy the files into directories where they will be run.
542e1629 426install:
7420b02b 427 srcroot=`cd $(srcroot); pwd`; export srcroot; \
c97b9003 428 $(INSTALL_XFORM) as.new $(bindir)/as; \
7420b02b
JL
429 $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
430 n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
efbfb612
ILT
431 if [ -d $(tooldir) ]; then \
432 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
433 rm -f $(tooldir)/bin/as; \
434 ln $(bindir)/$$n $(tooldir)/bin/as \
435 || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
436 else true; fi
fecd2382 437
fecd2382
RP
438# Cancel installation by deleting the installed files.
439uninstall:
7e10f53c
ILT
440 -n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
441 rm -f $(bindir)/$$n; \
442 rm -f $(mandir)/$$n.1
542e1629 443
fecd2382
RP
444# These exist for maintenance purposes.
445
446tags TAGS: force
787c6bfe 447 etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
fecd2382 448
542e1629 449bootstrap: as.new force
fecd2382 450 $(MAKE) stage1
542e1629 451 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
fecd2382 452 $(MAKE) stage2
542e1629 453 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
a01bf1fb 454 $(MAKE) comparison against=stage2
fecd2382
RP
455
456bootstrap2: force
542e1629 457 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
fecd2382 458 $(MAKE) stage2
542e1629 459 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
da0b2bff 460 $(MAKE) comparison against=stage2
fecd2382
RP
461
462bootstrap3: force
542e1629 463 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
a01bf1fb 464 $(MAKE) comparison against=stage2
fecd2382
RP
465
466# Copy the object files from a particular stage into a subdirectory.
467stage1: force
468 -mkdir stage1
469 -mv $(STAGESTUFF) stage1
81f73963 470 if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
fecd2382
RP
471
472stage2: force
473 -mkdir stage2
474 -mv $(STAGESTUFF) stage2
81f73963 475 if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
fecd2382
RP
476
477stage3: force
478 -mkdir stage3
6a3958b2 479 -mv $(STAGESTUFF) stage3
81f73963 480 if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
fecd2382 481
a01bf1fb
RP
482against=stage2
483
484comparison: force
485 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
486
6a3958b2 487de-stage1: force
da0b2bff 488 - (cd stage1 ; rm as ; mv -f * ..)
6a3958b2
RP
489 - rmdir stage1
490
491de-stage2: force
da0b2bff 492 - (cd stage2 ; rm as ; mv -f * ..)
6a3958b2
RP
493 - rmdir stage2
494
495de-stage3: force
da0b2bff 496 - (cd stage3 ; rm as ; mv -f * ..)
6a3958b2 497 - rmdir stage3
fecd2382 498
fecd2382
RP
499#In GNU Make, ignore whether `stage*' exists.
500.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
fecd2382
RP
501
502force:
503
fc00f451
KR
504Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
505 $(srcdir)/configure.in
a26878d1 506 $(SHELL) ./config.status
This page took 0.121761 seconds and 4 git commands to generate.