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