Structural changes for Info file only (no effect on printed manual),
[deliverable/binutils-gdb.git] / binutils / Makefile.dos
1 # This file was generated automatically by configure. Do not edit.
2 target_makefile_frag =
3 host_makefile_frag =
4 CROSS=-DCROSS_COMPILE
5 ALL=all.cross
6 host_alias = sun4
7 host_cpu = sparc
8 host_vendor = sun
9 host_os = sunos411
10 version_path =
11 target_alias = h8300hds
12 target_cpu = h8300
13 target_vendor = hitachi
14 target_os = hds
15 subdir =
16 unsubdir = .
17 VPATH = .
18 # Makefile for GNU binary-file utilities
19 # Copyright (C) 1989-1991 Free Software Foundation, Inc.
20
21 # This file is part of GNU binutils.
22
23 # This program is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU General Public License as published by
25 # the Free Software Foundation; either version 2 of the License, or
26 # (at your option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful,
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 # GNU General Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License
34 # along with this program; if not, write to the Free Software
35 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
36
37 #$Id$
38
39 srcdir = .
40
41 prefix = /usr/local
42
43 bindir = $(prefix)/bin
44 datadir = $(prefix)/lib
45 libdir = $(prefix)/lib
46 mandir = $(datadir)/man
47 man1dir = $(mandir)/man1
48 man2dir = $(mandir)/man2
49 man3dir = $(mandir)/man3
50 man4dir = $(mandir)/man4
51 man5dir = $(mandir)/man5
52 man6dir = $(mandir)/man6
53 man7dir = $(mandir)/man7
54 man8dir = $(mandir)/man8
55 man9dir = $(mandir)/man9
56 infodir = $(datadir)/info
57 includedir = $(prefix)/include
58 docdir = $(datadir)/doc
59
60 SHELL = /bin/sh
61
62 INSTALL = install -c
63 INSTALL_PROGRAM = $(INSTALL)
64 INSTALL_DATA = $(INSTALL)
65
66 AR = ar
67 AR_FLAGS = qv
68 BISON = bison
69 MAKEINFO = makeinfo
70 RANLIB = ranlib
71
72 TEXI2ROFF=texi2roff
73
74 # Distribution version
75 VERSION=1.94
76 # Distribution name
77 DIST_NAME=binutils-beta-${VERSION}
78
79 version=`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
80
81 # Where to find texinfo.tex to format docn with TeX
82 TEXIDIR = $(srcdir)/../texinfo/fsf
83
84 MANPAGES= ar.1 nm.1 objdump.1 ranlib.1 size.1 strip.1
85
86 #CC=gcc -Wall
87 # these two are almost the same program
88 AR_PROG=ar
89 RANLIB_PROG=ranlib
90
91 # copy and strip should be the same program
92 COPY_PROG=copy
93 STRIP_PROG=strip
94
95 # These should all be the same program too.
96 SIZE_PROG=size
97 NM_PROG=nm
98 OBJDUMP_PROG=objdump
99
100 PROGS = $(SIZE_PROG) $(COPY_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
101 STAGESTUFF = $(PROGS) *.o
102
103 BASEDIR = $(srcdir)/..
104 LIBDIR = $(unsubdir)/../bfd$(subdir)
105
106 MINUS_G =
107 #### host and target dependant Makefile fragments come in here.
108 HDEFINES=-O -D__MSDOS__ -D__GO32__
109 TDEFINES=
110 MALLOC=
111 ###
112
113 INCDIR = $(BASEDIR)/include
114
115 CFLAGS = $(MINUS_G) -I. -I$(srcdir) -I$(INCDIR) $(HDEFINES) $(TDEFINES)
116
117 # When adding .o files, to make VPATH work in Sun Make, you have to
118 # also add a foo.o: foo.c line at the bottom of the file.
119 DISASMS = m68k-pinsn.o i960-pinsn.o sparc-pinsn.o am29k-pinsn.o
120
121 #
122 ## Random definitions
123 # Hopefully all these may be flushed once we get configuration down pat.
124
125 # alloca only needed for systems which don't have it and when cc != gcc.
126 # ALLOCA = alloca.o
127
128 # nm tries to malloc enough space for the string table. The old GNU malloc
129 # rounds this up to a power of two (e.g. 5M becomes 8M), and so it might
130 # fail unnecessarily. I've also seen some Unix malloc's fail, even when
131 # there is enough memory. So use the new GNU malloc.
132 # MALLOC = gmalloc.o
133
134 # Use the GNU getopt unless you have problems with it.
135 # The IRIS version could probably benefit from being assembled with
136 # libmalloc rather than the ordinary malloc.
137 LIBIBERTY = $(unsubdir)/../libiberty$(subdir)/libiberty.a
138
139 # Code shared by all the binutils.
140 BULIBS = bucomm.o version.o filemode.o
141
142 ADDL_LIBS = $(MALLOC) $(BULIBS) $(BFD) $(LIBIBERTY)
143
144 BFD = $(LIBDIR)/libbfd.a
145 #
146 ## The rules
147
148 all: $(ADDL_LIBS) $(PROGS)
149
150 info: binutils.info
151
152 #$(BFD):$(LIBDIR)/../common/*.c
153 # (cd $(LIBDIR); make)
154
155 $(SIZE_PROG): $(ADDL_LIBS) size.o $(BFD)
156 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(SIZE_PROG) size.o $(ADDL_LIBS) $(LOADLIBES)
157 $(CC) @bu.rf
158
159 $(COPY_PROG): $(ADDL_LIBS) copy.o not-strip.o $(BFD)
160 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(COPY_PROG) copy.o not-strip.o $(ADDL_LIBS) $(LOADLIBES)
161 $(CC) @bu.rf
162
163 $(STRIP_PROG): $(ADDL_LIBS) copy.o is-strip.o $(BFD)
164 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(STRIP_PROG) copy.o is-strip.o $(ADDL_LIBS) $(LOADLIBES)
165 $(CC) @bu.rf
166
167 $(NM_PROG): $(ADDL_LIBS) nm.o $(BFD)
168 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(LOADLIBES)
169 $(CC) @bu.rf
170
171 $(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(DISASMS) $(BFD)
172 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(DISASMS) $(ADDL_LIBS) $(LOADLIBES)
173 $(CC) @bu.rf
174
175 $(AR_PROG): $(ADDL_LIBS) ar.o not-ranlib.o $(BFD)
176 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o not-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
177 $(CC) @bu.rf
178
179 $(RANLIB_PROG): $(ADDL_LIBS) ar.o is-ranlib.o $(BFD)
180 >bu.rf $(LDFLAGS) $(CFLAGS) -o $(RANLIB_PROG) ar.o is-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
181 $(CC) @bu.rf
182
183 # This rule creates a single binary that switches between ar and ranlib
184 # by looking at argv[0]. Use this kludge to save some disk space.
185 # However, you have to install things by hand.
186 # (That is after 'make install', replace the installed ranlib by a link to ar.)
187
188 # Alternatively, you can install ranlib.sh as ranlib.
189
190 ar_with_ranlib: $(ADDL_LIBS) ar.o maybe-ranlib.o $(BFD)
191 $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
192 -rm -f $(RANLIB_PROG)
193 -ln $(AR_PROG) $(RANLIB_PROG)
194
195 # copy and strip in one binary that uses argv[0] to decide its action.
196
197 copy_with_strip: $(ADDL_LIBS) copy.o maybe-strip.o $(BFD)
198 $(CC) $(LDFLAGS) $(CFLAGS) -o $(COPY_PROG) copy.o maybe-strip.o $(ADDL_LIBS) $(LOADLIBES)
199 -rm -f $(STRIP_PROG)
200 -ln $(COPY_PROG) $(STRIP_PROG)
201
202 stage1: force
203 - mkdir stage1
204 - mv -f $(STAGESTUFF) stage1
205
206 stage2: force
207 - mkdir stage2
208 - mv -f $(STAGESTUFF) stage2
209
210 stage3: force
211 - mkdir stage3
212 - mv -f $(STAGESTUFF) stage3
213
214 against=stage2
215
216 comparison: force
217 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
218
219 de-stage1: force
220 - (cd stage1 ; mv -f * ..)
221 - rmdir stage1
222
223 de-stage2: force
224 - (cd stage2 ; mv -f * ..)
225 - rmdir stage2
226
227 de-stage3: force
228 - (cd stage3 ; mv -f * ..)
229 - rmdir stage3
230
231 ######################################################################
232 # DOCUMENTATION TARGETS
233 # TeX output
234 binutils.dvi: $(srcdir)/binutils.texi
235 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/binutils.texi
236 texindex binutils.??
237 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/binutils.texi
238
239 # info file for online browsing
240 binutils.info: $(srcdir)/binutils.texi
241 $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi
242
243 # different targets for -ms, -mm, -me
244 # Try to use a recent texi2roff. v2 was put on prep in jan91.
245 # If you want an index, see texi2roff doc for postprocessing
246 # and add -i to texi2roff invocations below.
247 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
248 # correspondint -e lines when later texi2roff's are current)
249 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
250 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
251 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
252 # + @alphaenumerate is ridiculously new, turned into @enumerate
253
254 # roff output (-ms)
255 binutils.ms: $(srcdir)/binutils.texi
256 sed -e '/\\input texinfo/d' \
257 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
258 -e '/^@ifinfo/,/^@end ifinfo/d' \
259 -e '/^@c/d' \
260 -e 's/{.*,,/{/' \
261 -e 's/@ / /g' \
262 -e 's/^@alphaenumerate/@enumerate/g' \
263 -e 's/^@end alphaenumerate/@end enumerate/g' \
264 $(srcdir)/binutils.texi | \
265 $(TEXI2ROFF) -ms | \
266 sed -e 's/---/\\(em/g' \
267 >binutils.ms
268
269 # roff output (-mm)
270 # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
271 # try leaving them in
272 binutils.mm: $(srcdir)/binutils.texi
273 sed -e '/\\input texinfo/d' \
274 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
275 -e '/^@ifinfo/,/^@end ifinfo/d' \
276 -e '/^@c/d' \
277 -e 's/{.*,,/{/' \
278 -e '/@noindent/d' \
279 -e 's/@ / /g' \
280 -e 's/^@alphaenumerate/@enumerate/g' \
281 -e 's/^@end alphaenumerate/@end enumerate/g' \
282 $(srcdir)/binutils.texi | \
283 $(TEXI2ROFF) -mm | \
284 sed -e 's/---/\\(em/g' \
285 >binutils.mm
286
287 # roff output (-me)
288 binutils.me: $(srcdir)/binutils.texi
289 sed -e '/\\input texinfo/d' \
290 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
291 -e '/^@ifinfo/,/^@end ifinfo/d' \
292 -e '/^@c/d' \
293 -e 's/{.*,,/{/' \
294 -e 's/@ / /g' \
295 -e 's/^@alphaenumerate/@enumerate/g' \
296 -e 's/^@end alphaenumerate/@end enumerate/g' \
297 $(srcdir)/binutils.texi | \
298 $(TEXI2ROFF) -me | \
299 sed -e 's/---/\\(em/g' \
300 >binutils.me
301
302
303 ######################################################################
304
305 clean:
306 -rm -f *.o *~ \#* core $(STAGESTUFF) TAGS binutils.?? binutils.???
307
308 etags tags: TAGS
309
310 TAGS: force
311 etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
312
313 realclean: clean
314 -rm -f $(STAGESTUFF) TAGS
315
316 install: all
317 for i in $(PROGS) ; do \
318 $(INSTALL_PROGRAM) $$i $(bindir)/$$i ; \
319 done
320 for i in $(MANPAGES) ; do \
321 $(INSTALL_DATA) $(srcdir)/$$i $(man1dir)/$$i ; \
322 done
323
324 install-info: info
325 for i in *.info* ; do \
326 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
327 done
328
329 dist: $(DIST_NAME).tar.Z
330
331 $(DIST_NAME).tar.Z:
332 cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
333 make binutils.mm -f Makefile.in
334 cd ../ld; make ld.mm -f Makefile.in
335 cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z
336 rm -rf ../../$(DIST_NAME)
337
338 # These get around a bug in Sun Make in SunOS 4.1.1
339 alloca.o: alloca.c
340 am29k-pinsn.o: am29k-pinsn.c
341 ar.o: ar.c
342 bucomm.o: bucomm.c
343 copy.o: copy.c
344 cplus-dem.o: cplus-dem.c
345 filemode.o: filemode.c
346 getopt.o: getopt.c
347 getopt1.o: getopt1.c
348 gmalloc.o: gmalloc.c
349 i960-pinsn.o: i960-pinsn.c
350 is-ranlib.o: is-ranlib.c
351 is-strip.o: is-strip.c
352 m68k-pinsn.o: m68k-pinsn.c
353 maybe-ranlib.o: maybe-ranlib.c
354 maybe-strip.o: maybe-strip.c
355 nm.o: nm.c
356 not-ranlib.o: not-ranlib.c
357 not-strip.o: not-strip.c
358 objdump.o: objdump.c
359 size.o: size.c
360 sparc-pinsn.o: sparc-pinsn.c
361 strip.o: strip.c
362 version.o: $(srcdir)/version.c
363 $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c $(srcdir)/version.c
364
365 #-----------------------------------------------------------------------------
366 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
367 #
368 # 'VERSION' file must be present and contain a string of the form "x.y"
369 #-----------------------------------------------------------------------------
370
371 ver960.c: FORCE
372 rm -f ver960.c
373 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
374
375
376 # Dummy target to force execution of dependent targets.
377 #
378 force:
379
380 # Target to uncomment host-specific lines in this makefile. Such lines must
381 # have the following string beginning in column 1: #__<hostname>__#
382 # Original Makefile is backed up as 'Makefile.old'.
383 #
384 # Invoke with: make make HOST=xxx
385 #
386 make:
387 -@if test $(HOST)x = x ; then \
388 echo '\aSpecify "make make HOST=???"'; \
389 exit 1; \
390 fi ; \
391 grep -s "^#The next line was generated by 'make make'" Makefile; \
392 if test $$? = 0 ; then \
393 echo "\aMakefile has already been processed with 'make make'";\
394 exit 1; \
395 fi ; \
396 mv -f Makefile Makefile.old; \
397 echo "#The next line was generated by 'make make'" >Makefile ; \
398 echo "HOST=$(HOST)" >>Makefile ; \
399 echo >>Makefile ; \
400 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
401
402 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
403 $(SHELL) ./config.status
404
405 ### Local Variables: ***
406 ### mode:fundamental ***
407 ### page-delimiter: "^#" ***
408 ### End: ***
409 ### end of file
This page took 0.040159 seconds and 4 git commands to generate.