* Makefile.in: Rebuild dependencies.
[deliverable/binutils-gdb.git] / opcodes / Makefile.in
1 # Makefile template for Configure for the opcodes library.
2 # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997
3 # Free Software Foundation, Inc.
4 # Written by Cygnus Support.
5 #
6 # This program 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 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program 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 this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 VPATH = @srcdir@
21 srcdir = @srcdir@
22
23 prefix = @prefix@
24
25 program_transform_name = @program_transform_name@
26 exec_prefix = @exec_prefix@
27 bindir = @bindir@
28 libdir = @libdir@
29
30 datadir = @datadir@
31 mandir = @mandir@
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
34 man3dir = $(mandir)/man3
35 man4dir = $(mandir)/man4
36 man5dir = $(mandir)/man5
37 man6dir = $(mandir)/man6
38 man7dir = $(mandir)/man7
39 man8dir = $(mandir)/man8
40 man9dir = $(mandir)/man9
41 infodir = @infodir@
42 includedir = @includedir@
43
44 SHELL = /bin/sh
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49
50 AR = @AR@
51 AR_FLAGS = rc
52 CC = @CC@
53 CFLAGS = @CFLAGS@
54 MAKEINFO = makeinfo
55 RANLIB = @RANLIB@
56
57 ALLLIBS = @ALLLIBS@
58
59 PICFLAG = @PICFLAG@
60 SHLIB = @SHLIB@
61 SHLIB_CC = @SHLIB_CC@
62 SHLIB_CFLAGS = @SHLIB_CFLAGS@
63 COMMON_SHLIB = @COMMON_SHLIB@
64 SHLIB_DEP = @SHLIB_DEP@
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 # This is where bfd.h lives.
77 BFD_H = ../bfd/bfd.h
78
79 # Header files.
80 HFILES = \
81 arm-opc.h \
82 h8500-opc.h \
83 sh-opc.h \
84 sysdep.h \
85 w65-opc.h \
86 z8k-opc.h
87
88 # C source files that correspond to .o's.
89 CFILES = \
90 a29k-dis.c \
91 alpha-dis.c \
92 alpha-opc.c \
93 arm-dis.c \
94 d10v-dis.c \
95 d10v-opc.c \
96 dis-buf.c \
97 disassemble.c \
98 h8300-dis.c \
99 h8500-dis.c \
100 hppa-dis.c \
101 i386-dis.c \
102 i960-dis.c \
103 m68k-dis.c \
104 m68k-opc.c \
105 m88k-dis.c \
106 mips-dis.c \
107 mips-opc.c \
108 mips16-opc.c \
109 m10200-dis.c \
110 m10200-opc.c \
111 m10300-dis.c \
112 m10300-opc.c \
113 ns32k-dis.c \
114 ppc-dis.c \
115 ppc-opc.c \
116 sh-dis.c \
117 sparc-dis.c \
118 sparc-opc.c \
119 w65-dis.c \
120 z8k-dis.c \
121 z8kgen.c
122
123 ALL_MACHINES = \
124 a29k-dis.o \
125 alpha-dis.o \
126 alpha-opc.o \
127 $(start-sanitize-arc) \
128 arc-dis.o \
129 arc-opc.o \
130 $(end-sanitize-arc) \
131 arm-dis.o \
132 d10v-dis.o \
133 d10v-opc.o \
134 $(start-sanitize-d30v) \
135 d30v-dis.o \
136 d30v-opc.o \
137 $(end-sanitize-d30v) \
138 h8300-dis.o \
139 h8500-dis.o \
140 hppa-dis.o \
141 i386-dis.o \
142 i960-dis.o \
143 m68k-dis.o \
144 m68k-opc.o \
145 m88k-dis.o \
146 m10200-dis.o \
147 m10200-opc.o \
148 m10300-dis.o \
149 m10300-opc.o \
150 mips-dis.o \
151 mips-opc.o \
152 mips16-opc.o \
153 ppc-dis.o \
154 ppc-opc.o \
155 ns32k-dis.o \
156 sh-dis.o \
157 sparc-dis.o \
158 sparc-opc.o \
159 $(start-sanitize-tic80) \
160 tic80-dis.o \
161 tic80-opc.o \
162 $(end-sanitize-tic80) \
163 $(start-sanitize-v850) \
164 v850-dis.o \
165 v850-opc.o \
166 $(end-sanitize-v850) \
167 w65-dis.o \
168 z8k-dis.o
169
170 OFILES = @BFD_MACHINES@ dis-buf.o disassemble.o
171
172 FLAGS_TO_PASS = \
173 "against=$(against)" \
174 "AR=$(AR)" \
175 "AR_FLAGS=$(AR_FLAGS)" \
176 "CC=$(CC)" \
177 "CFLAGS=$(CFLAGS)" \
178 "RANLIB=$(RANLIB)" \
179 "MAKEINFO=$(MAKEINFO)" \
180 "INSTALL=$(INSTALL)" \
181 "INSTALL_DATA=$(INSTALL_DATA)" \
182 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
183
184 ALL_CFLAGS = -D_GNU_SOURCE $(CSEARCH) @HDEFINES@ $(CFLAGS)
185
186 .c.o:
187 if [ -n "$(PICFLAG)" ]; then \
188 $(CC) -c $(PICFLAG) $(ALL_CFLAGS) $< -o pic/$@; \
189 else true; fi
190 $(CC) -c $(ALL_CFLAGS) $<
191
192 all: $(ALLLIBS)
193
194 .NOEXPORT:
195
196 installcheck check:
197
198 info:
199 clean-info:
200 install-info:
201 dvi:
202
203 # HDEPFILES comes from the host config; TDEPFILES from the target config.
204
205 $(TARGETLIB): $(OFILES)
206 rm -f $(TARGETLIB)
207 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
208 $(RANLIB) $(TARGETLIB)
209
210 LIBIBERTY_LISTS = ../libiberty/required-list ../libiberty/needed-list
211 BFD_PICLIST = @BFD_PICLIST@
212
213 stamp-piclist: Makefile $(LIBIBERTY_LISTS) $(BFD_PICLIST)
214 rm -f tpiclist
215 if [ -n "$(PICFLAG)" ]; then \
216 echo $(OFILES) | sed -e 's,\([^ ][^ ]*\),pic/\1,g' > tpiclist; \
217 else \
218 echo $(OFILES) > tpiclist; \
219 fi
220 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
221 lobjs=`cat $(LIBIBERTY_LISTS)`; \
222 if [ -n "$(PICFLAG)" ]; then \
223 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),pic/\1,g'`; \
224 fi; \
225 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),../libiberty/\1,g'`; \
226 echo $$lobjs >> tpiclist; \
227 sed -e 's,\([^ ][^ ]*\),../bfd/\1,g' $(BFD_PICLIST) >> tpiclist; \
228 else true; fi
229 $(srcdir)/../move-if-change tpiclist piclist
230 touch stamp-piclist
231
232 piclist: stamp-piclist ; @true
233
234 $(SHLIB): stamp-picdir $(OFILES) piclist $(SHLIB_DEP)
235 rm -f $(SHLIB)
236 $(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) `cat piclist`
237
238 $(SHLINK): $(SHLIB)
239 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
240 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
241 ts=../bfd/$$ts; \
242 fi; \
243 if [ "$$ts" != "$(SHLIB)" ]; then \
244 rm -f $$ts; \
245 ln -s `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $$ts; \
246 else true; fi
247 rm -f $(SHLINK)
248 ln -s `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $(SHLINK)
249
250 # This target creates libTARGET-opcodes.so.VERSION as a symlink to
251 # libopcodes.so.VERSION. It is used on SunOS, which does not have SONAME.
252 stamp-tshlink: $(SHLIB)
253 tf=lib`echo $(SHLIB) | sed -e 's,\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
254 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
255 tf=../bfd/$$tf; \
256 fi; \
257 if [ "$$tf" != "$(SHLIB)" ]; then \
258 rm -f $$tf; \
259 ln -s $(SHLIB) $$tf; \
260 else true; fi
261 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
262 tf=lib`echo $(TARGETLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
263 if [ "$$tf" != "$(TARGETLIB)" ]; then \
264 rm -f $$tf; \
265 ln -s $(TARGETLIB) $$tf; \
266 else true; fi; \
267 else true; fi
268 touch stamp-tshlink
269
270 $(OFILES): stamp-picdir
271
272 disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
273 if [ -n "$(PICFLAG)" ]; then \
274 $(CC) -c @archdefs@ $(PICFLAG) $(ALL_CFLAGS) $(srcdir)/disassemble.c -o pic/disassemble.o; \
275 else true; fi
276 $(CC) -c @archdefs@ $(ALL_CFLAGS) $(srcdir)/disassemble.c
277
278 # start-sanitize-tic80
279 tic80-dis.o: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
280 $(INCDIR)/opcode/tic80.h
281 tic80-opc.o: tic80-opc.c $(INCDIR)/opcode/tic80.h
282 # end-sanitize-tic80
283
284 tags etags: TAGS
285
286 TAGS: force
287 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
288
289 MOSTLYCLEAN = *.o core *.E *.p *.ip pic/*.o
290 mostlyclean:
291 rm -rf $(MOSTLYCLEAN)
292 clean:
293 rm -f *.a $(MOSTLYCLEAN) $(SHLIB) $(SHLINK) piclist stamp-piclist
294 distclean: clean
295 rm -rf Makefile config.status TAGS config.cache config.h stamp-h \
296 pic stamp-picdir config.log
297 clobber realclean maintainer-clean: distclean
298
299 # Mark everything as depending on config.status, since the timestamp on
300 # sysdep.h might actually move backwards if we reconfig and relink it
301 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
302 RECONFIG = config.status
303
304 # This target should be invoked before building a new release.
305 # 'VERSION' file must be present and contain a string of the form "x.y"
306 #
307 roll:
308 @V=`cat VERSION` ; \
309 MAJ=`sed 's/\..*//' VERSION` ; \
310 MIN=`sed 's/.*\.//' VERSION` ; \
311 V=$$MAJ.`expr $$MIN + 1` ; \
312 rm -f VERSION ; \
313 echo $$V >VERSION ; \
314 echo Version $$V
315
316 # Dummy target to force execution of dependent targets.
317 #
318 force:
319
320 install: $(ALLLIBS)
321 for f in $(ALLLIBS); do \
322 if [ "$$f" = "stamp-tshlink" ]; then \
323 continue; \
324 fi; \
325 tf=lib`echo $$f | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
326 rm -f $(libdir)/$$tf; \
327 if [ "$$f" = "$(SHLINK)" ]; then \
328 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
329 ln -s $$ts $(libdir)/$$tf; \
330 elif [ "$$f" = "$(SHLIB)" ]; then \
331 @INSTALL_SHLIB@ \
332 else \
333 $(INSTALL_DATA) $$f $(libdir)/$$tf; \
334 $(RANLIB) $(libdir)/$$tf; \
335 chmod a-x $(libdir)/$$tf; \
336 fi; \
337 done
338
339 Makefile: Makefile.in config.status
340 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
341
342 config.h: stamp-h ; @true
343 stamp-h: config.in config.status
344 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
345
346 config.status: configure $(srcdir)/../bfd/configure.host $(srcdir)/../bfd/config.bfd $(srcdir)/../bfd/VERSION
347 $(SHELL) config.status --recheck
348
349 stamp-picdir:
350 if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
351 mkdir pic; \
352 else true; fi
353 touch stamp-picdir
354
355 # This dependency stuff is copied from BFD.
356
357 .dep: dep.sed $(CFILES) $(HFILES) config.h
358 rm -f .dep1
359 $(MAKE) DEP=$(DEP) .dep1
360 sed -f dep.sed < .dep1 > .dep
361
362 .dep1: $(CFILES)
363 rm -f .dep2 .dep2a
364 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
365 echo > .dep2a
366 $(DEP) -f .dep2a $(ALL_CFLAGS) $?
367 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
368 rm -f .dep2a
369 $(srcdir)/../move-if-change .dep2 .dep1
370
371 dep.sed: dep-in.sed config.status
372 sed <$(srcdir)/dep-in.sed >dep.sed \
373 -e 's!@BFD_H@!$(BFD_H)!' \
374 -e 's!@INCDIR@!$(INCDIR)!' \
375 -e 's!@BFDDIR@!$(BFDDIR)!' \
376 -e 's!@SRCDIR@!$(srcdir)!'
377
378 dep: .dep
379 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
380 cat .dep >> tmp-Makefile
381 $(srcdir)/../move-if-change tmp-Makefile Makefile
382
383 dep-in: .dep
384 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
385 cat .dep >> tmp-Makefile.in
386 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
387
388 .PHONY: dep dep-in
389
390 # What appears below is generated by a hacked mkdep using gcc -MM.
391
392 # DO NOT DELETE THIS LINE -- mkdep uses it.
393 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
394 a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
395 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
396 alpha-dis.o: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
397 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
398 alpha-opc.o: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
399 $(BFD_H)
400 arm-dis.o: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h \
401 arm-opc.h
402 d10v-dis.o: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
403 $(INCDIR)/dis-asm.h $(BFD_H)
404 d10v-opc.o: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
405 dis-buf.o: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
406 $(BFD_H)
407 disassemble.o: disassemble.c $(INCDIR)/ansidecl.h $(INCDIR)/dis-asm.h \
408 $(BFD_H)
409 h8300-dis.o: h8300-dis.c $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h \
410 $(BFD_H) $(INCDIR)/ansidecl.h
411 h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
412 $(BFD_H) $(INCDIR)/ansidecl.h
413 hppa-dis.o: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
414 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
415 i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
416 $(INCDIR)/ansidecl.h sysdep.h config.h
417 i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
418 $(INCDIR)/ansidecl.h
419 m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
420 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
421 m68k-opc.o: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
422 m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
423 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
424 mips-dis.o: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
425 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
426 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
427 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
428 mips-opc.o: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
429 mips16-opc.o: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
430 m10200-dis.o: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
431 $(INCDIR)/dis-asm.h $(BFD_H)
432 m10200-opc.o: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
433 m10300-dis.o: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
434 $(INCDIR)/dis-asm.h $(BFD_H)
435 m10300-opc.o: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
436 ns32k-dis.o: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
437 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
438 ppc-dis.o: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
439 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
440 ppc-opc.o: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
441 sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
442 $(INCDIR)/ansidecl.h
443 sparc-dis.o: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
444 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
445 $(BFD_H) $(INCDIR)/libiberty.h
446 sparc-opc.o: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
447 w65-dis.o: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
448 $(BFD_H) $(INCDIR)/ansidecl.h
449 z8k-dis.o: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
450 $(BFD_H) z8k-opc.h
451 z8kgen.o: z8kgen.c sysdep.h config.h
452 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.039623 seconds and 4 git commands to generate.