]> Git Repo - binutils.git/blob - bfd/Makefile.in
Define FASCIST_FDOPEN.
[binutils.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. -I$(srcdir) -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 ctor.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 cpu-rs6000.o
48
49 BFD_BACKENDS = oasys.o ieee.o srec.o elf.o \
50         aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
51         coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
52         coff-mips.o coff-rs6000.o
53
54 OPTIONAL_BACKENDS = trad-core.o
55
56 BFD_H=$(INCDIR)/bfd.h
57
58 # C source files that correspond to .o's.
59 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
60          coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
61          oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \
62          format.c section.c core.c syms.c reloc.c init.c ctor.c \
63          coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
64         cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
65         cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c 
66
67 STAGESTUFF = $(TARGETLIB) $(OFILES)
68
69 all: $(TARGETLIB) 
70
71 # HDEPFILES comes from the host config; TDEPFILES from the target config.
72 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
73
74 $(TARGETLIB): $(OFILES)
75          rm -f $(TARGETLIB)
76          $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
77          $(RANLIB) $(TARGETLIB)
78
79 # When compiling targets.c, supply the default target info from configure.
80 targets.o: targets.c
81         $(CC) $(CFLAGS) -c $(TDEFAULTS) $<
82
83 stage1: force
84         - mkdir stage1
85         - mv -f $(STAGESTUFF) stage1
86
87 stage2: force
88         - mkdir stage2
89         - mv -f $(STAGESTUFF) stage2
90
91 stage3: force
92         - mkdir stage3
93         - mv -f $(STAGESTUFF) stage3
94
95 against=stage2
96
97 comparison: force
98         for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
99
100 de-stage1: force
101         - (cd stage1 ; mv -f $(STAGESTUFF) ..)
102         - rmdir stage1
103
104 de-stage2: force
105         - (cd stage2 ; mv -f $(STAGESTUFF) ..)
106         - rmdir stage2
107
108 de-stage3: force
109         - (cd stage3 ; mv -f $(STAGESTUFF) ..)
110         - rmdir stage3
111
112 tags etags: TAGS
113
114 TAGS: force
115         etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
116
117 clean:
118         rm -f *.[oa] *~ core *.E *.p *.ip
119
120 clobber realclean: clean
121         rm -f libbfd.a TAGS
122
123 # Mark everything as depending on config.status, since the timestamp on
124 # sysdep.h might actually move backwards if we reconfig and relink it
125 # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
126 RECONFIG = config.status
127 $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
128 $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
129 $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
130 $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
131
132 # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
133 cpu-i386.o:cpu-i386.c
134
135 saber:
136         #suppress 65 on bfd_map_over_sections 
137         #suppress 66 on bfd_map_over_sections 
138         #suppress 67 on bfd_map_over_sections 
139         #suppress 68 on bfd_map_over_sections 
140         #suppress 69 on bfd_map_over_sections 
141         #suppress 70 on bfd_map_over_sections 
142         #suppress 110 in bfd_map_over_sections 
143         #suppress 112 in bfd_map_over_sections 
144         #suppress 530 
145         #suppress 590 in swap_exec_header 
146         #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
147         #suppress 590 in bfd_dont_truncate_arname
148         #suppress 590 on ignore 
149         #suppress 590 on abfd 
150         #setopt load_flags $(CFLAGS)
151         #load $(CFILES)
152
153
154 #-----------------------------------------------------------------------------
155 #               'STANDARD' GNU/960 TARGETS BELOW THIS POINT
156 #
157 # 'VERSION' file must be present and contain a string of the form "x.y"
158 #-----------------------------------------------------------------------------
159
160 ver960.c: FORCE
161         rm -f ver960.c
162         echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
163
164
165 # This target should be invoked before building a new release.
166 # 'VERSION' file must be present and contain a string of the form "x.y"
167 #
168 roll:
169         @V=`cat VERSION`                ; \
170         MAJ=`sed 's/\..*//' VERSION`    ; \
171         MIN=`sed 's/.*\.//' VERSION`    ; \
172         V=$$MAJ.`expr $$MIN + 1`        ; \
173         rm -f VERSION                   ; \
174         echo $$V >VERSION               ; \
175         echo Version $$V
176
177 # Dummy target to force execution of dependent targets.
178 #
179 force:
180
181 install:
182         cp libbfd.a $(libdir)/libbfd.a.new
183         $(RANLIB) $(libdir)/libbfd.a.new
184         mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
185
186 # Target to uncomment host-specific lines in this makefile.  Such lines must
187 # have the following string beginning in column 1: #__<hostname>__#
188 # Original Makefile is backed up as 'Makefile.old'.
189 #
190 # Invoke with:  make make HOST=xxx
191 #
192 make:
193         -@if test $(HOST)x = x ; then \
194                 echo '\aSpecify "make make HOST=???"'; \
195                 exit 1; \
196         fi ; \
197         grep -s "^#The next line was generated by 'make make'" Makefile; \
198         if test $$? = 0 ; then  \
199                 echo "\aMakefile has already been processed with 'make make'";\
200                 exit 1; \
201         fi ; \
202         mv -f Makefile Makefile.old; \
203         echo "#The next line was generated by 'make make'"       >Makefile ; \
204         echo "HOST=$(HOST)"                                     >>Makefile ; \
205         echo                                                    >>Makefile ; \
206         sed "s/^#__$(HOST)__#//" < Makefile.old                 >>Makefile
207
208 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
209         $(SHELL) ./config.status
210
211 dep: $(CFILES)
212         mkdep $(CFLAGS) $?
213
214
215
216 headers:
217         cp $(srcdir)/bfd-in.h $(docdir)
218         cp $(srcdir)/libbfd-in.h $(docdir)
219         cp $(srcdir)/libcoff-in.h $(docdir)
220         (cd $(docdir); $(MAKE) protos)
221         # Rebuild prototypes in bfd.h
222         cp $(docdir)/bfd.h $(BFD_H)
223         cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
224         cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
225         rm -f $(docdir)/bfd-in.h 
226         rm -f $(docdir)/libbfd-in.h 
227         rm -f $(docdir)/libcoff-in.h 
228
229 bfd.info:
230         ( cd $(docdir); $(MAKE) bfd.info)
231
232 bfd.dvi:
233         (cd $(docdir); $(MAKE) bfd.dvi)
234
235 bfd.ps: 
236         (cd $(docdir); $(MAKE) bfd.ps)
237
238 # What appears below is generated by a hacked mkdep using gcc -MM.
239
240 # DO NOT DELETE THIS LINE -- mkdep uses it.
241 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
242
243 libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
244 opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
245 bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
246 archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
247   $(INCDIR)/ar.h $(INCDIR)/ranlib.h 
248 targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
249 cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
250 archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
251 coff-i386.o : coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
252   $(INCDIR)/coff-i386.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
253 aout64.o : aout64.c 
254 aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
255   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
256   $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h 
257 sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
258   libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
259   $(INCDIR)/stab.def $(INCDIR)/ar.h 
260 demo64.o : demo64.c 
261 coff-i960.o : coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
262   $(INCDIR)/coff-i960.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
263 srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
264 oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
265   $(INCDIR)/oasys.h liboasys.h 
266 ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
267   $(INCDIR)/ieee.h libieee.h 
268 coff-m68k.o : coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
269   $(INCDIR)/coff-m68k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
270 coff-a29k.o : coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
271   $(INCDIR)/coff-a29k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
272 coff-rs6000.o: coff-rs6000.c  $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
273   $(INCDIR)/coff-rs6000.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
274 format.o : format.c $(INCDIR)/bfd.h \
275   $(INCDIR)/obstack.h libbfd.h 
276 section.o : section.c $(INCDIR)/bfd.h \
277   $(INCDIR)/obstack.h libbfd.h 
278 core.o : core.c $(INCDIR)/bfd.h \
279   $(INCDIR)/obstack.h libbfd.h 
280 syms.o : syms.c $(INCDIR)/bfd.h \
281   $(INCDIR)/obstack.h libbfd.h 
282 reloc.o : reloc.c $(INCDIR)/bfd.h \
283   $(INCDIR)/obstack.h libbfd.h 
284 coff-m88k.o : coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
285   $(INCDIR)/coff-m88k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
286 coff-mips.o : coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
287   $(INCDIR)/coff-mips.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \
288   coffcode.h 
289 trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
290   libbfd.h libaout.h 
291 newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
292   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
293   $(INCDIR)/ar.h libaout.h 
294 i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
295   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
296   $(INCDIR)/ar.h libaout.h 
297 bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
298   $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h 
299
300 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
301
This page took 0.040426 seconds and 4 git commands to generate.