* cpu-h8300.c: Add support for MEMIND addressing mode
[deliverable/binutils-gdb.git] / bfd / Makefile.in
CommitLineData
3c8a3c56 1# Makefile template for Configure for the BFD library.
a26878d1 2# Copyright (C) 1990, 1991 Free Software Foundation, Inc.
3c8a3c56
JG
3# Written by Cygnus Support.
4#
5# This file is part of BFD, the Binary File Descriptor library.
6#
7# This program is free software; you can redistribute it and/or modify
99a42820 8# it under the terms of the GNU General Public License as published by
3c8a3c56
JG
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
99a42820
RP
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
3c8a3c56 16#
99a42820 17# You should have received a copy of the GNU General Public License
3c8a3c56
JG
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
99a42820
RP
20
21# $Id$
22
23srcdir = .
080f6324
SC
24ddestdir = /usr/local
25libdir = $(ddestdir)/lib
7de245d3 26docdir = $(srcdir)$(subdir)/doc
2bf92e47 27includedir= $(ddestdir)/include
99a42820 28RANLIB = ranlib
1b494bfa
RP
29AR = ar
30AR_FLAGS = clq
d6a554ae 31INCDIR = $(srcdir)/../include
40773f7f 32CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
a5c6b4b3 33DEP = mkdep
080f6324 34MINUS_G=-g
12e7087f 35
f259290f 36SUBDIRS = doc
12e7087f 37
99a42820 38
7de245d3
PB
39# Change this (to MINIMIZE=1) to save space in executables.
40# Currently, all this does is control the target_vector in targets.c.
41MINIMIZE=0
42
5176a6bc 43TARGETLIB = libbfd.a
080f6324 44CFLAGS = $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
99a42820
RP
45
46
726cc6ef 47BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
a7bae57e 48 archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o
63ffe5ef 49
cbdc7909
JG
50BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
51 cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o
99a42820 52
7de245d3 53BFD_BACKENDS = oasys.o ieee.o srec.o elf.o stab-syms.o\
b7de6963 54 aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
156e3852 55 coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
3b4f1a5d 56 coff-mips.o coff-rs6000.o coff-h8300.o
63ffe5ef 57
c6e7b0ed 58OPTIONAL_BACKENDS = trad-core.o
99a42820 59
22e98743
SC
60#### host and target dependent Makefile fragments come in here.
61###
62
99a42820 63BFD_H=$(INCDIR)/bfd.h
99a42820
RP
64
65# C source files that correspond to .o's.
66CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
156e3852
JG
67 coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
68 oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \
d1ee1a89 69 format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \
156e3852 70 coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
3f85ebce 71 cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
3b4f1a5d 72 cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c
63ffe5ef 73
5176a6bc
RP
74STAGESTUFF = $(TARGETLIB) $(OFILES)
75
76all: $(TARGETLIB)
f259290f 77 $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)"
5176a6bc 78
2090ba83
RP
79all-info: force
80 $(MAKE) subdir_do DO=all-info "DODIRS=$(SUBDIRS)"
81
82install-info: force
83 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
84
6a469027
JG
85# HDEPFILES comes from the host config; TDEPFILES from the target config.
86OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
5176a6bc
RP
87
88$(TARGETLIB): $(OFILES)
89 rm -f $(TARGETLIB)
1b494bfa
RP
90 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
91 $(RANLIB) $(TARGETLIB)
5176a6bc 92
4a29cb1e
JG
93# When compiling targets.c, supply the default target info from configure.
94targets.o: targets.c
7de245d3 95 $(CC) $(CFLAGS) -c -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
4a29cb1e 96
f259290f
RP
97subdir_do: force
98 for i in $(DODIRS); do \
99 if [ -d $(unsubdir)/$$i ] ; then \
100 if (cd $(unsubdir)/$$i$(subdir); \
101 $(MAKE) \
102 "against=$(against)" \
103 "AR=$(AR)" \
104 "CC=$(CC)" \
105 "AR_FLAGS=$(AR_FLAGS)" \
106 "RANLIB=$(RANLIB)" \
107 "BISON=$(BISON)" $(DO)) ; then true ; \
108 else exit 1 ; fi ; \
109 else true ; fi ; \
110 done
111
5176a6bc
RP
112stage1: force
113 - mkdir stage1
114 - mv -f $(STAGESTUFF) stage1
f259290f 115 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
5176a6bc
RP
116
117stage2: force
118 - mkdir stage2
119 - mv -f $(STAGESTUFF) stage2
f259290f 120 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
5176a6bc
RP
121
122stage3: force
123 - mkdir stage3
124 - mv -f $(STAGESTUFF) stage3
f259290f 125 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
5176a6bc 126
a01bf1fb
RP
127against=stage2
128
129comparison: force
130 for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
f259290f 131 $(MAKE) subdir_do DO=comparison "DODIRS=$(SUBDIRS)"
a01bf1fb 132
5176a6bc
RP
133de-stage1: force
134 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
135 - rmdir stage1
f259290f 136 $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
99a42820 137
5176a6bc
RP
138de-stage2: force
139 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
140 - rmdir stage2
f259290f 141 $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
99a42820 142
5176a6bc
RP
143de-stage3: force
144 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
145 - rmdir stage3
f259290f 146 $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
99a42820
RP
147
148tags etags: TAGS
149
5176a6bc 150TAGS: force
453063fe 151 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
99a42820
RP
152
153clean:
3a26c0cd 154 rm -f *.[oa] *~ core *.E *.p *.ip
f259290f 155 $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)"
99a42820
RP
156
157clobber realclean: clean
158 rm -f libbfd.a TAGS
f259290f 159 $(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)"
99a42820 160
23d44ec9
JG
161# Mark everything as depending on config.status, since the timestamp on
162# sysdep.h might actually move backwards if we reconfig and relink it
163# to a different hosts/h-xxx.h file. This will force a recompile anyway.
164RECONFIG = config.status
165$(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG)
166$(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG)
167$(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG)
168$(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG)
99a42820 169
cbdc7909
JG
170# Get around a Sun Make bug in SunOS 4.1.1 with VPATH
171cpu-i386.o:cpu-i386.c
172
99a42820
RP
173saber:
174 #suppress 65 on bfd_map_over_sections
175 #suppress 66 on bfd_map_over_sections
176 #suppress 67 on bfd_map_over_sections
177 #suppress 68 on bfd_map_over_sections
178 #suppress 69 on bfd_map_over_sections
179 #suppress 70 on bfd_map_over_sections
180 #suppress 110 in bfd_map_over_sections
181 #suppress 112 in bfd_map_over_sections
182 #suppress 530
183 #suppress 590 in swap_exec_header
184 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
185 #suppress 590 in bfd_dont_truncate_arname
186 #suppress 590 on ignore
187 #suppress 590 on abfd
188 #setopt load_flags $(CFLAGS)
189 #load $(CFILES)
a5c6b4b3 190
99a42820
RP
191
192#-----------------------------------------------------------------------------
193# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
194#
195# 'VERSION' file must be present and contain a string of the form "x.y"
196#-----------------------------------------------------------------------------
197
198ver960.c: FORCE
199 rm -f ver960.c
200 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
201
202
203# This target should be invoked before building a new release.
204# 'VERSION' file must be present and contain a string of the form "x.y"
205#
206roll:
207 @V=`cat VERSION` ; \
208 MAJ=`sed 's/\..*//' VERSION` ; \
209 MIN=`sed 's/.*\.//' VERSION` ; \
210 V=$$MAJ.`expr $$MIN + 1` ; \
211 rm -f VERSION ; \
212 echo $$V >VERSION ; \
213 echo Version $$V
214
215# Dummy target to force execution of dependent targets.
216#
5176a6bc 217force:
99a42820 218
99a42820 219install:
6a469027
JG
220 cp libbfd.a $(libdir)/libbfd.a.new
221 $(RANLIB) $(libdir)/libbfd.a.new
222 mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
2bf92e47 223 cp $(INCDIR)/bfd.h $(includedir)/bfd.h
f259290f 224 $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)"
99a42820
RP
225
226# Target to uncomment host-specific lines in this makefile. Such lines must
227# have the following string beginning in column 1: #__<hostname>__#
228# Original Makefile is backed up as 'Makefile.old'.
229#
230# Invoke with: make make HOST=xxx
231#
232make:
233 -@if test $(HOST)x = x ; then \
234 echo '\aSpecify "make make HOST=???"'; \
235 exit 1; \
236 fi ; \
237 grep -s "^#The next line was generated by 'make make'" Makefile; \
238 if test $$? = 0 ; then \
239 echo "\aMakefile has already been processed with 'make make'";\
240 exit 1; \
241 fi ; \
242 mv -f Makefile Makefile.old; \
243 echo "#The next line was generated by 'make make'" >Makefile ; \
244 echo "HOST=$(HOST)" >>Makefile ; \
245 echo >>Makefile ; \
246 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
247
b7de6963 248Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 249 $(SHELL) ./config.status
a5c6b4b3
SC
250
251dep: $(CFILES)
252 mkdep $(CFLAGS) $?
6f715d66
SC
253
254
6f715d66 255
12e7087f 256headers:
b5493bc4 257 (cd $(docdir); $(MAKE) protos)
6f715d66 258 # Rebuild prototypes in bfd.h
12e7087f
JG
259 cp $(docdir)/bfd.h $(BFD_H)
260 cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
261 cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
262
263bfd.info:
b5493bc4 264 ( cd $(docdir); $(MAKE) bfd.info)
12e7087f
JG
265
266bfd.dvi:
b5493bc4 267 (cd $(docdir); $(MAKE) bfd.dvi)
12e7087f
JG
268
269bfd.ps:
b5493bc4 270 (cd $(docdir); $(MAKE) bfd.ps)
12e7087f
JG
271
272# What appears below is generated by a hacked mkdep using gcc -MM.
273
274# DO NOT DELETE THIS LINE -- mkdep uses it.
275# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
276
a26878d1
RP
277libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
278opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
279bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
280archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
281 $(INCDIR)/ar.h $(INCDIR)/ranlib.h
282targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
283cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
284archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h
12e7087f 285aout64.o : aout64.c
a26878d1
RP
286aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
287 $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
288 $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h
289sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
290 libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
291 $(INCDIR)/stab.def $(INCDIR)/ar.h
12e7087f 292demo64.o : demo64.c
3b4f1a5d 293
a26878d1
RP
294srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
295oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
296 $(INCDIR)/oasys.h liboasys.h
297ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
298 $(INCDIR)/ieee.h libieee.h
3b4f1a5d
SC
299coff-h8300.o: coff-h8300.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
300 $(INCDIR)/coff-h8300.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
23d44ec9 301format.o : format.c $(INCDIR)/bfd.h \
a26878d1 302 $(INCDIR)/obstack.h libbfd.h
23d44ec9 303section.o : section.c $(INCDIR)/bfd.h \
a26878d1 304 $(INCDIR)/obstack.h libbfd.h
23d44ec9 305core.o : core.c $(INCDIR)/bfd.h \
a26878d1 306 $(INCDIR)/obstack.h libbfd.h
23d44ec9 307syms.o : syms.c $(INCDIR)/bfd.h \
a26878d1 308 $(INCDIR)/obstack.h libbfd.h
7de245d3 309syms.o : stab-syms.c
23d44ec9 310reloc.o : reloc.c $(INCDIR)/bfd.h \
a26878d1 311 $(INCDIR)/obstack.h libbfd.h
3b4f1a5d 312
a26878d1 313trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
12e7087f 314 libbfd.h libaout.h
a26878d1
RP
315newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
316 $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
317 $(INCDIR)/ar.h libaout.h
b7de6963
JG
318i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
319 $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
320 $(INCDIR)/ar.h libaout.h
a26878d1
RP
321bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
322 $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h
12e7087f
JG
323
324# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
a26878d1 325
This page took 0.052832 seconds and 4 git commands to generate.