* coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
[deliverable/binutils-gdb.git] / opcodes / Makefile.in
1 # Makefile template for Configure for the opcodes library.
2 # Copyright (C) 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 VPATH = @srcdir@
20 srcdir = @srcdir@
21
22 prefix = @prefix@
23
24 program_transform_name = @program_transform_name@
25 exec_prefix = @exec_prefix@
26 bindir = $(exec_prefix)/bin
27 libdir = $(exec_prefix)/lib
28
29 datadir = $(prefix)/lib
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 oldincludedir =
43 docdir = $(srcdir)/doc
44
45 SHELL = /bin/sh
46
47 INSTALL = @INSTALL@
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@
49 INSTALL_DATA = @INSTALL_DATA@
50
51 AR = @AR@
52 AR_FLAGS = rc
53 CC = @CC@
54 CFLAGS = @CFLAGS@
55 MAKEINFO = makeinfo
56 RANLIB = @RANLIB@
57
58 ALLLIBS = @ALLLIBS@
59
60 PICFLAG = @PICFLAG@
61 SHLIB = @SHLIB@
62 SHLIB_CC = @SHLIB_CC@
63 SHLIB_CFLAGS = @SHLIB_CFLAGS@
64 COMMON_SHLIB = @COMMON_SHLIB@
65 SHLINK = @SHLINK@
66
67 SONAME = lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`
68
69 INCDIR = $(srcdir)/../include
70 BFDDIR = $(srcdir)/../bfd
71 CSEARCH = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR)
72 DEP = mkdep
73
74 TARGETLIB = libopcodes.a
75
76 # To circumvent a Sun make VPATH bug, each file listed here
77 # should also have a foo.o: foo.c line further along in this file.
78
79 ALL_MACHINES = a29k-dis.o alpha-dis.o h8300-dis.o h8500-dis.o \
80 $(start-sanitize-arc) \
81 arc-dis.o arc-opc.o \
82 $(end-sanitize-arc) \
83 hppa-dis.o i386-dis.o i960-dis.o m68k-dis.o m68k-opc.o \
84 m88k-dis.o mips-dis.o mips-opc.o sh-dis.o sparc-dis.o \
85 sparc-opc.o z8k-dis.o ns32k-dis.o ppc-dis.o ppc-opc.o \
86 arm-dis.o w65-dis.o
87
88 OFILES = @BFD_MACHINES@ dis-buf.o disassemble.o
89
90 FLAGS_TO_PASS = \
91 "against=$(against)" \
92 "AR=$(AR)" \
93 "AR_FLAGS=$(AR_FLAGS)" \
94 "CC=$(CC)" \
95 "CFLAGS=$(CFLAGS)" \
96 "RANLIB=$(RANLIB)" \
97 "MAKEINFO=$(MAKEINFO)" \
98 "INSTALL=$(INSTALL)" \
99 "INSTALL_DATA=$(INSTALL_DATA)" \
100 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
101
102 ALL_CFLAGS = $(CSEARCH) @HDEFINES@ $(CFLAGS)
103
104 .c.o:
105 if [ -n "$(PICFLAG)" ]; then \
106 $(CC) -c $(PICFLAG) $(ALL_CFLAGS) $< -o pic/$@; \
107 else true; fi
108 $(CC) -c $(ALL_CFLAGS) $<
109
110 # C source files that correspond to .o's.
111 CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c ns32k-dis.c ppc-dis.c
112
113 all: $(ALLLIBS)
114
115 .NOEXPORT:
116
117 installcheck check:
118
119 info:
120 clean-info:
121 install-info:
122 dvi:
123
124 # HDEPFILES comes from the host config; TDEPFILES from the target config.
125
126
127 $(TARGETLIB): $(OFILES)
128 rm -f $(TARGETLIB)
129 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
130 $(RANLIB) $(TARGETLIB)
131
132 stamp-piclist: Makefile
133 rm -f tpiclist
134 if [ -n "$(PICFLAG)" ]; then \
135 echo $(OFILES) | sed -e 's,\([^ ][^ ]*\),pic/\1,g' > tpiclist; \
136 else \
137 echo $(OFILES) > tpiclist; \
138 fi
139 $(srcdir)/../move-if-change tpiclist piclist
140 touch stamp-piclist
141
142 piclist: stamp-piclist ; @true
143
144 $(SHLIB): stamp-picdir $(OFILES) piclist
145 rm -f $(SHLIB)
146 if [ "$(COMMON_SHLIB)" != "yes" ]; then \
147 $(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) `cat piclist`; \
148 else \
149 lobjs=`cat ../libiberty/required-list ../libiberty/needed-list`; \
150 if [ -n "$(PICFLAG)" ]; then \
151 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),pic/\1,g'`; \
152 fi; \
153 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),../libiberty/\1,g'`; \
154 $(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) \
155 `sed -e 's,\([^ ][^ ]*\),../bfd/\1,g' ../bfd/piclist` \
156 `cat piclist` $$lobjs; \
157 fi
158
159 $(SHLINK): $(SHLIB)
160 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
161 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
162 ts=../bfd/$$ts; \
163 fi; \
164 if [ "$$ts" != "$(SHLIB)" ]; then \
165 rm -f $$ts; \
166 ln -sf `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $$ts; \
167 else true; fi
168 rm -f $(SHLINK)
169 ln -sf `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $(SHLINK)
170
171 # This target creates libTARGET-opcodes.so.VERSION as a symlink to
172 # libopcodes.so.VERSION. It is used on SunOS, which does not have SONAME.
173 stamp-tshlink: $(SHLIB)
174 tf=lib`echo $(SHLIB) | sed -e 's,\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
175 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
176 tf=../bfd/$$tf; \
177 fi; \
178 if [ "$$tf" != "$(SHLIB)" ]; then \
179 rm -f $$tf; \
180 ln -sf $(SHLIB) $$tf; \
181 else true; fi
182 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
183 tf=lib`echo $(TARGETLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
184 if [ "$$tf" != "$(TARGETLIB)" ]; then \
185 rm -f $$tf; \
186 ln -sf $(TARGETLIB) $$tf; \
187 else true; fi; \
188 else true; fi
189 touch stamp-tshlink
190
191 $(OFILES): stamp-picdir
192
193 disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
194 if [ -n "$(PICFLAG)" ]; then \
195 $(CC) -c @archdefs@ $(PICFLAG) $(ALL_CFLAGS) $(srcdir)/disassemble.c -o pic/disassemble.o; \
196 else true; fi
197 $(CC) -c @archdefs@ $(ALL_CFLAGS) $(srcdir)/disassemble.c
198
199 a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/a29k.h
200 dis-buf.o: dis-buf.c $(INCDIR)/dis-asm.h
201 h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h
202 h8300-dis.o: h8300-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/h8300.h
203 i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h
204 i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h
205 w65-dis.o: w65-dis.c
206 m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/floatformat.h \
207 $(INCDIR)/opcode/m68k.h
208 m68k-opc.o: m68k-opc.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/m68k.h
209 mips-dis.o: mips-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/mips.h
210 mips-opc.o: mips-opc.c $(INCDIR)/opcode/mips.h
211 ppc-dis.o: ppc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ppc.h
212 ppc-opc.o: ppc-opc.c $(INCDIR)/opcode/ppc.h
213 sparc-dis.o: sparc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/sparc.h
214 sparc-opc.o: sparc-opc.c $(INCDIR)/opcode/sparc.h
215 z8k-dis.o: z8k-dis.c z8k-opc.h $(INCDIR)/dis-asm.h
216 ns32k-dis.o: ns32k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
217 sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h
218 alpha-dis.o: alpha-dis.c alpha-opc.h $(INCDIR)/dis-asm.h
219 hppa-dis.o: hppa-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/hppa.h
220 m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/m88k.h
221 arm-dis.o: arm-dis.c arm-opc.h $(INCDIR)/dis-asm.h
222
223 tags etags: TAGS
224
225 TAGS: force
226 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
227
228 MOSTLYCLEAN = *.o core *.E *.p *.ip config.log pic/*.o
229 mostlyclean:
230 rm -rf $(MOSTLYCLEAN)
231 clean:
232 rm -f *.a $(MOSTLYCLEAN) $(SHLIB) $(SHLINK) piclist stamp-piclist
233 distclean: clean
234 rm -rf Makefile config.status TAGS config.cache config.h stamp-h \
235 pic stamp-picdir
236 clobber realclean maintainer-clean: distclean
237
238 # Mark everything as depending on config.status, since the timestamp on
239 # sysdep.h might actually move backwards if we reconfig and relink it
240 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
241 RECONFIG = config.status
242
243
244
245 # This target should be invoked before building a new release.
246 # 'VERSION' file must be present and contain a string of the form "x.y"
247 #
248 roll:
249 @V=`cat VERSION` ; \
250 MAJ=`sed 's/\..*//' VERSION` ; \
251 MIN=`sed 's/.*\.//' VERSION` ; \
252 V=$$MAJ.`expr $$MIN + 1` ; \
253 rm -f VERSION ; \
254 echo $$V >VERSION ; \
255 echo Version $$V
256
257 # Dummy target to force execution of dependent targets.
258 #
259 force:
260
261 install: $(ALLLIBS)
262 for f in $(ALLLIBS); do \
263 if [ "$$f" = "stamp-tshlink" ]; then \
264 continue; \
265 fi; \
266 tf=lib`echo $$f | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
267 rm -f $(libdir)/$$tf; \
268 if [ "$$f" = "$(SHLINK)" ]; then \
269 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
270 ln -sf $$ts $(libdir)/$$tf; \
271 elif [ "$$f" = "$(SHLIB)" ]; then \
272 $(INSTALL_PROGRAM) $$f $(libdir)/$$tf; \
273 else \
274 $(INSTALL_DATA) $$f $(libdir)/$$tf; \
275 $(RANLIB) $(libdir)/$$tf; \
276 chmod a-x $(libdir)/$$tf; \
277 fi; \
278 done
279
280 Makefile: Makefile.in config.status
281 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
282
283 config.h: stamp-h ; @true
284 stamp-h: config.in config.status
285 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
286
287 config.status : configure $(srcdir)/../bfd/configure.host $(srcdir)/../bfd/config.bfd
288 $(SHELL) config.status --recheck
289
290 dep: $(CFILES)
291 mkdep $(CFLAGS) $?
292
293 stamp-picdir:
294 if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
295 mkdir pic; \
296 else true; fi
297 touch stamp-picdir
298
299 # What appears below is generated by a hacked mkdep using gcc -MM.
300
301 # DO NOT DELETE THIS LINE -- mkdep uses it.
302 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
303
304
305 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
306
This page took 0.035914 seconds and 4 git commands to generate.