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