Display nop pseudo ops alongside equivalent disassembly.
[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 cgen-asm.c \
95 cgen-dis.c \
96 cgen-opc.c \
97 d10v-dis.c \
98 d10v-opc.c \
99 dis-buf.c \
100 disassemble.c \
101 h8300-dis.c \
102 h8500-dis.c \
103 hppa-dis.c \
104 i386-dis.c \
105 i960-dis.c \
106 m32r-asm.c \
107 m32r-dis.c \
108 m32r-opc.c \
109 m68k-dis.c \
110 m68k-opc.c \
111 m88k-dis.c \
112 mips-dis.c \
113 mips-opc.c \
114 mips16-opc.c \
115 m10200-dis.c \
116 m10200-opc.c \
117 m10300-dis.c \
118 m10300-opc.c \
119 ns32k-dis.c \
120 ppc-dis.c \
121 ppc-opc.c \
122 sh-dis.c \
123 sparc-dis.c \
124 sparc-opc.c \
125 w65-dis.c \
126 z8k-dis.c \
127 z8kgen.c
128
129 ALL_MACHINES = \
130 a29k-dis.o \
131 alpha-dis.o \
132 alpha-opc.o \
133 $(start-sanitize-arc) \
134 arc-dis.o \
135 arc-opc.o \
136 $(end-sanitize-arc) \
137 arm-dis.o \
138 cgen-asm.o \
139 cgen-dis.o \
140 cgen-opc.o \
141 d10v-dis.o \
142 d10v-opc.o \
143 $(start-sanitize-d30v) \
144 d30v-dis.o \
145 d30v-opc.o \
146 $(end-sanitize-d30v) \
147 h8300-dis.o \
148 h8500-dis.o \
149 hppa-dis.o \
150 i386-dis.o \
151 i960-dis.o \
152 m32r-asm.o \
153 m32r-dis.o \
154 m32r-opc.o \
155 m68k-dis.o \
156 m68k-opc.o \
157 m88k-dis.o \
158 m10200-dis.o \
159 m10200-opc.o \
160 m10300-dis.o \
161 m10300-opc.o \
162 mips-dis.o \
163 mips-opc.o \
164 mips16-opc.o \
165 ppc-dis.o \
166 ppc-opc.o \
167 ns32k-dis.o \
168 sh-dis.o \
169 sparc-dis.o \
170 sparc-opc.o \
171 $(start-sanitize-tic80) \
172 tic80-dis.o \
173 tic80-opc.o \
174 $(end-sanitize-tic80) \
175 $(start-sanitize-v850) \
176 v850-dis.o \
177 v850-opc.o \
178 $(end-sanitize-v850) \
179 w65-dis.o \
180 z8k-dis.o
181
182 OFILES = @BFD_MACHINES@ dis-buf.o disassemble.o
183
184 FLAGS_TO_PASS = \
185 "against=$(against)" \
186 "AR=$(AR)" \
187 "AR_FLAGS=$(AR_FLAGS)" \
188 "CC=$(CC)" \
189 "CFLAGS=$(CFLAGS)" \
190 "RANLIB=$(RANLIB)" \
191 "MAKEINFO=$(MAKEINFO)" \
192 "INSTALL=$(INSTALL)" \
193 "INSTALL_DATA=$(INSTALL_DATA)" \
194 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
195
196 ALL_CFLAGS = -D_GNU_SOURCE $(CSEARCH) @HDEFINES@ $(CFLAGS)
197
198 .c.o:
199 if [ -n "$(PICFLAG)" ]; then \
200 $(CC) -c $(PICFLAG) $(ALL_CFLAGS) $< -o pic/$@; \
201 else true; fi
202 $(CC) -c $(ALL_CFLAGS) $<
203
204 all: $(ALLLIBS)
205
206 .NOEXPORT:
207
208 installcheck check:
209
210 info:
211 clean-info:
212 install-info:
213 dvi:
214
215 # HDEPFILES comes from the host config; TDEPFILES from the target config.
216
217 $(TARGETLIB): $(OFILES)
218 rm -f $(TARGETLIB)
219 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
220 $(RANLIB) $(TARGETLIB)
221
222 LIBIBERTY_LISTS = ../libiberty/required-list ../libiberty/needed-list
223 BFD_PICLIST = @BFD_PICLIST@
224
225 stamp-piclist: Makefile $(LIBIBERTY_LISTS) $(BFD_PICLIST)
226 rm -f tpiclist
227 if [ -n "$(PICFLAG)" ]; then \
228 echo $(OFILES) | sed -e 's,\([^ ][^ ]*\),pic/\1,g' > tpiclist; \
229 else \
230 echo $(OFILES) > tpiclist; \
231 fi
232 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
233 lobjs=`cat $(LIBIBERTY_LISTS)`; \
234 if [ -n "$(PICFLAG)" ]; then \
235 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),pic/\1,g'`; \
236 fi; \
237 lobjs=`echo $$lobjs | sed -e 's,\([^ ][^ ]*\),../libiberty/\1,g'`; \
238 echo $$lobjs >> tpiclist; \
239 sed -e 's,\([^ ][^ ]*\),../bfd/\1,g' $(BFD_PICLIST) >> tpiclist; \
240 else true; fi
241 $(srcdir)/../move-if-change tpiclist piclist
242 touch stamp-piclist
243
244 piclist: stamp-piclist ; @true
245
246 $(SHLIB): stamp-picdir $(OFILES) piclist $(SHLIB_DEP)
247 rm -f $(SHLIB)
248 $(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) `cat piclist`
249
250 $(SHLINK): $(SHLIB)
251 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
252 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
253 ts=../bfd/$$ts; \
254 fi; \
255 if [ "$$ts" != "$(SHLIB)" ]; then \
256 rm -f $$ts; \
257 ln -s `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $$ts; \
258 else true; fi
259 rm -f $(SHLINK)
260 ln -s `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $(SHLINK)
261
262 # This target creates libTARGET-opcodes.so.VERSION as a symlink to
263 # libopcodes.so.VERSION. It is used on SunOS, which does not have SONAME.
264 stamp-tshlink: $(SHLIB)
265 tf=lib`echo $(SHLIB) | sed -e 's,\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
266 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
267 tf=../bfd/$$tf; \
268 fi; \
269 if [ "$$tf" != "$(SHLIB)" ]; then \
270 rm -f $$tf; \
271 ln -s $(SHLIB) $$tf; \
272 else true; fi
273 if [ "$(COMMON_SHLIB)" = "yes" ]; then \
274 tf=lib`echo $(TARGETLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
275 if [ "$$tf" != "$(TARGETLIB)" ]; then \
276 rm -f $$tf; \
277 ln -s $(TARGETLIB) $$tf; \
278 else true; fi; \
279 else true; fi
280 touch stamp-tshlink
281
282 $(OFILES): stamp-picdir
283
284 disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
285 if [ -n "$(PICFLAG)" ]; then \
286 $(CC) -c @archdefs@ $(PICFLAG) $(ALL_CFLAGS) $(srcdir)/disassemble.c -o pic/disassemble.o; \
287 else true; fi
288 $(CC) -c @archdefs@ $(ALL_CFLAGS) $(srcdir)/disassemble.c
289
290 # start-sanitize-tic80
291 tic80-dis.o: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
292 $(INCDIR)/opcode/tic80.h
293 tic80-opc.o: tic80-opc.c $(INCDIR)/opcode/tic80.h
294 # end-sanitize-tic80
295
296 tags etags: TAGS
297
298 TAGS: force
299 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
300
301 MOSTLYCLEAN = *.o core *.E *.p *.ip pic/*.o
302 mostlyclean:
303 rm -rf $(MOSTLYCLEAN)
304 clean:
305 rm -f *.a $(MOSTLYCLEAN) $(SHLIB) $(SHLINK) piclist stamp-piclist
306 distclean: clean
307 rm -rf Makefile config.status TAGS config.cache config.h stamp-h \
308 pic stamp-picdir config.log
309 clobber realclean maintainer-clean: distclean
310
311 # Mark everything as depending on config.status, since the timestamp on
312 # sysdep.h might actually move backwards if we reconfig and relink it
313 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
314 RECONFIG = config.status
315
316 # This target should be invoked before building a new release.
317 # 'VERSION' file must be present and contain a string of the form "x.y"
318 #
319 roll:
320 @V=`cat VERSION` ; \
321 MAJ=`sed 's/\..*//' VERSION` ; \
322 MIN=`sed 's/.*\.//' VERSION` ; \
323 V=$$MAJ.`expr $$MIN + 1` ; \
324 rm -f VERSION ; \
325 echo $$V >VERSION ; \
326 echo Version $$V
327
328 # Dummy target to force execution of dependent targets.
329 #
330 force:
331
332 install: $(ALLLIBS)
333 for f in $(ALLLIBS); do \
334 if [ "$$f" = "stamp-tshlink" ]; then \
335 continue; \
336 fi; \
337 tf=lib`echo $$f | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
338 rm -f $(libdir)/$$tf; \
339 if [ "$$f" = "$(SHLINK)" ]; then \
340 ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
341 ln -s $$ts $(libdir)/$$tf; \
342 elif [ "$$f" = "$(SHLIB)" ]; then \
343 @INSTALL_SHLIB@ \
344 else \
345 $(INSTALL_DATA) $$f $(libdir)/$$tf; \
346 $(RANLIB) $(libdir)/$$tf; \
347 chmod a-x $(libdir)/$$tf; \
348 fi; \
349 done
350
351 Makefile: Makefile.in config.status
352 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
353
354 config.h: stamp-h ; @true
355 stamp-h: config.in config.status
356 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
357
358 config.status: configure $(srcdir)/../bfd/configure.host $(srcdir)/../bfd/config.bfd $(srcdir)/../bfd/VERSION
359 $(SHELL) config.status --recheck
360
361 stamp-picdir:
362 if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
363 mkdir pic; \
364 else true; fi
365 touch stamp-picdir
366
367 # This dependency stuff is copied from BFD.
368
369 .dep: dep.sed $(CFILES) $(HFILES) config.h
370 rm -f .dep1
371 $(MAKE) DEP=$(DEP) .dep1
372 sed -f dep.sed < .dep1 > .dep
373
374 .dep1: $(CFILES)
375 rm -f .dep2 .dep2a
376 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
377 echo > .dep2a
378 $(DEP) -f .dep2a $(ALL_CFLAGS) $?
379 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
380 rm -f .dep2a
381 $(srcdir)/../move-if-change .dep2 .dep1
382
383 dep.sed: dep-in.sed config.status
384 sed <$(srcdir)/dep-in.sed >dep.sed \
385 -e 's!@BFD_H@!$(BFD_H)!' \
386 -e 's!@INCDIR@!$(INCDIR)!' \
387 -e 's!@BFDDIR@!$(BFDDIR)!' \
388 -e 's!@SRCDIR@!$(srcdir)!'
389
390 dep: .dep
391 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
392 cat .dep >> tmp-Makefile
393 $(srcdir)/../move-if-change tmp-Makefile Makefile
394
395 dep-in: .dep
396 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
397 cat .dep >> tmp-Makefile.in
398 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
399
400 .PHONY: dep dep-in
401
402 # What appears below is generated by a hacked mkdep using gcc -MM.
403
404 # DO NOT DELETE THIS LINE -- mkdep uses it.
405 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
406 a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
407 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
408 alpha-dis.o: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
409 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
410 alpha-opc.o: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
411 $(BFD_H)
412 arm-dis.o: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h \
413 arm-opc.h
414 cgen-asm.o: cgen-asm.c config.h $(INCDIR)/ansidecl.h \
415 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/opcode/cgen.h
416 cgen-dis.o: cgen-dis.c config.h $(INCDIR)/ansidecl.h \
417 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/opcode/cgen.h
418 cgen-opc.o: cgen-opc.c config.h $(INCDIR)/ansidecl.h \
419 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/opcode/cgen.h
420 d10v-dis.o: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
421 $(INCDIR)/dis-asm.h $(BFD_H)
422 d10v-opc.o: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
423 dis-buf.o: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
424 $(BFD_H)
425 disassemble.o: disassemble.c $(INCDIR)/ansidecl.h $(INCDIR)/dis-asm.h \
426 $(BFD_H)
427 h8300-dis.o: h8300-dis.c $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h \
428 $(BFD_H) $(INCDIR)/ansidecl.h
429 h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
430 $(BFD_H) $(INCDIR)/ansidecl.h
431 hppa-dis.o: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
432 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
433 i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
434 $(INCDIR)/ansidecl.h sysdep.h config.h
435 i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
436 $(INCDIR)/ansidecl.h
437 m32r-asm.o: m32r-asm.c $(INCDIR)/ansidecl.h $(BFD_H) \
438 m32r-opc.h $(INCDIR)/opcode/cgen.h
439 m32r-dis.o: m32r-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/dis-asm.h \
440 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
441 m32r-opc.o: m32r-opc.c config.h $(INCDIR)/ansidecl.h \
442 $(INCDIR)/libiberty.h $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
443 m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
444 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
445 m68k-opc.o: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
446 m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
447 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
448 mips-dis.o: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
449 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
450 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
451 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
452 mips-opc.o: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
453 mips16-opc.o: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
454 m10200-dis.o: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
455 $(INCDIR)/dis-asm.h $(BFD_H)
456 m10200-opc.o: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
457 m10300-dis.o: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
458 $(INCDIR)/dis-asm.h $(BFD_H)
459 m10300-opc.o: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
460 ns32k-dis.o: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
461 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
462 ppc-dis.o: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
463 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
464 ppc-opc.o: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
465 sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
466 $(INCDIR)/ansidecl.h
467 sparc-dis.o: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
468 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
469 $(BFD_H) $(INCDIR)/libiberty.h
470 sparc-opc.o: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
471 w65-dis.o: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
472 $(BFD_H) $(INCDIR)/ansidecl.h
473 z8k-dis.o: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
474 $(BFD_H) z8k-opc.h
475 z8kgen.o: z8kgen.c sysdep.h config.h
476 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.054997 seconds and 4 git commands to generate.