Commit | Line | Data |
---|---|---|
433fb166 SC |
1 | # This file was generated automatically by configure. Do not edit. |
2 | target_makefile_frag = ./config/mt-h8300-coff | |
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 template for Configure for the BFD library. | |
19 | # Copyright (C) 1990, 1991 Free Software Foundation, Inc. | |
20 | # Written by Cygnus Support. | |
21 | # | |
22 | # This file is part of BFD, the Binary File Descriptor library. | |
23 | # | |
24 | # This program is free software; you can redistribute it and/or modify | |
25 | # it under the terms of the GNU General Public License as published by | |
26 | # the Free Software Foundation; either version 2 of the License, or | |
27 | # (at your option) any later version. | |
28 | # | |
29 | # This program is distributed in the hope that it will be useful, | |
30 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
31 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
32 | # GNU General Public License for more details. | |
33 | # | |
34 | # You should have received a copy of the GNU General Public License | |
35 | # along with this program; if not, write to the Free Software | |
36 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
37 | ||
38 | # $Id$ | |
39 | ||
40 | srcdir = . | |
41 | ||
42 | prefix = /usr/local | |
43 | ||
44 | bindir = $(prefix)/bin | |
45 | datadir = $(prefix)/lib | |
46 | libdir = $(prefix)/lib | |
47 | mandir = $(datadir)/man | |
48 | man1dir = $(mandir)/man1 | |
49 | man2dir = $(mandir)/man2 | |
50 | man3dir = $(mandir)/man3 | |
51 | man4dir = $(mandir)/man4 | |
52 | man5dir = $(mandir)/man5 | |
53 | man6dir = $(mandir)/man6 | |
54 | man7dir = $(mandir)/man7 | |
55 | man8dir = $(mandir)/man8 | |
56 | man9dir = $(mandir)/man9 | |
57 | infodir = $(datadir)/info | |
58 | includedir = $(prefix)/include | |
59 | docdir = $(srcdir)/doc | |
60 | ||
61 | SHELL = /bin/sh | |
62 | ||
63 | INSTALL = install -c | |
64 | INSTALL_PROGRAM = $(INSTALL) | |
65 | INSTALL_DATA = $(INSTALL) | |
66 | ||
67 | AR = ar | |
68 | AR_FLAGS = qv | |
69 | BISON = bison | |
70 | MAKEINFO = makeinfo | |
71 | RANLIB = ar rvs | |
72 | ||
73 | INCDIR = $(srcdir)/../include | |
74 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |
75 | DEP = mkdep | |
433fb166 SC |
76 | |
77 | SUBDIRS = doc | |
78 | ||
79 | ||
80 | # Change this (to MINIMIZE=1) to save space in executables. | |
81 | # Currently, all this does is control the target_vector in targets.c. | |
82 | MINIMIZE=0 | |
83 | ||
84 | TARGETLIB = libbfd.a | |
85 | CFLAGS = -g -O $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION | |
86 | ||
87 | ||
88 | BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \ | |
89 | archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o | |
90 | ||
e5932011 | 91 | BFD_MACHINES = cpu-h8300.o |
433fb166 | 92 | |
e5932011 SC |
93 | |
94 | BFD_BACKENDS = ieee.o srec.o coff-h83.o | |
433fb166 SC |
95 | |
96 | ||
97 | ||
98 | ||
99 | OPTIONAL_BACKENDS = trad-core.o | |
100 | ||
101 | #### host and target dependent Makefile fragments come in here. | |
102 | # Target: Hitachi H8/300 using COFF and IEEE-695 object file format | |
103 | # Avoid dragging in a lot of other architectures and formats. | |
104 | HDEFINES=-D__MSDOS__ -D__GO32__ | |
105 | TDEFAULTS=-DBFD -DSELECT_ARCHITECTURES=bfd_h8300_arch -DSELECT_VECS=&ieee_vec\,&srec_vec\,&h8300coff_vec | |
106 | CC=gcc | |
107 | ### | |
108 | ||
109 | BFD_H=$(INCDIR)/bfd.h | |
110 | ||
111 | # C source files that correspond to .o's. | |
112 | CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \ | |
113 | coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \ | |
114 | oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \ | |
e5932011 | 115 | format.c section.c core.c syms.c reloc.c init.c ctor.c seclet.c \ |
433fb166 SC |
116 | coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \ |
117 | cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \ | |
e5932011 | 118 | cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h83.c |
433fb166 SC |
119 | |
120 | STAGESTUFF = $(TARGETLIB) $(OFILES) | |
121 | ||
122 | all: $(TARGETLIB) | |
123 | ||
124 | # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" | |
125 | ||
126 | info: force | |
127 | $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" | |
128 | ||
129 | install-info: force | |
130 | $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" | |
131 | ||
132 | # HDEPFILES comes from the host config; TDEPFILES from the target config. | |
133 | OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES) | |
134 | ||
135 | $(TARGETLIB): $(OFILES) | |
136 | -rm -f $(TARGETLIB) | |
137 | >bfd.rf $(AR_FLAGS) $(TARGETLIB) $(OFILES) | |
138 | $(AR) @bfd.rf | |
139 | $(RANLIB) $(TARGETLIB) | |
140 | ||
141 | # When compiling targets.c, supply the default target info from configure. | |
142 | targets.o: targets.c | |
143 | >targets.rf $(CFLAGS) -c -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) targets.c | |
144 | $(CC) @targets.rf | |
145 | ||
146 | subdir_do: force | |
147 | for i in $(DODIRS); do \ | |
148 | if [ -d $(unsubdir)/$$i ] ; then \ | |
149 | if (cd $(unsubdir)/$$i$(subdir); \ | |
150 | $(MAKE) \ | |
151 | "against=$(against)" \ | |
152 | "AR=$(AR)" \ | |
153 | "AR_FLAGS=$(AR_FLAGS)" \ | |
154 | "CC=$(CC)" \ | |
155 | "RANLIB=$(RANLIB)" \ | |
156 | "BISON=$(BISON)" $(DO)) ; then true ; \ | |
157 | else exit 1 ; fi ; \ | |
158 | else true ; fi ; \ | |
159 | done | |
160 | ||
161 | stage1: force | |
162 | - mkdir stage1 | |
163 | - mv -f $(STAGESTUFF) stage1 | |
164 | $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)" | |
165 | ||
166 | stage2: force | |
167 | - mkdir stage2 | |
168 | - mv -f $(STAGESTUFF) stage2 | |
169 | $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)" | |
170 | ||
171 | stage3: force | |
172 | - mkdir stage3 | |
173 | - mv -f $(STAGESTUFF) stage3 | |
174 | $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)" | |
175 | ||
176 | against=stage2 | |
177 | ||
178 | comparison: force | |
179 | for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done | |
180 | $(MAKE) subdir_do DO=comparison "DODIRS=$(SUBDIRS)" | |
181 | ||
182 | de-stage1: force | |
183 | - (cd stage1 ; mv -f $(STAGESTUFF) ..) | |
184 | - rmdir stage1 | |
185 | $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)" | |
186 | ||
187 | de-stage2: force | |
188 | - (cd stage2 ; mv -f $(STAGESTUFF) ..) | |
189 | - rmdir stage2 | |
190 | $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)" | |
191 | ||
192 | de-stage3: force | |
193 | - (cd stage3 ; mv -f $(STAGESTUFF) ..) | |
194 | - rmdir stage3 | |
195 | $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)" | |
196 | ||
197 | tags etags: TAGS | |
198 | ||
199 | TAGS: force | |
200 | etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c | |
201 | ||
202 | clean: | |
203 | rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout | |
204 | $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" | |
205 | ||
206 | clobber realclean: clean | |
207 | rm -f libbfd.a TAGS | |
208 | $(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)" | |
209 | ||
210 | # Mark everything as depending on config.status, since the timestamp on | |
211 | # sysdep.h might actually move backwards if we reconfig and relink it | |
212 | # to a different hosts/h-xxx.h file. This will force a recompile anyway. | |
213 | # dos - don't do that. | |
214 | RECONFIG = | |
215 | $(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG) | |
216 | $(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG) | |
217 | $(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) | |
218 | $(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) | |
219 | ||
220 | # Get around a Sun Make bug in SunOS 4.1.1 with VPATH | |
221 | cpu-i386.o: cpu-i386.c | |
222 | ||
223 | saber: | |
224 | #suppress 65 on bfd_map_over_sections | |
225 | #suppress 66 on bfd_map_over_sections | |
226 | #suppress 67 on bfd_map_over_sections | |
227 | #suppress 68 on bfd_map_over_sections | |
228 | #suppress 69 on bfd_map_over_sections | |
229 | #suppress 70 on bfd_map_over_sections | |
230 | #suppress 110 in bfd_map_over_sections | |
231 | #suppress 112 in bfd_map_over_sections | |
232 | #suppress 530 | |
233 | #suppress 590 in swap_exec_header | |
234 | #suppress 590 in _bfd_dummy_core_file_matches_executable_p | |
235 | #suppress 590 in bfd_dont_truncate_arname | |
236 | #suppress 590 on ignore | |
237 | #suppress 590 on abfd | |
238 | #setopt load_flags $(CFLAGS) | |
239 | #load $(CFILES) | |
240 | ||
241 | ||
242 | #----------------------------------------------------------------------------- | |
243 | # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT | |
244 | # | |
245 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
246 | #----------------------------------------------------------------------------- | |
247 | ||
248 | ver960.c: FORCE | |
249 | rm -f ver960.c | |
250 | echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c | |
251 | ||
252 | ||
253 | # This target should be invoked before building a new release. | |
254 | # 'VERSION' file must be present and contain a string of the form "x.y" | |
255 | # | |
256 | roll: | |
257 | @V=`cat VERSION` ; \ | |
258 | MAJ=`sed 's/\..*//' VERSION` ; \ | |
259 | MIN=`sed 's/.*\.//' VERSION` ; \ | |
260 | V=$$MAJ.`expr $$MIN + 1` ; \ | |
261 | rm -f VERSION ; \ | |
262 | echo $$V >VERSION ; \ | |
263 | echo Version $$V | |
264 | ||
265 | # Dummy target to force execution of dependent targets. | |
266 | # | |
267 | force: | |
268 | ||
269 | install: | |
270 | $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a | |
271 | $(RANLIB) $(libdir)/libbfd.a | |
272 | $(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h | |
273 | $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" | |
274 | ||
275 | # Target to uncomment host-specific lines in this makefile. Such lines must | |
276 | # have the following string beginning in column 1: #__<hostname>__# | |
277 | # Original Makefile is backed up as 'Makefile.old'. | |
278 | # | |
279 | # Invoke with: make make HOST=xxx | |
280 | # | |
281 | make: | |
282 | -@if test $(HOST)x = x ; then \ | |
283 | echo '\aSpecify "make make HOST=???"'; \ | |
284 | exit 1; \ | |
285 | fi ; \ | |
286 | grep -s "^#The next line was generated by 'make make'" Makefile; \ | |
287 | if test $$? = 0 ; then \ | |
288 | echo "\aMakefile has already been processed with 'make make'";\ | |
289 | exit 1; \ | |
290 | fi ; \ | |
291 | mv -f Makefile Makefile.old; \ | |
292 | echo "#The next line was generated by 'make make'" >Makefile ; \ | |
293 | echo "HOST=$(HOST)" >>Makefile ; \ | |
294 | echo >>Makefile ; \ | |
295 | sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile | |
296 | ||
297 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) | |
298 | $(SHELL) ./config.status | |
299 | ||
300 | dep: $(CFILES) | |
301 | mkdep $(CFLAGS) $? | |
302 | ||
303 | gen-aout: $(srcdir)/gen-aout.c | |
304 | $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c | |
305 | ||
306 | aout-params.h: gen-aout | |
307 | ./gen-aout > aout-params.h | |
308 | ||
309 | host-aout.o: aout-params.h | |
310 | ||
311 | headers: | |
312 | (cd $(docdir); $(MAKE) protos) | |
313 | # Rebuild prototypes in bfd.h | |
314 | cp $(docdir)/bfd.h $(BFD_H) | |
315 | cp $(docdir)/libbfd.h $(srcdir)/libbfd.h | |
316 | cp $(docdir)/libcoff.h $(srcdir)/libcoff.h | |
317 | ||
318 | bfd.info: | |
319 | ( cd $(docdir); $(MAKE) bfd.info) | |
320 | ||
321 | bfd.dvi: | |
322 | (cd $(docdir); $(MAKE) bfd.dvi) | |
323 | ||
324 | bfd.ps: | |
325 | (cd $(docdir); $(MAKE) bfd.ps) | |
326 | ||
327 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
328 | ||
329 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
330 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
331 | ||
332 | libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
333 | opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
334 | bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
335 | archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
336 | $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h | |
337 | targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
338 | cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
339 | archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h | |
340 | aout64.o : aout64.c | |
341 | aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \ | |
342 | $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \ | |
343 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
344 | sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \ | |
345 | libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
346 | $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h | |
347 | demo64.o : demo64.c | |
348 | ||
349 | srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h | |
350 | oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
351 | $(INCDIR)/oasys.h liboasys.h | |
352 | ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
353 | $(INCDIR)/ieee.h libieee.h | |
e5932011 | 354 | coff-h83.o: coff-h83.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ |
433fb166 SC |
355 | $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h |
356 | format.o : format.c $(INCDIR)/bfd.h \ | |
357 | $(INCDIR)/obstack.h libbfd.h | |
358 | section.o : section.c $(INCDIR)/bfd.h \ | |
359 | $(INCDIR)/obstack.h libbfd.h | |
360 | core.o : core.c $(INCDIR)/bfd.h \ | |
361 | $(INCDIR)/obstack.h libbfd.h | |
362 | syms.o : syms.c $(INCDIR)/bfd.h \ | |
363 | $(INCDIR)/obstack.h libbfd.h | |
e5932011 | 364 | |
433fb166 SC |
365 | reloc.o : reloc.c $(INCDIR)/bfd.h \ |
366 | $(INCDIR)/obstack.h libbfd.h | |
367 | ||
368 | trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \ | |
369 | libbfd.h libaout.h | |
370 | newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
371 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ | |
372 | $(INCDIR)/aout/ar.h libaout.h | |
373 | i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
374 | $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ | |
375 | $(INCDIR)/aout/ar.h libaout.h | |
376 | bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ | |
377 | $(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h | |
378 | ||
379 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY | |
380 |