]>
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 = . | |
becbe1c3 | 22 | srcroot = $(srcdir)/.. |
e856060f | 23 | prefix = /usr/local |
becbe1c3 | 24 | program_transform_name = |
e856060f SC |
25 | |
26 | exec_prefix = $(prefix) | |
27 | bindir = $(exec_prefix)/bin | |
28 | libdir = $(exec_prefix)/lib | |
29 | ||
30 | datadir = $(prefix)/lib | |
31 | mandir = $(prefix)/man | |
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 = $(prefix)/info | |
42 | includedir = $(prefix)/include | |
43 | oldincludedir = | |
44 | docdir = doc | |
45 | ||
46 | SHELL = /bin/sh | |
47 | ||
becbe1c3 | 48 | INSTALL = $${srcroot}/../install.sh -c |
e856060f SC |
49 | INSTALL_PROGRAM = $(INSTALL) |
50 | INSTALL_DATA = $(INSTALL) | |
becbe1c3 RP |
51 | INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
52 | INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 | |
53 | ||
e856060f SC |
54 | |
55 | AR = ar | |
56 | AR_FLAGS = rc | |
57 | CFLAGS = -g | |
58 | BISON = bison | |
59 | MAKEINFO = makeinfo | |
60 | RANLIB = ranlib | |
61 | ||
becbe1c3 RP |
62 | MAKEOVERRIDES= |
63 | ||
e856060f SC |
64 | INCDIR = $(srcdir)/../include |
65 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |
66 | DEP = mkdep | |
67 | ||
68 | SUBDIRS = " this is set by configire, don't change this " | |
69 | ||
47dba87a SC |
70 | ALL=all-nothing |
71 | CLEAN=clean-nothing | |
a86ea03f | 72 | DO_INSTALL=install-nothing |
47dba87a | 73 | |
e856060f SC |
74 | #### host and target dependent Makefile fragments come in here. |
75 | ### | |
76 | ||
77 | FLAGS_TO_PASS = \ | |
78 | "prefix=$(prefix)" \ | |
79 | "exec_prefix=$(exec_prefix)" \ | |
80 | "against=$(against)" \ | |
81 | "AR=$(AR)" \ | |
82 | "AR_FLAGS=$(AR_FLAGS)" \ | |
83 | "CC=$(CC)" \ | |
84 | "CFLAGS=$(CFLAGS)" \ | |
85 | "RANLIB=$(RANLIB)" \ | |
86 | "MAKEINFO=$(MAKEINFO)" \ | |
87 | "INSTALL=$(INSTALL)" \ | |
88 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
89 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
90 | "BISON=$(BISON)" | |
91 | ||
92 | ||
93 | STAGESTUFF = $(TARGETLIB) $(OFILES) | |
94 | ||
95 | ||
b23eaace | 96 | all: $(ALL) |
e856060f | 97 | |
47dba87a | 98 | clean: $(CLEAN) |
e856060f | 99 | |
a86ea03f SC |
100 | install: $(DO_INSTALL) |
101 | ||
68dd3014 JK |
102 | mostlyclean: clean |
103 | ||
104 | distclean realclean: clean | |
105 | rm -f Makefile config.status | |
106 | ||
a86ea03f SC |
107 | info: |
108 | install-info: | |
b23eaace | 109 | dvi: |
e856060f | 110 | |
68dd3014 JK |
111 | ### |
112 | ### | |
47dba87a | 113 | |
68dd3014 JK |
114 | .PHONY: check installcheck |
115 | check: | |
116 | installcheck: | |
ad5fcc62 | 117 | |
47dba87a SC |
118 | ### none |
119 | ||
120 | all-nothing: force | |
121 | ||
122 | clean-nothing: force | |
123 | ||
124 | install-nothing: force | |
125 | ||
126 | ||
e856060f SC |
127 | ### z8k |
128 | ||
68dd3014 | 129 | all-z8k: force |
becbe1c3 | 130 | @if [ -f ./z8k/Makefile ] ; then \ |
e856060f SC |
131 | rootme=`pwd` ; export rootme ; \ |
132 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
133 | else \ | |
134 | true ; \ | |
135 | fi | |
136 | ||
137 | install-z8k: force | |
becbe1c3 | 138 | @if [ -f ./z8k/Makefile ] ; then \ |
e856060f | 139 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 140 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
e856060f SC |
141 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
142 | else \ | |
143 | true ; \ | |
144 | fi | |
145 | ||
47dba87a | 146 | clean-z8k: force |
becbe1c3 | 147 | @if [ -f ./z8k/Makefile ] ; then \ |
47dba87a SC |
148 | rootme=`pwd` ; export rootme ; \ |
149 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
150 | else \ | |
151 | true ; \ | |
152 | fi | |
153 | ||
e856060f SC |
154 | |
155 | ### h8300 | |
156 | ||
68dd3014 | 157 | all-h8300: force |
becbe1c3 | 158 | @if [ -f ./h8300/Makefile ] ; then \ |
e856060f SC |
159 | rootme=`pwd` ; export rootme ; \ |
160 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
161 | else \ | |
162 | true ; \ | |
163 | fi | |
164 | ||
165 | install-h8300: force | |
becbe1c3 | 166 | @if [ -f ./h8300/Makefile ] ; then \ |
e856060f | 167 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 168 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
e856060f SC |
169 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
170 | else \ | |
171 | true ; \ | |
172 | fi | |
173 | ||
47dba87a | 174 | clean-h8300: force |
becbe1c3 | 175 | @if [ -f ./h8300/Makefile ] ; then \ |
47dba87a SC |
176 | rootme=`pwd` ; export rootme ; \ |
177 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
178 | else \ | |
179 | true ; \ | |
180 | fi | |
181 | ||
182 | ### | |
183 | ||
184 | ### h8500 | |
185 | ||
becbe1c3 RP |
186 | all-h8500: force |
187 | @if [ -f ./h8500/Makefile ] ; then \ | |
47dba87a SC |
188 | rootme=`pwd` ; export rootme ; \ |
189 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
190 | else \ | |
191 | true ; \ | |
192 | fi | |
193 | ||
194 | install-h8500: force | |
becbe1c3 | 195 | @if [ -f ./h8500/Makefile ] ; then \ |
47dba87a | 196 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 197 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
47dba87a SC |
198 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
199 | else \ | |
200 | true ; \ | |
201 | fi | |
202 | ||
203 | clean-h8500: force | |
becbe1c3 | 204 | @if [ -f ./h8500/Makefile ] ; then \ |
47dba87a SC |
205 | rootme=`pwd` ; export rootme ; \ |
206 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
207 | else \ | |
208 | true ; \ | |
209 | fi | |
210 | ||
e856060f SC |
211 | ### |
212 | ||
a86ea03f SC |
213 | ### sh |
214 | ||
68dd3014 | 215 | all-sh: force |
becbe1c3 | 216 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
217 | rootme=`pwd` ; export rootme ; \ |
218 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
219 | else \ | |
220 | true ; \ | |
221 | fi | |
222 | ||
223 | install-sh: force | |
becbe1c3 | 224 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
225 | rootme=`pwd` ; export rootme ; \ |
226 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
227 | else \ | |
228 | true ; \ | |
229 | fi | |
230 | ||
231 | clean-sh: force | |
becbe1c3 | 232 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
233 | rootme=`pwd` ; export rootme ; \ |
234 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
235 | else \ | |
236 | true ; \ | |
237 | fi | |
238 | ||
239 | ### | |
240 | ||
e856060f SC |
241 | force: |
242 | ||
243 | ||
244 | # with the gnu make, this is done automatically. | |
245 | ||
246 | Makefile: $(srcdir)/Makefile.in $(target_makefile_frag) | |
247 | $(SHELL) ./config.status |