(1) Updated to reflect renamed commands;
[deliverable/binutils-gdb.git] / bfd / Makefile.in
CommitLineData
99a42820
RP
1#
2# Copyright (C) 1990, 1991 Free Software Foundation, Inc.
3#
4# This file is part of BFD, the Binary File Diddler.
5#
6# BFD is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 1, or (at your option)
9# any later version.
10#
11# BFD is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with BFD; see the file COPYING. If not, write to
18# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20# $Id$
21
22srcdir = .
23
24RANLIB = ranlib
25AR =
d6a554ae 26INCDIR = $(srcdir)/../include
99a42820
RP
27CSEARCH = -I$(INCDIR)
28
99a42820 29#### host and target dependent Makefile fragments come in here.
99a42820
RP
30###
31
5176a6bc
RP
32TARGETLIB = libbfd.a
33CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
99a42820
RP
34
35
726cc6ef 36BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
f7895c87 37 archures.o
99a42820 38
726cc6ef 39BFD_BACKENDS = oasys.o ieee.o srec.o sunos.o icoff.o b.out.o \
23b0b558 40 m88k-bcs.o coffswap.o ecoff.o # trad-core.o
99a42820
RP
41
42BFD_H=$(INCDIR)/bfd.h
43SYSDEP_H=$(INCDIR)/sysdep.h
44
45# C source files that correspond to .o's.
46CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
f7895c87 47 sunos.c icoff.c b.out.c srec.c oasys.c ieee.c m88k-bcs.c \
23b0b558 48 coffswap.c ecoff.c trad-core.c
99a42820 49
5176a6bc
RP
50STAGESTUFF = $(TARGETLIB) $(OFILES)
51
52all: $(TARGETLIB)
53
54OFILES = $(BFD_LIBS) $(BFD_BACKENDS)
55
56$(TARGETLIB): $(OFILES)
57 rm -f $(TARGETLIB)
58 ar clq $(TARGETLIB) $(OFILES)
59 ranlib $(TARGETLIB)
60
61stage1: force
62 - mkdir stage1
63 - mv -f $(STAGESTUFF) stage1
64
65stage2: force
66 - mkdir stage2
67 - mv -f $(STAGESTUFF) stage2
68
69stage3: force
70 - mkdir stage3
71 - mv -f $(STAGESTUFF) stage3
72
73de-stage1: force
74 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
75 - rmdir stage1
99a42820 76
5176a6bc
RP
77de-stage2: force
78 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
79 - rmdir stage2
99a42820 80
5176a6bc
RP
81de-stage3: force
82 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
83 - rmdir stage3
99a42820
RP
84
85tags etags: TAGS
86
5176a6bc 87TAGS: force
453063fe 88 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
99a42820
RP
89
90clean:
5176a6bc 91 rm -f *.[oa] *~ core *.E
99a42820
RP
92
93clobber realclean: clean
94 rm -f libbfd.a TAGS
95
96$(BFD_LIBS) $(BFD_BACKENDS): libbfd.h $(BFD_H)
97
98saber:
99 #suppress 65 on bfd_map_over_sections
100 #suppress 66 on bfd_map_over_sections
101 #suppress 67 on bfd_map_over_sections
102 #suppress 68 on bfd_map_over_sections
103 #suppress 69 on bfd_map_over_sections
104 #suppress 70 on bfd_map_over_sections
105 #suppress 110 in bfd_map_over_sections
106 #suppress 112 in bfd_map_over_sections
107 #suppress 530
108 #suppress 590 in swap_exec_header
109 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
110 #suppress 590 in bfd_dont_truncate_arname
111 #suppress 590 on ignore
112 #suppress 590 on abfd
113 #setopt load_flags $(CFLAGS)
114 #load $(CFILES)
453063fe
SC
115m88k-bcs.o : m88k-bcs.c
116ieee.o : ieee.c
117srec.o : srec.c
118oasys.o : oasys.c
99a42820
RP
119
120archive.o : archive.c libbfd.h $(BFD_H) $(SYSDEP_H)
121archures.o : archures.c $(BFD_H) $(SYSDEP_H) archures.h
122b.out.o : b.out.c libbfd.h $(BFD_H) $(SYSDEP_H) liba.out.h archures.h
f7895c87 123m88k-bcs.o : m88k-bcs.c libbfd.h $(BFD_H) $(SYSDEP_H) libcoff.h coff-code.h archures.h
99a42820
RP
124bfd.o : bfd.c libbfd.h $(BFD_H) $(SYSDEP_H)
125cache.o : cache.c libbfd.h $(BFD_H) $(SYSDEP_H)
126coff.o : coff.c
127cplus-dem.o : cplus-dem.c
128filemode.o : filemode.c
129icoff.o : icoff.c libbfd.h $(BFD_H) $(SYSDEP_H) libcoff.h coff-code.h archures.h
130libbfd.o : libbfd.c libbfd.h $(BFD_H) $(SYSDEP_H)
131misc.o : misc.c
132opncls.o : opncls.c libbfd.h $(BFD_H) $(SYSDEP_H)
133sunos.o : sunos.c libbfd.h $(BFD_H) $(SYSDEP_H) liba.out.h
134targets.o : targets.c libbfd.h $(BFD_H) $(SYSDEP_H)
135
136#-----------------------------------------------------------------------------
137# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
138#
139# 'VERSION' file must be present and contain a string of the form "x.y"
140#-----------------------------------------------------------------------------
141
142ver960.c: FORCE
143 rm -f ver960.c
144 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
145
146
147# This target should be invoked before building a new release.
148# 'VERSION' file must be present and contain a string of the form "x.y"
149#
150roll:
151 @V=`cat VERSION` ; \
152 MAJ=`sed 's/\..*//' VERSION` ; \
153 MIN=`sed 's/.*\.//' VERSION` ; \
154 V=$$MAJ.`expr $$MIN + 1` ; \
155 rm -f VERSION ; \
156 echo $$V >VERSION ; \
157 echo Version $$V
158
159# Dummy target to force execution of dependent targets.
160#
5176a6bc 161force:
99a42820 162
99a42820 163install:
99a42820
RP
164
165# Target to uncomment host-specific lines in this makefile. Such lines must
166# have the following string beginning in column 1: #__<hostname>__#
167# Original Makefile is backed up as 'Makefile.old'.
168#
169# Invoke with: make make HOST=xxx
170#
171make:
172 -@if test $(HOST)x = x ; then \
173 echo '\aSpecify "make make HOST=???"'; \
174 exit 1; \
175 fi ; \
176 grep -s "^#The next line was generated by 'make make'" Makefile; \
177 if test $$? = 0 ; then \
178 echo "\aMakefile has already been processed with 'make make'";\
179 exit 1; \
180 fi ; \
181 mv -f Makefile Makefile.old; \
182 echo "#The next line was generated by 'make make'" >Makefile ; \
183 echo "HOST=$(HOST)" >>Makefile ; \
184 echo >>Makefile ; \
185 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
186
187Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
f2e91404 188 (cd $(srcdir) ; \
b5132a6b
RP
189 ./configure +norecurse \
190 +destdir=$(destdir) \
191 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
192 $(host) +target=$(target))
This page took 0.032227 seconds and 4 git commands to generate.