* Makefile.in: Rename XDEPFILES.
[deliverable/binutils-gdb.git] / bfd / Makefile.in
1 # Makefile template for Configure for the BFD library.
2 # Copyright (C) 1990, 1991 Free Software Foundation, Inc.
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
8 # it under the terms of the GNU General Public License as published by
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,
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.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 # $Id$
22
23 srcdir = .
24 destdir = /usr/local
25 libdir = $(destdir)/H-$(host_alias)/T-independent/lib
26 docdir = $(srcdir)/doc
27
28 RANLIB = ranlib
29 AR = ar
30 AR_FLAGS = clq
31 INCDIR = $(srcdir)/../include
32 CSEARCH = -I$(INCDIR)
33 DEP = mkdep
34
35
36 #### host and target dependent Makefile fragments come in here.
37 ###
38
39 TARGETLIB = libbfd.a
40 CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
41
42
43 BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
44 archures.o core.o section.o format.o syms.o reloc.o init.o
45
46 BFD_MACHINES=cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
47 cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o
48
49 BFD_BACKENDS = oasys.o ieee.o srec.o \
50 aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
51 icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o elf.o
52
53
54 OPTIONAL_BACKENDS = trad-core.o
55
56 BFD_H=$(INCDIR)/bfd.h
57 SYSDEP_H=$(INCDIR)/sysdep.h
58
59 # C source files that correspond to .o's.
60 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
61 i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \
62 oasys.c ieee.c m68kcoff.c amdcoff.c \
63 format.c section.c core.c syms.c reloc.c init.c \
64 m88k-bcs.c ecoff.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
65 cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
66 cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.o
67
68 STAGESTUFF = $(TARGETLIB) $(OFILES)
69
70 all: $(TARGETLIB)
71
72 # HDEPFILES comes from the host config; TDEPFILES from the target config.
73 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
74
75 $(TARGETLIB): $(OFILES)
76 rm -f $(TARGETLIB)
77 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
78 $(RANLIB) $(TARGETLIB)
79
80 stage1: force
81 - mkdir stage1
82 - mv -f $(STAGESTUFF) stage1
83
84 stage2: force
85 - mkdir stage2
86 - mv -f $(STAGESTUFF) stage2
87
88 stage3: force
89 - mkdir stage3
90 - mv -f $(STAGESTUFF) stage3
91
92 against=stage2
93
94 comparison: force
95 for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
96
97 de-stage1: force
98 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
99 - rmdir stage1
100
101 de-stage2: force
102 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
103 - rmdir stage2
104
105 de-stage3: force
106 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
107 - rmdir stage3
108
109 tags etags: TAGS
110
111 TAGS: force
112 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
113
114 clean:
115 rm -f *.[oa] *~ core *.E *.p *.ip
116
117 clobber realclean: clean
118 rm -f libbfd.a TAGS
119
120 $(BFD_LIBS) $(BFD_BACKENDS) $(OPTIONAL_BACKENDS): libbfd.h $(BFD_H)
121
122 saber:
123 #suppress 65 on bfd_map_over_sections
124 #suppress 66 on bfd_map_over_sections
125 #suppress 67 on bfd_map_over_sections
126 #suppress 68 on bfd_map_over_sections
127 #suppress 69 on bfd_map_over_sections
128 #suppress 70 on bfd_map_over_sections
129 #suppress 110 in bfd_map_over_sections
130 #suppress 112 in bfd_map_over_sections
131 #suppress 530
132 #suppress 590 in swap_exec_header
133 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
134 #suppress 590 in bfd_dont_truncate_arname
135 #suppress 590 on ignore
136 #suppress 590 on abfd
137 #setopt load_flags $(CFLAGS)
138 #load $(CFILES)
139
140
141 #-----------------------------------------------------------------------------
142 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
143 #
144 # 'VERSION' file must be present and contain a string of the form "x.y"
145 #-----------------------------------------------------------------------------
146
147 ver960.c: FORCE
148 rm -f ver960.c
149 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
150
151
152 # This target should be invoked before building a new release.
153 # 'VERSION' file must be present and contain a string of the form "x.y"
154 #
155 roll:
156 @V=`cat VERSION` ; \
157 MAJ=`sed 's/\..*//' VERSION` ; \
158 MIN=`sed 's/.*\.//' VERSION` ; \
159 V=$$MAJ.`expr $$MIN + 1` ; \
160 rm -f VERSION ; \
161 echo $$V >VERSION ; \
162 echo Version $$V
163
164 # Dummy target to force execution of dependent targets.
165 #
166 force:
167
168 install:
169 cp libbfd.a $(libdir)/libbfd.a.new
170 $(RANLIB) $(libdir)/libbfd.a.new
171 mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
172
173 # Target to uncomment host-specific lines in this makefile. Such lines must
174 # have the following string beginning in column 1: #__<hostname>__#
175 # Original Makefile is backed up as 'Makefile.old'.
176 #
177 # Invoke with: make make HOST=xxx
178 #
179 make:
180 -@if test $(HOST)x = x ; then \
181 echo '\aSpecify "make make HOST=???"'; \
182 exit 1; \
183 fi ; \
184 grep -s "^#The next line was generated by 'make make'" Makefile; \
185 if test $$? = 0 ; then \
186 echo "\aMakefile has already been processed with 'make make'";\
187 exit 1; \
188 fi ; \
189 mv -f Makefile Makefile.old; \
190 echo "#The next line was generated by 'make make'" >Makefile ; \
191 echo "HOST=$(HOST)" >>Makefile ; \
192 echo >>Makefile ; \
193 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
194
195 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
196 $(SHELL) ./config.status
197
198 dep: $(CFILES)
199 mkdep $(CFLAGS) $?
200
201
202
203 headers:
204 cp $(srcdir)/bfd-in.h $(docdir)
205 cp $(srcdir)/libbfd-in.h $(docdir)
206 cp $(srcdir)/libcoff-in.h $(docdir)
207 (cd $(docdir); $(MAKE) protos)
208 # Rebuild prototypes in bfd.h
209 cp $(docdir)/bfd.h $(BFD_H)
210 cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
211 cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
212 rm -f $(docdir)/bfd-in.h
213 rm -f $(docdir)/libbfd-in.h
214 rm -f $(docdir)/libcoff-in.h
215
216 bfd.info:
217 ( cd $(docdir); $(MAKE) bfd.info)
218
219 bfd.dvi:
220 (cd $(docdir); $(MAKE) bfd.dvi)
221
222 bfd.ps:
223 (cd $(docdir); $(MAKE) bfd.ps)
224
225 # What appears below is generated by a hacked mkdep using gcc -MM.
226
227 # DO NOT DELETE THIS LINE -- mkdep uses it.
228 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
229
230 libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
231 opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
232 bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
233 archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
234 $(INCDIR)/ar.h $(INCDIR)/ranlib.h
235 targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
236 cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
237 archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h
238 i386coff.o : i386coff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
239 $(INCDIR)/i386coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
240 aout64.o : aout64.c
241 aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
242 $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
243 $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h
244 sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
245 libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
246 $(INCDIR)/stab.def $(INCDIR)/ar.h
247 demo64.o : demo64.c
248 icoff.o : icoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
249 $(INCDIR)/intel-coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
250 srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h
251 oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
252 $(INCDIR)/oasys.h liboasys.h
253 ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
254 $(INCDIR)/ieee.h libieee.h
255 m68kcoff.o : m68kcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
256 $(INCDIR)/m68kcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
257 amdcoff.o : amdcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
258 $(INCDIR)/amdcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
259 format.o : format.c $(INCDIR)/sysdep.h $(INCDIR)/bfd.h \
260 $(INCDIR)/obstack.h libbfd.h
261 section.o : section.c $(INCDIR)/sysdep.h $(INCDIR)/bfd.h \
262 $(INCDIR)/obstack.h libbfd.h
263 core.o : core.c $(INCDIR)/sysdep.h $(INCDIR)/bfd.h \
264 $(INCDIR)/obstack.h libbfd.h
265 syms.o : syms.c $(INCDIR)/sysdep.h $(INCDIR)/bfd.h \
266 $(INCDIR)/obstack.h libbfd.h
267 reloc.o : reloc.c $(INCDIR)/sysdep.h $(INCDIR)/bfd.h \
268 $(INCDIR)/obstack.h libbfd.h
269 m88k-bcs.o : m88k-bcs.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
270 $(INCDIR)/m88k-bcs.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h
271 ecoff.o : ecoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
272 $(INCDIR)/ecoff.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \
273 coffcode.h
274 trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
275 libbfd.h libaout.h
276 newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
277 $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
278 $(INCDIR)/ar.h libaout.h
279 i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
280 $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
281 $(INCDIR)/ar.h libaout.h
282 bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
283 $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h
284
285 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
286
This page took 0.043276 seconds and 5 git commands to generate.