go back to const instead of CONST
[deliverable/binutils-gdb.git] / sim / Makefile.in
CommitLineData
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
21srcdir = .
22
23prefix = /usr/local
24
25exec_prefix = $(prefix)
26bindir = $(exec_prefix)/bin
27libdir = $(exec_prefix)/lib
28
29datadir = $(prefix)/lib
30mandir = $(prefix)/man
31man1dir = $(mandir)/man1
32man2dir = $(mandir)/man2
33man3dir = $(mandir)/man3
34man4dir = $(mandir)/man4
35man5dir = $(mandir)/man5
36man6dir = $(mandir)/man6
37man7dir = $(mandir)/man7
38man8dir = $(mandir)/man8
39man9dir = $(mandir)/man9
40infodir = $(prefix)/info
41includedir = $(prefix)/include
42oldincludedir =
43docdir = doc
44
45SHELL = /bin/sh
46
47INSTALL = install -c
48INSTALL_PROGRAM = $(INSTALL)
49INSTALL_DATA = $(INSTALL)
50
51AR = ar
52AR_FLAGS = rc
53CFLAGS = -g
54BISON = bison
55MAKEINFO = makeinfo
56RANLIB = ranlib
57
58INCDIR = $(srcdir)/../include
59CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
60DEP = mkdep
61
62SUBDIRS = " this is set by configire, don't change this "
63
47dba87a
SC
64ALL=all-nothing
65CLEAN=clean-nothing
66INSTALL=install-nothing
67
e856060f
SC
68#### host and target dependent Makefile fragments come in here.
69###
70
71FLAGS_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
87STAGESTUFF = $(TARGETLIB) $(OFILES)
88
89
90all: endian.h $(ALL)
91
47dba87a 92clean: $(CLEAN)
e856060f 93
47dba87a 94install: $(INSTALL)
e856060f 95
7413f20a
RP
96### build endian.h via a temporary so that interrupted builds will not
97### leave an incomplete endian.h lying around.
e856060f 98endian.h: endian
7413f20a
RP
99 ./endian > e.h
100 mv -f e.h endian.h
47dba87a
SC
101
102### none
103
104all-nothing: force
105
106clean-nothing: force
107
108install-nothing: force
109
110
e856060f
SC
111### z8k
112
113all-z8k: force
114 if [ -f ./z8k/Makefile ] ; then \
115 rootme=`pwd` ; export rootme ; \
116 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
117 else \
118 true ; \
119 fi
120
121install-z8k: force
122 if [ -f ./z8k/Makefile ] ; then \
123 rootme=`pwd` ; export rootme ; \
124 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
125 else \
126 true ; \
127 fi
128
47dba87a
SC
129clean-z8k: force
130 if [ -f ./z8k/Makefile ] ; then \
131 rootme=`pwd` ; export rootme ; \
132 ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
133 else \
134 true ; \
135 fi
136
e856060f
SC
137
138### h8300
139
140all-h8300: force
141 if [ -f ./h8300/Makefile ] ; then \
142 rootme=`pwd` ; export rootme ; \
143 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
144 else \
145 true ; \
146 fi
147
148install-h8300: force
149 if [ -f ./h8300/Makefile ] ; then \
150 rootme=`pwd` ; export rootme ; \
151 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
152 else \
153 true ; \
154 fi
155
47dba87a
SC
156clean-h8300: force
157 if [ -f ./h8300/Makefile ] ; then \
158 rootme=`pwd` ; export rootme ; \
159 ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
160 else \
161 true ; \
162 fi
163
164###
165
166### h8500
167
168all-h8500: force
169 if [ -f ./h8500/Makefile ] ; then \
170 rootme=`pwd` ; export rootme ; \
171 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
172 else \
173 true ; \
174 fi
175
176install-h8500: force
177 if [ -f ./h8500/Makefile ] ; then \
178 rootme=`pwd` ; export rootme ; \
179 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
180 else \
181 true ; \
182 fi
183
184clean-h8500: force
185 if [ -f ./h8500/Makefile ] ; then \
186 rootme=`pwd` ; export rootme ; \
187 ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
188 else \
189 true ; \
190 fi
191
e856060f
SC
192###
193
194force:
195
196
197# with the gnu make, this is done automatically.
198
199Makefile: $(srcdir)/Makefile.in $(target_makefile_frag)
200 $(SHELL) ./config.status
This page took 0.045581 seconds and 4 git commands to generate.