Commit | Line | Data |
---|---|---|
e856060f SC |
1 | # Makefile template for Configure for the sim library. |
2 | # Copyright (C) 1993 Free Software Foundation, Inc. | |
3 | # Written by Cygnus Support. | |
4 | # | |
5 | # This file is part of BFD, the Binary File Descriptor library. | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2 of the License, or | |
10 | # (at your option) any later version. | |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, write to the Free Software | |
19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | ||
21 | srcdir = . | |
22 | ||
23 | prefix = /usr/local | |
24 | ||
25 | exec_prefix = $(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 = doc | |
44 | ||
45 | SHELL = /bin/sh | |
46 | ||
47 | INSTALL = install -c | |
48 | INSTALL_PROGRAM = $(INSTALL) | |
49 | INSTALL_DATA = $(INSTALL) | |
50 | ||
51 | AR = ar | |
52 | AR_FLAGS = rc | |
53 | CFLAGS = -g | |
54 | BISON = bison | |
55 | MAKEINFO = makeinfo | |
56 | RANLIB = ranlib | |
57 | ||
58 | INCDIR = $(srcdir)/../include | |
59 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |
60 | DEP = mkdep | |
61 | ||
62 | SUBDIRS = " this is set by configire, don't change this " | |
63 | ||
47dba87a SC |
64 | ALL=all-nothing |
65 | CLEAN=clean-nothing | |
a86ea03f | 66 | DO_INSTALL=install-nothing |
47dba87a | 67 | |
e856060f SC |
68 | #### host and target dependent Makefile fragments come in here. |
69 | ### | |
70 | ||
71 | FLAGS_TO_PASS = \ | |
72 | "prefix=$(prefix)" \ | |
73 | "exec_prefix=$(exec_prefix)" \ | |
74 | "against=$(against)" \ | |
75 | "AR=$(AR)" \ | |
76 | "AR_FLAGS=$(AR_FLAGS)" \ | |
77 | "CC=$(CC)" \ | |
78 | "CFLAGS=$(CFLAGS)" \ | |
79 | "RANLIB=$(RANLIB)" \ | |
80 | "MAKEINFO=$(MAKEINFO)" \ | |
81 | "INSTALL=$(INSTALL)" \ | |
82 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
83 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
84 | "BISON=$(BISON)" | |
85 | ||
86 | ||
87 | STAGESTUFF = $(TARGETLIB) $(OFILES) | |
88 | ||
89 | ||
b23eaace | 90 | all: $(ALL) |
e856060f | 91 | |
47dba87a | 92 | clean: $(CLEAN) |
e856060f | 93 | |
a86ea03f SC |
94 | install: $(DO_INSTALL) |
95 | ||
68dd3014 JK |
96 | mostlyclean: clean |
97 | ||
98 | distclean realclean: clean | |
99 | rm -f Makefile config.status | |
100 | ||
a86ea03f SC |
101 | info: |
102 | install-info: | |
b23eaace | 103 | dvi: |
e856060f | 104 | |
68dd3014 JK |
105 | ### |
106 | ### | |
47dba87a | 107 | |
68dd3014 JK |
108 | .PHONY: check installcheck |
109 | check: | |
110 | installcheck: | |
ad5fcc62 | 111 | |
47dba87a SC |
112 | ### none |
113 | ||
114 | all-nothing: force | |
115 | ||
116 | clean-nothing: force | |
117 | ||
118 | install-nothing: force | |
119 | ||
120 | ||
e856060f SC |
121 | ### z8k |
122 | ||
68dd3014 | 123 | all-z8k: force |
e856060f SC |
124 | if [ -f ./z8k/Makefile ] ; then \ |
125 | rootme=`pwd` ; export rootme ; \ | |
126 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
127 | else \ | |
128 | true ; \ | |
129 | fi | |
130 | ||
131 | install-z8k: force | |
132 | if [ -f ./z8k/Makefile ] ; then \ | |
133 | rootme=`pwd` ; export rootme ; \ | |
134 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
135 | else \ | |
136 | true ; \ | |
137 | fi | |
138 | ||
47dba87a SC |
139 | clean-z8k: force |
140 | if [ -f ./z8k/Makefile ] ; then \ | |
141 | rootme=`pwd` ; export rootme ; \ | |
142 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
143 | else \ | |
144 | true ; \ | |
145 | fi | |
146 | ||
e856060f SC |
147 | |
148 | ### h8300 | |
149 | ||
68dd3014 | 150 | all-h8300: force |
e856060f SC |
151 | if [ -f ./h8300/Makefile ] ; then \ |
152 | rootme=`pwd` ; export rootme ; \ | |
153 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
154 | else \ | |
155 | true ; \ | |
156 | fi | |
157 | ||
158 | install-h8300: force | |
159 | if [ -f ./h8300/Makefile ] ; then \ | |
160 | rootme=`pwd` ; export rootme ; \ | |
161 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
162 | else \ | |
163 | true ; \ | |
164 | fi | |
165 | ||
47dba87a SC |
166 | clean-h8300: force |
167 | if [ -f ./h8300/Makefile ] ; then \ | |
168 | rootme=`pwd` ; export rootme ; \ | |
169 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
170 | else \ | |
171 | true ; \ | |
172 | fi | |
173 | ||
174 | ### | |
175 | ||
176 | ### h8500 | |
177 | ||
b23eaace | 178 | all-h8500: endian.h force |
47dba87a SC |
179 | if [ -f ./h8500/Makefile ] ; then \ |
180 | rootme=`pwd` ; export rootme ; \ | |
181 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
182 | else \ | |
183 | true ; \ | |
184 | fi | |
185 | ||
186 | install-h8500: force | |
187 | if [ -f ./h8500/Makefile ] ; then \ | |
188 | rootme=`pwd` ; export rootme ; \ | |
189 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
190 | else \ | |
191 | true ; \ | |
192 | fi | |
193 | ||
194 | clean-h8500: force | |
195 | if [ -f ./h8500/Makefile ] ; then \ | |
196 | rootme=`pwd` ; export rootme ; \ | |
197 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
198 | else \ | |
199 | true ; \ | |
200 | fi | |
201 | ||
e856060f SC |
202 | ### |
203 | ||
a86ea03f SC |
204 | ### sh |
205 | ||
68dd3014 | 206 | all-sh: force |
a86ea03f SC |
207 | if [ -f ./sh/Makefile ] ; then \ |
208 | rootme=`pwd` ; export rootme ; \ | |
209 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
210 | else \ | |
211 | true ; \ | |
212 | fi | |
213 | ||
214 | install-sh: force | |
215 | if [ -f ./sh/Makefile ] ; then \ | |
216 | rootme=`pwd` ; export rootme ; \ | |
217 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
218 | else \ | |
219 | true ; \ | |
220 | fi | |
221 | ||
222 | clean-sh: force | |
223 | if [ -f ./sh/Makefile ] ; then \ | |
224 | rootme=`pwd` ; export rootme ; \ | |
225 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
226 | else \ | |
227 | true ; \ | |
228 | fi | |
229 | ||
230 | ### | |
231 | ||
e856060f SC |
232 | force: |
233 | ||
234 | ||
235 | # with the gnu make, this is done automatically. | |
236 | ||
237 | Makefile: $(srcdir)/Makefile.in $(target_makefile_frag) | |
238 | $(SHELL) ./config.status |