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