Making HPPA assembler case sensitive where it should be, and speeding it up
[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
c97b9003
DZ
127CHECKFLAGS= \
128 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
129 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
130 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
7420b02b
JL
131 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
132 "RUNTEST_FLAGS=$(RUNTEST_FLAGS)"
c97b9003 133
fecd2382
RP
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 \
5d53038b 143 $(srcdir)/flonum-konst.c \
fecd2382
RP
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 \
fecd2382
RP
154 $(srcdir)/subsegs.c \
155 $(srcdir)/symbols.c \
fecd2382 156 $(srcdir)/write.c \
3340f7e5 157 $(srcdir)/listing.c \
9cc8106c 158 $(srcdir)/ecoff.c \
c751ad19 159 $(srcdir)/stabs.c \
7f2cb270 160 $(srcdir)/xmalloc.c
fecd2382
RP
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 \
542e1629 178 $(srcdir)/listing.h \
fecd2382
RP
179 $(srcdir)/tc.h \
180 $(srcdir)/obj.h \
181 $(srcdir)/read.h \
fecd2382
RP
182 $(srcdir)/struc-symbol.h \
183 $(srcdir)/subsegs.h \
184 $(srcdir)/symbols.h \
9cc8106c
ILT
185 $(srcdir)/write.h \
186 $(srcdir)/ecoff.h
fecd2382
RP
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 \
5d53038b 209 flonum-konst.o \
fecd2382
RP
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 \
fecd2382
RP
220 subsegs.o \
221 symbols.o \
fecd2382 222 write.o \
3340f7e5 223 listing.o \
9cc8106c 224 ecoff.o \
c751ad19 225 stabs.o \
7f2cb270 226 xmalloc.o
fecd2382 227
f6b67e4c
RP
228#### host, target, and site specific Makefile frags come in here.
229
542e1629 230all: as.new
7420b02b
JL
231 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
232 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
79a54a5b 233
7420b02b
JL
234dvi info install-info clean-info:
235 @srcroot=`cd $(srcroot); pwd`; export srcroot; \
236 (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
fecd2382 237
fecd2382
RP
238# Now figure out from those variables how to compile and link.
239
240# This is the variable actually used when we compile.
fc00f451
KR
241ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES) \
242 $(BFDDEF)
fecd2382 243
fecd2382
RP
244# How to link with both our special library facilities
245# and the system's installed libraries.
f6b67e4c 246
fc00f451
KR
247LIBS = ../opcodes/libopcodes.a $(BFDLIB) $(LOCAL_LOADLIBES) \
248 ../libiberty/libiberty.a
fecd2382
RP
249
250# Specify the directories to be searched for header files.
251# Both . and srcdir are used, in that order,
252# so that tm.h and config.h will be found in the compilation
253# subdirectory rather than in the source directory.
50fccebe 254INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include
1058238c 255SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
fecd2382
RP
256
257# Always use -I$(srcdir)/config when compiling.
258.c.o:
259 $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
260
261# This tells GNU make version 3 not to export all the variables
262# defined in this file into the environment.
263.NOEXPORT:
542e1629 264
fecd2382 265# Files to be copied away after each stage in building.
da0b2bff 266STAGESTUFF = *.o as.new
fecd2382 267
7f2cb270 268as.new: $(OBJS) $(LIBS)
da0b2bff 269 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
fecd2382 270
c97b9003
DZ
271installcheck:
272 @echo No installcheck target is available yet for the GNU assembler.
273
274check: as.new
275 @(here=`pwd` ; export here ; \
276 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
787c6bfe 277
fecd2382
RP
278config.status:
279 @echo You must configure gas. Look at the INSTALL file for details.
280 @false
281
fc00f451
KR
282config.h: config-stamp ; @true
283config-stamp: Makefile
284 -rm -f config.new config-stamp
285 echo '#define TARGET_CPU "$(target_cpu)"' > config.new
286 echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
287 echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
c97b9003 288 echo '#define GAS_VERSION "$(VERSION)"' >> config.new
fc00f451
KR
289 $(srcdir)/../move-if-change config.new config.h
290 touch config-stamp
291
fecd2382
RP
292# Compiling object files from source files.
293
fecd2382 294app.o : app.c as.h host.h targ-env.h obj-format.h \
d1a9e594 295 targ-cpu.h struc-symbol.h \
fecd2382 296 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
7420b02b 297as.o : as.c as.h host.h targ-env.h obj-format.h output-file.h \
d1a9e594 298 targ-cpu.h struc-symbol.h \
7f2cb270 299 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
fc00f451 300 tc.h obj.h config.h
fecd2382 301atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
d1a9e594 302 targ-cpu.h struc-symbol.h \
fecd2382
RP
303 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
304bignum-copy.o : bignum-copy.c as.h host.h \
305 targ-env.h obj-format.h \
d1a9e594 306 targ-cpu.h struc-symbol.h \
fecd2382
RP
307 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
308cond.o : cond.c as.h host.h targ-env.h obj-format.h \
d1a9e594 309 targ-cpu.h struc-symbol.h \
da7aaffb
SEF
310 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
311
fecd2382 312debug.o : debug.c as.h host.h targ-env.h obj-format.h \
d1a9e594 313 targ-cpu.h struc-symbol.h \
fecd2382
RP
314 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
315 subsegs.h
316expr.o : expr.c as.h host.h targ-env.h obj-format.h \
d1a9e594 317 targ-cpu.h struc-symbol.h \
da7aaffb
SEF
318 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
319
5d53038b 320flonum-konst.o : flonum-konst.c flonum.h bignum.h
fecd2382 321flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
d1a9e594 322 targ-cpu.h struc-symbol.h \
fecd2382
RP
323 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
324flonum-mult.o : flonum-mult.c flonum.h bignum.h
325frags.o : frags.c as.h host.h targ-env.h obj-format.h \
d1a9e594 326 targ-cpu.h struc-symbol.h \
fecd2382 327 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 328 subsegs.h
fecd2382 329hash.o : hash.c as.h host.h targ-env.h obj-format.h \
d1a9e594 330 targ-cpu.h struc-symbol.h \
fecd2382
RP
331 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
332hex-value.o : hex-value.c
333input-file.o : input-file.c as.h host.h \
334 targ-env.h obj-format.h targ-cpu.h \
d1a9e594 335 struc-symbol.h write.h flonum.h bignum.h expr.h \
fecd2382
RP
336 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
337input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
338 as.h host.h targ-env.h obj-format.h \
d1a9e594 339 targ-cpu.h struc-symbol.h \
fecd2382
RP
340 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
341 input-file.h
3340f7e5
RP
342listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
343 listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
344 frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
fecd2382 345messages.o : messages.c as.h host.h targ-env.h obj-format.h \
d1a9e594 346 targ-cpu.h struc-symbol.h \
fecd2382 347 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
fecd2382 348output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
d1a9e594 349 targ-cpu.h struc-symbol.h \
fecd2382
RP
350 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
351 output-file.h
352read.o : read.c as.h host.h targ-env.h obj-format.h \
d1a9e594 353 targ-cpu.h struc-symbol.h \
da7aaffb 354 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
fecd2382 355subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
d1a9e594 356 targ-cpu.h struc-symbol.h \
fecd2382 357 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 358 subsegs.h
fecd2382 359symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
d1a9e594 360 targ-cpu.h struc-symbol.h \
fecd2382 361 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 362 subsegs.h
fecd2382 363write.o : write.c as.h host.h targ-env.h obj-format.h \
d1a9e594 364 targ-cpu.h struc-symbol.h \
fecd2382 365 write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
d1a9e594 366 subsegs.h output-file.h
9cc8106c
ILT
367ecoff.o : ecoff.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 ecoff.h $(srcdir)/../include/coff/internal.h \
371 $(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
372 $(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
c751ad19
ILT
373stabs.o : stabs.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 subsegs.h $(srcdir)/../include/aout/stab_gnu.h
fecd2382 377xmalloc.o : xmalloc.c
fecd2382 378atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
d1a9e594 379 targ-cpu.h struc-symbol.h \
fecd2382
RP
380 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
381 symbols.h tc.h obj.h
382obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
d1a9e594 383 targ-cpu.h struc-symbol.h \
fecd2382 384 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
7f2cb270 385 subsegs.h symbols.h tc.h obj.h
69498fa2 386targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
d1a9e594 387 targ-cpu.h struc-symbol.h \
fecd2382 388 write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
da0b2bff 389 symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
d1a9e594 390
fecd2382
RP
391# Remake the info files.
392
921faa52 393doc: $(srcdir)/as.info
fecd2382 394
921faa52 395$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
c97b9003 396 @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
fecd2382 397
7420b02b 398clean-here:
542e1629 399 -rm -f $(STAGESTUFF) core
fecd2382 400
7420b02b
JL
401clean:
402 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean
403 @if [ -d testsuite ] ; then \
404 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean ; \
405 else true; fi
406
fecd2382 407# Like clean but also delete the links made to configure gas.
7420b02b
JL
408distclean: clean-here
409 @cd doc ; $(MAKE) $(FLAGS_TO_PASS) distclean
410 @if [ -d testsuite ] ; then \
411 cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) distclean ; \
412 else true; fi
542e1629 413 -rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
7420b02b
JL
414 targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
415 config-stamp config.h
542e1629 416
fecd2382
RP
417# Entry points `install', `includes' and `uninstall'.
418
419# Copy the files into directories where they will be run.
542e1629 420install:
7420b02b 421 srcroot=`cd $(srcroot); pwd`; export srcroot; \
c97b9003 422 $(INSTALL_XFORM) as.new $(bindir)/as; \
7420b02b
JL
423 $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
424 n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
efbfb612
ILT
425 if [ -d $(tooldir) ]; then \
426 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
427 rm -f $(tooldir)/bin/as; \
428 ln $(bindir)/$$n $(tooldir)/bin/as \
429 || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
430 else true; fi
fecd2382 431
fecd2382
RP
432# Cancel installation by deleting the installed files.
433uninstall:
7e10f53c
ILT
434 -n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
435 rm -f $(bindir)/$$n; \
436 rm -f $(mandir)/$$n.1
542e1629 437
fecd2382
RP
438# These exist for maintenance purposes.
439
440tags TAGS: force
787c6bfe 441 etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
fecd2382 442
542e1629 443bootstrap: as.new force
fecd2382 444 $(MAKE) stage1
542e1629 445 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
fecd2382 446 $(MAKE) stage2
542e1629 447 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
a01bf1fb 448 $(MAKE) comparison against=stage2
fecd2382
RP
449
450bootstrap2: force
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
da0b2bff 454 $(MAKE) comparison against=stage2
fecd2382
RP
455
456bootstrap3: force
542e1629 457 $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new
a01bf1fb 458 $(MAKE) comparison against=stage2
fecd2382
RP
459
460# Copy the object files from a particular stage into a subdirectory.
461stage1: force
462 -mkdir stage1
463 -mv $(STAGESTUFF) stage1
81f73963 464 if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
fecd2382
RP
465
466stage2: force
467 -mkdir stage2
468 -mv $(STAGESTUFF) stage2
81f73963 469 if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
fecd2382
RP
470
471stage3: force
472 -mkdir stage3
6a3958b2 473 -mv $(STAGESTUFF) stage3
81f73963 474 if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
fecd2382 475
a01bf1fb
RP
476against=stage2
477
478comparison: force
479 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
480
6a3958b2 481de-stage1: force
da0b2bff 482 - (cd stage1 ; rm as ; mv -f * ..)
6a3958b2
RP
483 - rmdir stage1
484
485de-stage2: force
da0b2bff 486 - (cd stage2 ; rm as ; mv -f * ..)
6a3958b2
RP
487 - rmdir stage2
488
489de-stage3: force
da0b2bff 490 - (cd stage3 ; rm as ; mv -f * ..)
6a3958b2 491 - rmdir stage3
fecd2382 492
fecd2382
RP
493#In GNU Make, ignore whether `stage*' exists.
494.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
fecd2382
RP
495
496force:
497
fc00f451
KR
498Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
499 $(srcdir)/configure.in
a26878d1 500 $(SHELL) ./config.status
This page took 0.130045 seconds and 4 git commands to generate.