1 # Makefile template for Configure for the sim library.
2 # Copyright (C) 1993, 1995 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
5 # This file is part of BFD, the Binary File Descriptor library.
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.
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.
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.
23 srcroot = $(srcdir)/..
26 exec_prefix = @exec_prefix@
28 host_alias = @host_alias@
29 target_alias = @target_alias@
30 program_transform_name = @program_transform_name@
31 bindir = $(exec_prefix)/bin
32 libdir = $(exec_prefix)/lib
33 tooldir = $(libdir)/$(target_alias)
35 datadir = $(prefix)/lib
36 mandir = $(prefix)/man
37 man1dir = $(mandir)/man1
38 man2dir = $(mandir)/man2
39 man3dir = $(mandir)/man3
40 man4dir = $(mandir)/man4
41 man5dir = $(mandir)/man5
42 man6dir = $(mandir)/man6
43 man7dir = $(mandir)/man7
44 man8dir = $(mandir)/man8
45 man9dir = $(mandir)/man9
46 infodir = $(prefix)/info
47 includedir = $(prefix)/include
48 docdir = $(datadir)/doc
52 # FIXME: Use autoconf's AC_PROG_INSTALL
53 INSTALL = $${srcroot}/../install.sh -c
54 INSTALL_PROGRAM = $(INSTALL)
55 INSTALL_DATA = $(INSTALL)
56 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
57 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
72 INCDIR = $(srcdir)/../include
73 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
78 DO_INSTALL=install-nothing
80 #### Makefile fragments come in here.
81 # @target_makefile_frag@
86 "exec_prefix=$(exec_prefix)" \
87 "against=$(against)" \
89 "AR_FLAGS=$(AR_FLAGS)" \
93 "MAKEINFO=$(MAKEINFO)" \
94 "INSTALL=$(INSTALL)" \
95 "INSTALL_DATA=$(INSTALL_DATA)" \
96 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
103 install: $(DO_INSTALL)
107 distclean realclean: clean
108 rm -f Makefile config.cache config.log config.status
117 .PHONY: check installcheck
127 install-nothing: force
133 @if [ -f ./z8k/Makefile ] ; then \
134 rootme=`pwd` ; export rootme ; \
135 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
141 @if [ -f ./z8k/Makefile ] ; then \
142 rootme=`pwd` ; export rootme ; \
143 srcroot=`cd $(srcdir); pwd`; export srcroot; \
144 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
150 @if [ -f ./z8k/Makefile ] ; then \
151 rootme=`pwd` ; export rootme ; \
152 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
161 @if [ -f ./h8300/Makefile ] ; then \
162 rootme=`pwd` ; export rootme ; \
163 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
169 @if [ -f ./h8300/Makefile ] ; then \
170 rootme=`pwd` ; export rootme ; \
171 srcroot=`cd $(srcdir); pwd`; export srcroot; \
172 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
178 @if [ -f ./h8300/Makefile ] ; then \
179 rootme=`pwd` ; export rootme ; \
180 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
190 @if [ -f ./h8500/Makefile ] ; then \
191 rootme=`pwd` ; export rootme ; \
192 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
198 @if [ -f ./h8500/Makefile ] ; then \
199 rootme=`pwd` ; export rootme ; \
200 srcroot=`cd $(srcdir); pwd`; export srcroot; \
201 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
207 @if [ -f ./h8500/Makefile ] ; then \
208 rootme=`pwd` ; export rootme ; \
209 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
219 @if [ -f ./sh/Makefile ] ; then \
220 rootme=`pwd` ; export rootme ; \
221 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
227 @if [ -f ./sh/Makefile ] ; then \
228 rootme=`pwd` ; export rootme ; \
229 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
235 @if [ -f ./sh/Makefile ] ; then \
236 rootme=`pwd` ; export rootme ; \
237 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
249 @if [ -f ./w65/Makefile ] ; then \
250 rootme=`pwd` ; export rootme ; \
251 ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
257 @if [ -f ./w65/Makefile ] ; then \
258 rootme=`pwd` ; export rootme ; \
259 srcroot=`cd $(srcdir); pwd`; export srcroot; \
260 ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
266 @if [ -f ./w65/Makefile ] ; then \
267 rootme=`pwd` ; export rootme ; \
268 ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
277 @if [ -f ./arm/Makefile ] ; then \
278 rootme=`pwd` ; export rootme ; \
279 ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
285 @if [ -f ./arm/Makefile ] ; then \
286 rootme=`pwd` ; export rootme ; \
287 srcroot=`cd $(srcdir); pwd`; export srcroot; \
288 ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
294 @if [ -f ./arm/Makefile ] ; then \
295 rootme=`pwd` ; export rootme ; \
296 ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
305 # with the gnu make, this is done automatically.
307 Makefile: Makefile.in config.status @frags@
308 $(SHELL) ./config.status
310 config.status: configure
311 $(SHELL) ./config.status --recheck