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