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