1 # Makefile template for Configure for the opcodes library.
2 # Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
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.
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.
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.
24 "{o}" \Option-f : "{s}"
26 # Default rule that puts each file into separate segment.
29 {CC} {DepDir}{Default}.c {ALL_CFLAGS} {SymOptions} -s {Default} -o {TargDir}{Default}.c.o
38 exec_prefix = {prefix}
39 bindir = {exec_prefix}:bin
40 libdir = {exec_prefix}:lib
42 datadir = {prefix}:lib
44 man1dir = {mandir}:man1
45 man2dir = {mandir}:man2
46 man3dir = {mandir}:man3
47 man4dir = {mandir}:man4
48 man5dir = {mandir}:man5
49 man6dir = {mandir}:man6
50 man7dir = {mandir}:man7
51 man8dir = {mandir}:man8
52 man9dir = {mandir}:man9
53 infodir = {prefix}:info
54 includedir = {prefix}:include
61 INSTALL_PROGRAM = {INSTALL}
62 INSTALL_DATA = {INSTALL}
71 INCDIR = "{topsrcdir}"include
72 BFDDIR = "{topsrcdir}"bfd
73 CSEARCH = -i {INCDIR},{INCDIR}:,{BFDDIR}:,::bfd:,"{INCDIR}":mpw:,::extra-include:
76 ALL_CFLAGS = {CSEARCH} {ARCHDEFS}
78 TARGETLIB = libopcodes.o
80 # To circumvent a Sun make VPATH bug, each file listed here
81 # should also have a foo.o: foo.c line further along in this file.
83 ALL_MACHINES = a29k-dis.o alpha-dis.o h8300-dis.o h8500-dis.o ¶
84 hppa-dis.o i386-dis.o i960-dis.o m68881-ext.o m68k-dis.o ¶
85 m88k-dis.o mips-dis.o mips-opc.o sh-dis.o sparc-dis.o ¶
88 # BFD_MACHINES is set by configure.in.
90 OFILES = {BFD_MACHINES} "{o}"dis-buf.c.o "{o}"disassemble.c.o
92 #### host and target dependent Makefile fragments come in here.
95 FLAGS_TO_PASS = \Option-d
96 "against={against}" \Option-d
98 "AR_FLAGS={AR_FLAGS}" \Option-d
100 "CFLAGS={CFLAGS}" \Option-d
101 "RANLIB={RANLIB}" \Option-d
102 "MAKEINFO={MAKEINFO}" \Option-d
103 "INSTALL={INSTALL}" \Option-d
104 "INSTALL_DATA={INSTALL_DATA}" \Option-d
105 "INSTALL_PROGRAM={INSTALL_PROGRAM}" \Option-d
109 # C source files that correspond to .o's.
110 CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
112 STAGESTUFF = {TARGETLIB} {OFILES}
114 all \Option-f {TARGETLIB}
116 # HDEPFILES comes from the host config; TDEPFILES from the target config.
119 {TARGETLIB} \Option-f {OFILES}
121 Lib -o {TARGETLIB} {OFILES}
122 # {RANLIB} {TARGETLIB}
124 "{o}"disassemble.c.o \Option-f "{s}"disassemble.c {INCDIR}:dis-asm.h
126 "{o}"a29k-dis.o \Option-f "{s}"a29k-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:a29k.h
127 "{o}"dis-buf.c.o \Option-f "{s}"dis-buf.c {INCDIR}:dis-asm.h
128 "{o}"h8500-dis.o \Option-f "{s}"h8500-dis.c h8500-opc.h {INCDIR}:dis-asm.h
129 "{o}"h8300-dis.o \Option-f "{s}"h8300-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:h8300.h
130 "{o}"i386-dis.o \Option-f "{s}"i386-dis.c {INCDIR}:dis-asm.h
131 "{o}"i960-dis.o \Option-f "{s}"i960-dis.c {INCDIR}:dis-asm.h
132 "{o}"m68881-ext.o \Option-f "{s}"m68881-ext.c {INCDIR}:ieee-float.h
133 "{o}"m68k-dis.o \Option-f "{s}"m68k-dis.c {INCDIR}:dis-asm.h {INCDIR}:ieee-float.h \Option-d
134 {INCDIR}:opcode:m68k.h
135 "{o}"mips-dis.c.o \Option-f "{s}"mips-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:mips.h
136 "{o}"mips-opc.c.o \Option-f "{s}"mips-opc.c {INCDIR}:opcode:mips.h
137 "{o}"sparc-dis.o \Option-f "{s}"sparc-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:sparc.h
138 "{o}"sparc-opc.o \Option-f "{s}"sparc-opc.c {INCDIR}:opcode:sparc.h
139 "{o}"z8k-dis.o \Option-f "{s}"z8k-dis.c z8k-opc.h {INCDIR}:dis-asm.h
140 "{o}"sh-dis.o \Option-f "{s}"sh-dis.c sh-opc.h {INCDIR}:dis-asm.h
141 "{o}"alpha-dis.o \Option-f "{s}"alpha-dis.c alpha-opc.h {INCDIR}:dis-asm.h
142 "{o}"hppa-dis.o \Option-f "{s}"hppa-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:hppa.h
143 "{o}"m88k-dis.o \Option-f "{s}"m88k-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:m88k.h
145 # Mark everything as depending on config.status, since the timestamp on
146 # sysdep.h might actually move backwards if we reconfig and relink it
147 # to a different hosts:h-xxx.h file. This will force a recompile anyway.
148 RECONFIG = config.status
150 # Dummy target to force execution of dependent targets.
155 # {INSTALL_DATA} {TARGETLIB} {libdir}:libopcodes.a
156 # {RANLIB} {libdir}:libopcodes.a
158 #Makefile \Option-f {srcdir}:Makefile.in {host_makefile_frag} {target_makefile_frag}
159 # {SHELL} .:config.status
161 dep \Option-f {CFILES}
165 # What appears below is generated by a hacked mkdep using gcc -MM.
167 # DO NOT DELETE THIS LINE -- mkdep uses it.
168 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
171 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY