add no-op dvi target
[external/binutils.git] / sim / Makefile.in
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
64 ALL=all-nothing
65 CLEAN=clean-nothing
66 DO_INSTALL=install-nothing
67
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
90 all:    $(ALL)
91         
92 clean:  $(CLEAN)
93         rm -f endian e.h endian.h
94
95 install: $(DO_INSTALL)
96
97 info:
98 install-info:
99 dvi:
100
101 ### build endian.h via a temporary so that interrupted builds will not
102 ### leave an incomplete endian.h lying around.
103 endian.h: endian
104         ./endian > e.h
105         mv -f e.h endian.h
106
107 endian: $(srcdir)/endian.c
108         $(CC) $(CFLAGS) -o endian $(srcdir)/endian.c
109
110 ### none
111
112 all-nothing: force
113         
114 clean-nothing:  force
115
116 install-nothing: force
117
118
119 ### z8k
120
121 all-z8k: endian.h force
122         if [ -f ./z8k/Makefile ] ; then \
123                 rootme=`pwd` ; export rootme ; \
124                 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
125         else \
126                 true ; \
127         fi
128
129 install-z8k: force
130         if [ -f ./z8k/Makefile ] ; then \
131                 rootme=`pwd` ; export rootme ; \
132                 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
133         else \
134                 true ; \
135         fi
136
137 clean-z8k: force
138         if [ -f ./z8k/Makefile ] ; then \
139                 rootme=`pwd` ; export rootme ; \
140                 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
141         else \
142                 true ; \
143         fi
144
145
146 ### h8300
147
148 all-h8300: endian.h force
149         if [ -f ./h8300/Makefile ] ; then \
150                 rootme=`pwd` ; export rootme ; \
151                 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
152         else \
153                 true ; \
154         fi
155
156 install-h8300: force
157         if [ -f ./h8300/Makefile ] ; then \
158                 rootme=`pwd` ; export rootme ; \
159                 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
160         else \
161                 true ; \
162         fi
163
164 clean-h8300: force
165         if [ -f ./h8300/Makefile ] ; then \
166                 rootme=`pwd` ; export rootme ; \
167                 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
168         else \
169                 true ; \
170         fi
171
172 ###
173
174 ### h8500
175
176 all-h8500: endian.h force
177         if [ -f ./h8500/Makefile ] ; then \
178                 rootme=`pwd` ; export rootme ; \
179                 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
180         else \
181                 true ; \
182         fi
183
184 install-h8500: force
185         if [ -f ./h8500/Makefile ] ; then \
186                 rootme=`pwd` ; export rootme ; \
187                 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
188         else \
189                 true ; \
190         fi
191
192 clean-h8500: force
193         if [ -f ./h8500/Makefile ] ; then \
194                 rootme=`pwd` ; export rootme ; \
195                 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
196         else \
197                 true ; \
198         fi
199
200 ###
201
202 ### sh
203
204 all-sh: endian.h force
205         if [ -f ./sh/Makefile ] ; then \
206                 rootme=`pwd` ; export rootme ; \
207                 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
208         else \
209                 true ; \
210         fi
211
212 install-sh: force
213         if [ -f ./sh/Makefile ] ; then \
214                 rootme=`pwd` ; export rootme ; \
215                 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
216         else \
217                 true ; \
218         fi
219
220 clean-sh: force
221         if [ -f ./sh/Makefile ] ; then \
222                 rootme=`pwd` ; export rootme ; \
223                 ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
224         else \
225                 true ; \
226         fi
227
228 ###
229
230 force:
231
232
233 # with the gnu make, this is done automatically.
234
235 Makefile: $(srcdir)/Makefile.in $(target_makefile_frag)
236         $(SHELL) ./config.status