Mon Jan 3 11:44:29 1994 Stan Shebs (shebs@andros.cygnus.com)
[external/binutils.git] / opcodes / mpw-make.in
1 #    Makefile template for Configure for the opcodes library.
2 #    Copyright (C) 1990, 1991, 1992 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., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 s = "{srcdir}"
20 o = :
21
22 CC = C -d MPW_C
23
24 "{o}" Ä : "{s}"
25
26 # Default rule that puts each file into separate segment.
27
28 .c.o  Ä .c
29    {CC}  {DepDir}{Default}.c {ALL_CFLAGS} {SymOptions} -s {Default} -o {TargDir}{Default}.c.o
30
31 HDEFINES =
32 TDEFINES =
33 CSWITCHES =
34 SymOptions =
35
36 prefix = :usr:local
37
38 exec_prefix = {prefix}
39 bindir = {exec_prefix}:bin
40 libdir = {exec_prefix}:lib
41
42 datadir = {prefix}:lib
43 mandir = {prefix}:man
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
55 oldincludedir =
56 docdir = {srcdir}:doc
57
58 SHELL = :bin:sh
59
60 INSTALL = install -c
61 INSTALL_PROGRAM = {INSTALL}
62 INSTALL_DATA = {INSTALL}
63
64 AR = ar
65 AR_FLAGS = qc
66 CFLAGS = -g
67 BISON = bison
68 MAKEINFO = makeinfo
69 RANLIB = ranlib
70
71 INCDIR = "{topsrcdir}"include
72 BFDDIR = "{topsrcdir}"bfd
73 CSEARCH =  -i {INCDIR},{INCDIR}:,{BFDDIR}:,::bfd:
74 DEP = mkdep
75
76 ALL_CFLAGS =  -mc68020 -mc68881 -model far {CSEARCH}
77
78 TARGETLIB = libopcodes.o
79
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.
82
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 ¶
86         sparc-opc.o z8k-dis.o
87
88 # BFD_MACHINES is set by configure.in.
89
90 BFD_MACHINES = "{o}"mips-dis.c.o "{o}"mips-opc.c.o
91
92 OFILES = {BFD_MACHINES} "{o}"dis-buf.c.o
93
94 #### host and target dependent Makefile fragments come in here.
95 ###
96
97 FLAGS_TO_PASS = ¶
98         "against={against}" ¶
99         "AR={AR}" ¶
100         "AR_FLAGS={AR_FLAGS}" ¶
101         "CC={CC}" ¶
102         "CFLAGS={CFLAGS}" ¶
103         "RANLIB={RANLIB}" ¶
104         "MAKEINFO={MAKEINFO}" ¶
105         "INSTALL={INSTALL}" ¶
106         "INSTALL_DATA={INSTALL_DATA}" ¶
107         "INSTALL_PROGRAM={INSTALL_PROGRAM}" ¶
108         "BISON={BISON}"
109
110
111 # C source files that correspond to .o's.
112 CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
113
114 STAGESTUFF = {TARGETLIB} {OFILES}
115
116 all Ä {TARGETLIB} 
117
118 # HDEPFILES comes from the host config; TDEPFILES from the target config.
119
120
121 {TARGETLIB} Ä {OFILES}
122 #        rm -f {TARGETLIB}
123          Lib -o {TARGETLIB} {OFILES}
124 #        {RANLIB} {TARGETLIB}
125
126 "{o}"a29k-dis.o Ä "{s}"a29k-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:a29k.h
127 "{o}"dis-buf.c.o Ä "{s}"dis-buf.c {INCDIR}:dis-asm.h
128 "{o}"h8500-dis.o Ä "{s}"h8500-dis.c h8500-opc.h {INCDIR}:dis-asm.h
129 "{o}"h8300-dis.o Ä "{s}"h8300-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:h8300.h
130 "{o}"i386-dis.o Ä "{s}"i386-dis.c {INCDIR}:dis-asm.h
131 "{o}"i960-dis.o Ä "{s}"i960-dis.c {INCDIR}:dis-asm.h
132 "{o}"m68881-ext.o Ä "{s}"m68881-ext.c {INCDIR}:ieee-float.h
133 "{o}"m68k-dis.o Ä "{s}"m68k-dis.c {INCDIR}:dis-asm.h {INCDIR}:ieee-float.h ¶
134         {INCDIR}:opcode:m68k.h
135 "{o}"mips-dis.c.o Ä "{s}"mips-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:mips.h
136 "{o}"mips-opc.c.o Ä "{s}"mips-opc.c {INCDIR}:opcode:mips.h
137 "{o}"sparc-dis.o Ä "{s}"sparc-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:sparc.h
138 "{o}"sparc-opc.o Ä "{s}"sparc-opc.c {INCDIR}:opcode:sparc.h
139 "{o}"z8k-dis.o Ä "{s}"z8k-dis.c z8k-opc.h {INCDIR}:dis-asm.h
140 "{o}"sh-dis.o Ä "{s}"sh-dis.c sh-opc.h {INCDIR}:dis-asm.h
141 "{o}"alpha-dis.o Ä "{s}"alpha-dis.c alpha-opc.h {INCDIR}:dis-asm.h
142 "{o}"hppa-dis.o Ä "{s}"hppa-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:hppa.h
143 "{o}"m88k-dis.o Ä "{s}"m88k-dis.c {INCDIR}:dis-asm.h {INCDIR}:opcode:m88k.h
144
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
149
150 # Dummy target to force execution of dependent targets.
151 #
152 #force:
153
154 #install Ä
155 #       {INSTALL_DATA} {TARGETLIB} {libdir}:libopcodes.a
156 #       {RANLIB} {libdir}:libopcodes.a
157
158 #Makefile Ä {srcdir}:Makefile.in {host_makefile_frag} {target_makefile_frag}
159 #       {SHELL} .:config.status
160
161 dep Ä {CFILES}
162         mkdep {CFLAGS}
163
164
165 # What appears below is generated by a hacked mkdep using gcc -MM.
166
167 # DO NOT DELETE THIS LINE -- mkdep uses it.
168 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
169
170
171 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
172