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