Fixed bug printing 29050 instructions.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991 Cygnus Support
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 #
19 # Last Mod Thu Nov 7 03:37:41 PST 1991, by rich@sendai
20 #
21 # $Id$
22
23 srcdir = .
24
25 idestdir = /usr/local
26 ddestdir = $(idestdir)
27
28 SHELL=/bin/sh
29
30 RANLIB = ranlib
31 AR = ar
32 AR_FLAGS = cq
33
34 BISON = `if [ -d $(unsubdir)/../bison ] ; \
35 then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ ; \
36 else echo yacc ; fi`
37
38 #\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
39 SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib clib
40 OTHERS =
41
42 ALL = all.normal
43 INSTALL_HEADERS = install-headers
44 INSTALL_FIXED_INCLUDES = install-fixed-includes
45 #### host and target specific makefile fragments come in here.
46 ###
47
48 all: $(ALL)
49
50 all.normal:
51 $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
52
53 # this is a bad hack.
54 all.xclib: all.normal
55 if [ -d clib ] ; then \
56 (cd clib ; $(MAKE)) ; \
57 fi
58
59 subdir_do: force
60 for i in $(DODIRS); do \
61 if [ -f $(unsubdir)/$$i/localenv ] ; then \
62 if (cd $(unsubdir)/$$i$(subdir); \
63 $(MAKE) \
64 "against=$(against)" \
65 "BISON=$(BISON)" $(DO)) ; then true ; \
66 else exit 1 ; fi ; \
67 else if [ -d $(unsubdir)/$$i ] ; then \
68 if (cd $(unsubdir)/$$i$(subdir); \
69 $(MAKE) \
70 "against=$(against)" \
71 "AR=$(AR)" \
72 "CC=$(CC)" \
73 "AR_FLAGS=$(AR_FLAGS)" \
74 "RANLIB=$(RANLIB)" \
75 "LOADLIBES=$(LOADLIBES)" \
76 "LDFLAGS=$(LDFLAGS)" \
77 "BISON=$(BISON)" $(DO)) ; then true ; \
78 else exit 1 ; fi ; \
79 else true ; fi ; \
80 fi ; \
81 done
82
83
84
85 bootstrap:
86 $(MAKE) all
87 $(MAKE) stage1
88 $(MAKE) pass "stagepass=stage1"
89 $(MAKE) stage2
90 $(MAKE) pass "stagepass=stage2"
91 $(MAKE) comparison
92
93 bootstrap2:
94 $(MAKE) pass "stagepass=stage1"
95 $(MAKE) stage2
96 $(MAKE) pass "stagepass=stage2"
97 $(MAKE) comparison
98
99 bootstrap3:
100 $(MAKE) pass "stagepass=stage2"
101 $(MAKE) comparison
102
103 pass:
104 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
105 $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" \
106 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
107 -O \
108 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
109 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
110 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
111 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
112 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
113 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
114 "LDFLAGS=-nostdlib /lib/crt0.o \
115 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
116 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
117
118
119 stage1:
120 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
121
122 stage2:
123 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
124
125 stage3:
126 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
127
128 stage4:
129 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
130
131 against=stage2
132
133 comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
134
135 de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
136 de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
137 de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
138 de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
139
140 clean:
141 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
142 $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS) $(OTHERS)"
143
144 install: install-no-fixincludes $(INSTALL_FIXED_INCLUDES)
145
146 install-no-fixincludes: install-dirs $(INSTALL_HEADERS)
147 $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS) $(OTHERS)"
148
149 # The "else true" stuff is for Ultrix; the shell returns the exit code
150 # of the "if" command, if no commands are run in the "then" or "else" part,
151 # causing Make to quit.
152
153 MAKEDIRS= \
154 $(ddestdir) \
155 $(ddestdir)/bin \
156 $(ddestdir)/include \
157 $(ddestdir)/lib \
158 $(ddestdir)/lib/emacs \
159 $(idestdir) \
160 $(idestdir)/bin \
161 $(idestdir)/lib \
162 $(idestdir)/include \
163 $(idestdir)/doc \
164 $(idestdir)/man \
165 $(idestdir)/man/man1 \
166 $(idestdir)/man/man2 \
167 $(idestdir)/man/man3 \
168 $(idestdir)/man/man4 \
169 $(idestdir)/man/man5 \
170 $(idestdir)/man/man6 \
171 $(idestdir)/man/man7 \
172 $(idestdir)/man/man8
173
174
175 install-dirs: force
176 for i in $(MAKEDIRS) ; do \
177 if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \
178 done
179
180 install-headers:
181 if [ -d $(unsubdir)/gcc$(subdir) ] ; then \
182 (cd $(unsubdir)/gcc$(subdir) ; \
183 $(MAKE) install-dir) ; \
184 else true; \
185 fi
186
187 install-fixed-includes: force
188 if [ -d $(unsubdir)/gcc$(subdir) ] ; then \
189 (cd $(unsubdir)/gcc$(subdir) ; \
190 $(MAKE) install-fixed-includes) ; \
191 else true; \
192 fi
193
194 etags tags: TAGS
195
196 TAGS: FORCE
197 etags `$(MAKE) ls`
198
199 ls:
200 @echo Makefile
201 @for i in $(SUBDIRS); \
202 do \
203 (cd $$i; \
204 pwd=`pwd`; \
205 wd=`basename $$pwd`; \
206 for j in `$(MAKE) ls`; \
207 do \
208 echo $$wd/$$j; \
209 done) \
210 done
211
212 force:
213
214 # with the gnu make, this is done automatically.
215
216 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
217 $(SHELL) ./config.status
218
219 #
220 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
221
222 DEVO_SUPPORT= README README.configure Makefile.in configure configure.in \
223 config.sub config
224 GDB_SUPPORT_DIRS= bfd include libiberty readline
225 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
226
227 setup-dirs: force_update
228 ./configure sun4
229 make clean
230 ./configure -rm sun4
231 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
232
233 bfd.ilrt.tar.Z: setup-dirs
234 rm -f bfd.ilrt.tar.Z
235 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
236 | compress -v >bfd.ilrt.tar.Z
237
238 gdb.tar.Z: setup-dirs
239 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
240 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
241
242 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
243 rm -rf proto-toplev; mkdir proto-toplev
244 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
245 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
246 ln -s ../$$i . ; \
247 done)
248 mkdir proto-toplev/texinfo
249 mkdir proto-toplev/texinfo/fsf
250 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
251 chmod og=u `find proto-toplev -print`
252 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
253 echo "==> Making gdb-$$VER.tar.Z"; \
254 ln -s proto-toplev gdb-$$VER; \
255 tar cfh - gdb-$$VER \
256 | compress -v >gdb-$$VER.tar.Z)
257
258 force_update:
259
260 nothing:
261
262 # end of Makefile.in
This page took 0.034642 seconds and 4 git commands to generate.