* Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
[deliverable/binutils-gdb.git] / binutils / Makefile.in
CommitLineData
d8474a9b 1# Makefile for GNU binary-file utilities
d8e89b6b 2# Copyright (C) 1989-1992 Free Software Foundation, Inc.
d8474a9b
PB
3
4# This file is part of GNU binutils.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
99a42820 19
a10d26a1 20srcdir = .
84396dcf 21
d8e89b6b
RP
22prefix = /usr/local
23
3790af1d 24program_transform_name =
d8e89b6b
RP
25exec_prefix = $(prefix)
26bindir = $(exec_prefix)/bin
27libdir = $(exec_prefix)/lib
f6dddd4e 28tooldir = $(exec_prefix)/$(target_alias)
d8e89b6b
RP
29
30datadir = $(prefix)/lib
31mandir = $(prefix)/man
32man1dir = $(mandir)/man1
33man2dir = $(mandir)/man2
34man3dir = $(mandir)/man3
35man4dir = $(mandir)/man4
36man5dir = $(mandir)/man5
37man6dir = $(mandir)/man6
38man7dir = $(mandir)/man7
39man8dir = $(mandir)/man8
40man9dir = $(mandir)/man9
41infodir = $(prefix)/info
42includedir = $(prefix)/include
43docdir = $(datadir)/doc
84396dcf
RP
44
45SHELL = /bin/sh
d8e89b6b
RP
46
47INSTALL = install -c
48INSTALL_PROGRAM = $(INSTALL)
49INSTALL_DATA = $(INSTALL)
50
51AR = ar
52AR_FLAGS = qv
53CFLAGS = -g
d8e89b6b 54MAKEINFO = makeinfo
c921e2aa 55TEXI2DVI = texi2dvi
d8e89b6b 56RANLIB = ranlib
9752f9fd 57BISONFLAGS = -d
c83497f5 58TEXI2ROFF=texi2roff
b5132a6b 59
f50af42b
KR
60NM_FOR_TARGET = nm
61NM = $(NM_FOR_TARGET)
8d5d0e11
PB
62SYMLINK = ln -s
63
9752f9fd 64BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
45212e5e
PB
65# Comment these out if using lex.
66LEX_OPTIONS = -I -Cem
e2fe2df4 67LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
45212e5e 68
8539db10 69# Distribution version
f50af42b 70VERSION=2.2
8539db10 71# Distribution name
d8e89b6b 72DIST_NAME=binutils-${VERSION}
8539db10 73
d8e89b6b 74version=`./../gcc/gcc -dumpversion`
b5132a6b 75
6b583720 76# Where to find texinfo.tex to format docn with TeX
b7a11ec2
RP
77TEXIDIR = $(srcdir)/../texinfo/fsf
78
3790af1d 79MANPAGES= ar nm objdump ranlib size strip
84396dcf 80
a10d26a1 81#CC=gcc -Wall
06a97fbd 82# these two are almost the same program
a10d26a1
RP
83AR_PROG=ar
84RANLIB_PROG=ranlib
99a42820 85
df14d957
ILT
86# objcopy and strip should be the same program
87OBJCOPY_PROG=objcopy
a10d26a1 88STRIP_PROG=strip
99a42820
RP
89
90# These should all be the same program too.
a10d26a1
RP
91SIZE_PROG=size
92NM_PROG=nm
93OBJDUMP_PROG=objdump
99a42820 94
c921e2aa 95# This is the demangler, as a standalone program.
df14d957 96DEMANGLER_PROG=c++filt
c921e2aa 97
df14d957 98PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG)
a01bf1fb 99STAGESTUFF = $(PROGS) *.o
8d5d0e11 100# Files that can be generated, but should be in the distribution.
f50af42b 101DISTSTUFF=arparse.c arlex.c
99a42820 102
40773f7f 103BASEDIR = $(srcdir)/..
d8e89b6b 104LIBDIR = ./../bfd
a4ef8601 105OPCODEDIR = ./../opcodes
a10d26a1 106
a10d26a1
RP
107#### host and target dependant Makefile fragments come in here.
108###
109
3f97524f 110INCLUDES = -I. -I$(srcdir) -I$(BASEDIR)/include -I$(BASEDIR)/bfd
99a42820 111
d8e89b6b 112.c.o:
3f97524f 113 $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $<
99a42820 114
99a42820
RP
115#\f
116## Random definitions
117# Hopefully all these may be flushed once we get configuration down pat.
118
119# alloca only needed for systems which don't have it and when cc != gcc.
120# ALLOCA = alloca.o
121
122# nm tries to malloc enough space for the string table. The old GNU malloc
123# rounds this up to a power of two (e.g. 5M becomes 8M), and so it might
124# fail unnecessarily. I've also seen some Unix malloc's fail, even when
125# there is enough memory. So use the new GNU malloc.
126# MALLOC = gmalloc.o
127
128# Use the GNU getopt unless you have problems with it.
129# The IRIS version could probably benefit from being assembled with
130# libmalloc rather than the ordinary malloc.
c921e2aa
FF
131LIBIBERTY_SRC_DIR = $(srcdir)/../libiberty
132LIBIBERTY_BIN_DIR = ./../libiberty
133LIBIBERTY = $(LIBIBERTY_BIN_DIR)/libiberty.a
99a42820
RP
134
135# Code shared by all the binutils.
a10d26a1 136BULIBS = bucomm.o version.o filemode.o
99a42820 137
7a5a3c7b 138ADDL_LIBS = $(MALLOC) $(BULIBS) $(BFD) $(LIBIBERTY)
99a42820
RP
139
140BFD = $(LIBDIR)/libbfd.a
a4ef8601 141OPCODES = $(OPCODEDIR)/libopcodes.a
f6dddd4e 142
df14d957 143RUNTEST = runtest
f6dddd4e
PB
144RUNTESTFLAGS =
145FLAGS_TO_PASS = \
4447efa2
ILT
146 "CC=$(CC)" \
147 "CFLAGS=$(CFLAGS)" \
df14d957 148 "RUNTEST=$(RUNTEST)" \
f6dddd4e
PB
149 "RUNTESTFLAGS=$(RUNTESTFLAGS) \
150 SIZE=`if [ -f $$rootme/$(SIZE_PROG) ] ; then echo $$rootme/$(SIZE_PROG) ; else echo $(SIZE_PROG); fi` \
df14d957 151 OBJCOPY=`if [ -f $$rootme/$(OBJCOPY_PROG) ] ; then echo $$rootme/$(OBJCOPY_PROG) ; else echo $(OBJCOPY_PROG); fi` \
f6dddd4e
PB
152 NM=`if [ -f $$rootme/$(NM_PROG) ] ; then echo $$rootme/$(NM_PROG) ; else echo $(NM_PROG); fi` \
153 AR=`if [ -f $$rootme/$(AR_PROG) ] ; then echo $$rootme/$(AR_PROG) ; else echo $(AR_PROG); fi` \
154 OBJDUMP=`if [ -f $$rootme/$(OBJDUMP_PROG) ] ; then echo $$rootme/$(OBJDUMP_PROG) ; else echo $(OBJDUMP_PROG); fi` \
155 STRIP=`if [ -f $$rootme/$(STRIP_PROG) ] ; then echo $$rootme/$(STRIP_PROG) ; else echo $(STRIP_PROG); fi` \
156 RANLIB=`if [ -f $$rootme/$(RANLIB_PROG) ] ; then echo $$rootme/$(RANLIB_PROG) ; else echo $(RANLIB_PROG); fi` \
157 DEMANGLE=`if [ -f $$rootme/$(DEMANGLER_PROG) ] ; then echo $$rootme/$(DEMANGLER_PROG) ; else echo $(DEMANGLER_PROG); fi`"
158
99a42820
RP
159#\f
160## The rules
161
f6dddd4e 162all: $(ADDL_LIBS) $(PROGS)
4f8b1219
MW
163
164testsuite:
3048fb38 165 if [ -d testsuite ]; then \
4f8b1219
MW
166 (rootme=`pwd`/ ; export rootme ; \
167 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
f6dddd4e 168 cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \
3048fb38 169 else true ; fi
c83497f5 170
f6dddd4e
PB
171check: force
172 rootme=`pwd`; export rootme; cd testsuite ; \
173 $(MAKE) check $(FLAGS_TO_PASS)
174# /bin/sh $(srcdir)/sanity.sh .
d8e89b6b 175
f7ed13c7 176installcheck:
7d6cc102
RP
177 /bin/sh $(srcdir)/sanity.sh $(bindir)
178
d8e89b6b 179info: binutils.info
a10d26a1 180
c921e2aa
FF
181dvi: binutils.dvi
182
a10d26a1
RP
183#$(BFD):$(LIBDIR)/../common/*.c
184# (cd $(LIBDIR); make)
99a42820 185
a10d26a1 186$(SIZE_PROG): $(ADDL_LIBS) size.o $(BFD)
6a3958b2 187 $(CC) $(LDFLAGS) $(CFLAGS) -o $(SIZE_PROG) size.o $(ADDL_LIBS) $(LOADLIBES)
99a42820 188
df14d957
ILT
189$(OBJCOPY_PROG): $(ADDL_LIBS) objcopy.o not-strip.o $(BFD)
190 $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJCOPY_PROG) objcopy.o not-strip.o $(ADDL_LIBS) $(LOADLIBES)
d8e89b6b 191
df14d957
ILT
192$(STRIP_PROG): $(ADDL_LIBS) objcopy.o is-strip.o $(BFD)
193 $(CC) $(LDFLAGS) $(CFLAGS) -o $(STRIP_PROG) objcopy.o is-strip.o $(ADDL_LIBS) $(LOADLIBES)
99a42820 194
a10d26a1 195$(NM_PROG): $(ADDL_LIBS) nm.o $(BFD)
6a3958b2 196 $(CC) $(LDFLAGS) $(CFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(LOADLIBES)
99a42820 197
f6dddd4e
PB
198$(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(BFD) $(OPCODES)
199 $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(OPCODES) $(ADDL_LIBS) $(LOADLIBES)
99a42820 200
f50af42b
KR
201underscore.c:
202 echo "int xxy_us_dummy;" >dummy.c
203 $(CC) -c dummy.c
204 echo '/*WARNING: This file is automatically generated!*/' >underscore.c
205 if [ "`$(NM) dummy.o | grep _xxy_us_dummy`" != "" ]; then \
206 echo "int prepends_underscore = 1;" >>underscore.c; \
207 else \
208 echo "int prepends_underscore = 0;" >>underscore.c; \
209 fi
210 -rm -f dummy.c dummy.o
211
212cplus-dem.o: $(LIBIBERTY_SRC_DIR)/cplus-dem.c
213 $(CC) -c -DMAIN $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(LIBIBERTY_SRC_DIR)/cplus-dem.c
214
215$(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o
216 $(CC) $(LDFLAGS) $(CFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(LOADLIBES) underscore.o
c921e2aa 217
d8e89b6b 218arparse.c:arparse.y
9752f9fd
ME
219 $(BISON) $(BISONFLAGS) $(srcdir)/arparse.y
220 -mv y.tab.c arparse.c
221 -mv y.tab.h arparse.h
d8e89b6b 222
99a42820 223
9752f9fd
ME
224arlex.c: arlex.l
225 $(LEX) $(LEX_OPTIONS) $(srcdir)/arlex.l
226 mv lex.yy.c arlex.c
d8e89b6b
RP
227
228$(AR_PROG): $(ADDL_LIBS) ar.o arparse.o arlex.o not-ranlib.o $(BFD) arsup.o
229 $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o arparse.o arlex.o arsup.o not-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
230
231$(RANLIB_PROG): $(ADDL_LIBS) ar.o is-ranlib.o arparse.o arlex.o arsup.o $(BFD)
232 $(CC) $(LDFLAGS) $(CFLAGS) -o $(RANLIB_PROG) ar.o arparse.o arlex.o arsup.o is-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
06a97fbd
PB
233
234# This rule creates a single binary that switches between ar and ranlib
235# by looking at argv[0]. Use this kludge to save some disk space.
236# However, you have to install things by hand.
237# (That is after 'make install', replace the installed ranlib by a link to ar.)
238
239# Alternatively, you can install ranlib.sh as ranlib.
240
241ar_with_ranlib: $(ADDL_LIBS) ar.o maybe-ranlib.o $(BFD)
242 $(CC) $(LDFLAGS) $(CFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(LOADLIBES)
a10d26a1
RP
243 -rm -f $(RANLIB_PROG)
244 -ln $(AR_PROG) $(RANLIB_PROG)
99a42820 245
df14d957 246# objcopy and strip in one binary that uses argv[0] to decide its action.
d8e89b6b 247
df14d957
ILT
248objcopy_with_strip: $(ADDL_LIBS) objcopy.o maybe-strip.o $(BFD)
249 $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(LOADLIBES)
a10d26a1 250 -rm -f $(STRIP_PROG)
df14d957 251 -ln $(OBJCOPY_PROG) $(STRIP_PROG)
99a42820 252
6a3958b2
RP
253stage1: force
254 - mkdir stage1
a01bf1fb 255 - mv -f $(STAGESTUFF) stage1
6a3958b2
RP
256
257stage2: force
258 - mkdir stage2
a01bf1fb 259 - mv -f $(STAGESTUFF) stage2
6a3958b2
RP
260
261stage3: force
262 - mkdir stage3
a01bf1fb
RP
263 - mv -f $(STAGESTUFF) stage3
264
265against=stage2
266
267comparison: force
268 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
6a3958b2
RP
269
270de-stage1: force
271 - (cd stage1 ; mv -f * ..)
272 - rmdir stage1
273
274de-stage2: force
275 - (cd stage2 ; mv -f * ..)
276 - rmdir stage2
277
278de-stage3: force
279 - (cd stage3 ; mv -f * ..)
280 - rmdir stage3
281
6b583720
RP
282######################################################################
283# DOCUMENTATION TARGETS
284# TeX output
2226a090 285binutils.dvi: $(srcdir)/binutils.texi
c921e2aa 286 $(TEXI2DVI) $(srcdir)/binutils.texi
b7a11ec2 287
6b583720 288# info file for online browsing
2226a090 289binutils.info: $(srcdir)/binutils.texi
6141fd50 290 $(MAKEINFO) -o binutils.info $(srcdir)/binutils.texi
b7a11ec2 291
0c10ff03 292# different targets for -ms, -mm, -me
c83497f5
RP
293# Try to use a recent texi2roff. v2 was put on prep in jan91.
294# If you want an index, see texi2roff doc for postprocessing
295# and add -i to texi2roff invocations below.
296# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
297# correspondint -e lines when later texi2roff's are current)
298# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
299# + @c's deleted explicitly because texi2roff sees texinfo commands in them
300# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
301# + @alphaenumerate is ridiculously new, turned into @enumerate
302
0c10ff03 303# roff output (-ms)
2226a090 304binutils.ms: $(srcdir)/binutils.texi
6b583720
RP
305 sed -e '/\\input texinfo/d' \
306 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
c83497f5
RP
307 -e '/^@ifinfo/,/^@end ifinfo/d' \
308 -e '/^@c/d' \
2226a090 309 -e 's/{.*,,/{/' \
c83497f5
RP
310 -e 's/@ / /g' \
311 -e 's/^@alphaenumerate/@enumerate/g' \
312 -e 's/^@end alphaenumerate/@end enumerate/g' \
2226a090 313 $(srcdir)/binutils.texi | \
d8e89b6b 314 $(TEXI2ROFF) -ms | \
c83497f5
RP
315 sed -e 's/---/\\(em/g' \
316 >binutils.ms
6b583720 317
0c10ff03 318# roff output (-mm)
c83497f5
RP
319# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
320# try leaving them in
2226a090 321binutils.mm: $(srcdir)/binutils.texi
0c10ff03
RP
322 sed -e '/\\input texinfo/d' \
323 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
c83497f5
RP
324 -e '/^@ifinfo/,/^@end ifinfo/d' \
325 -e '/^@c/d' \
2226a090
RP
326 -e 's/{.*,,/{/' \
327 -e '/@noindent/d' \
c83497f5
RP
328 -e 's/@ / /g' \
329 -e 's/^@alphaenumerate/@enumerate/g' \
330 -e 's/^@end alphaenumerate/@end enumerate/g' \
2226a090 331 $(srcdir)/binutils.texi | \
d8e89b6b 332 $(TEXI2ROFF) -mm | \
2226a090
RP
333 sed -e 's/---/\\(em/g' \
334 >binutils.mm
0c10ff03
RP
335
336# roff output (-me)
2226a090 337binutils.me: $(srcdir)/binutils.texi
0c10ff03
RP
338 sed -e '/\\input texinfo/d' \
339 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
c83497f5
RP
340 -e '/^@ifinfo/,/^@end ifinfo/d' \
341 -e '/^@c/d' \
2226a090 342 -e 's/{.*,,/{/' \
c83497f5
RP
343 -e 's/@ / /g' \
344 -e 's/^@alphaenumerate/@enumerate/g' \
345 -e 's/^@end alphaenumerate/@end enumerate/g' \
2226a090 346 $(srcdir)/binutils.texi | \
d8e89b6b 347 $(TEXI2ROFF) -me | \
c83497f5
RP
348 sed -e 's/---/\\(em/g' \
349 >binutils.me
0c10ff03
RP
350
351
6b583720
RP
352######################################################################
353
8d5d0e11 354mostlyclean:
3f97524f 355 -rm -f *.o *~ \#* core binutils.?? binutils.???
8d5d0e11 356clean: mostlyclean
f50af42b 357 -rm -f $(PROGS) underscore.c
8d5d0e11 358distclean: clean
eeece52d 359 -rm -f Makefile config.status sysdep.h
8d5d0e11
PB
360realclean: distclean
361 -rm -f $(DISTSTUFF) TAGS
99a42820
RP
362
363etags tags: TAGS
364
6a3958b2 365TAGS: force
99a42820
RP
366 etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
367
c83497f5 368install: all
f478fcf6
ILT
369 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
370 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
371 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
3f97524f 372 -for i in $(PROGS) ; do \
3790af1d 373 $(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \
99a42820 374 done
f478fcf6
ILT
375 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
376 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
377 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
3f97524f 378 -for i in $(MANPAGES) ; do \
3790af1d 379 $(INSTALL_DATA) $(srcdir)/$$i.1 $(man1dir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t`.1 ; \
de53632c 380 done
3f97524f
DZ
381 -if [ -d $(tooldir) ]; then \
382 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
383 for i in nm strip ; do \
384 rm -f $(tooldir)/bin/$$i; \
385 ln $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` $(tooldir)/bin/$$i \
386 || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$i; \
387 done; \
388 else true; fi
c83497f5 389
d8e89b6b 390install-info: info
f478fcf6
ILT
391 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
392 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
393 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
de53632c 394 for i in *.info* ; do \
d8e89b6b 395 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
84396dcf 396 done
99a42820 397
d8e89b6b
RP
398clean-info:
399 -rm -rf *.info*
400
e2fe2df4 401# Making a dist:
ee948e4e
PB
402# cvs rtag binutils-x-yy ld+utils
403# cvs co -r binutils-x-yy ld+utils
e2fe2df4
PB
404# Sanitize
405# cd {HERE}; make dist [-f Makefile.in]
406
f50af42b 407dist: $(DIST_NAME).tar.z
8539db10 408
8d5d0e11
PB
409diststuff: $(DISTSTUFF)
410
f50af42b 411$(DIST_NAME).tar.z:
b27d2046 412 cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
8d5d0e11
PB
413 make diststuff -f Makefile.in
414 cd ../ld; make diststuff -f Makefile.in
3f97524f 415 cd ../gprof; make diststuff -f Makefile.in
7f7b0a77 416 cd ../texinfo; mv texinfo.tex ..; rm -rf *; mv ../texinfo.tex .
2e8adbd7
PB
417 # Take out texinfo from configurable dirs
418 mv ../configure.in tmp; \
419 sed -e '/^host_tools=/s/texinfo //' <tmp >../configure.in; rm tmp
420 cd ..; chmod og=u `find . -print`
f50af42b 421 cd ../..; tar chf - $(DIST_NAME) | gzip >$(DIST_NAME).tar.z
b27d2046 422 rm -rf ../../$(DIST_NAME)
8539db10 423
d7cce023
JG
424# These get around a bug in Sun Make in SunOS 4.1.1
425alloca.o:alloca.c
99a42820 426ar.o: ar.c
22923083 427arsup.o: arsup.c
d7cce023 428bucomm.o: bucomm.c
df14d957 429objcopy.o: objcopy.c
d7cce023 430filemode.o:filemode.c
a10d26a1
RP
431getopt.o:getopt.c
432getopt1.o:getopt1.c
d7cce023 433gmalloc.o:gmalloc.c
d7cce023 434is-ranlib.o:is-ranlib.c
d8e89b6b 435is-strip.o:is-strip.c
d7cce023 436maybe-ranlib.o:maybe-ranlib.c
d8e89b6b 437maybe-strip.o:maybe-strip.c
d7cce023
JG
438nm.o: nm.c
439not-ranlib.o:not-ranlib.c
d8e89b6b 440not-strip.o:not-strip.c
d7cce023
JG
441objdump.o: objdump.c
442size.o: size.c
d7cce023 443strip.o:strip.c
d8e89b6b 444version.o: $(srcdir)/version.c
3f97524f 445 $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' -c $(srcdir)/version.c
8539db10 446
99a42820
RP
447#-----------------------------------------------------------------------------
448# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
449#
450# 'VERSION' file must be present and contain a string of the form "x.y"
451#-----------------------------------------------------------------------------
452
453ver960.c: FORCE
454 rm -f ver960.c
455 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
456
457
458# Dummy target to force execution of dependent targets.
459#
6a3958b2 460force:
99a42820
RP
461
462# Target to uncomment host-specific lines in this makefile. Such lines must
463# have the following string beginning in column 1: #__<hostname>__#
464# Original Makefile is backed up as 'Makefile.old'.
465#
466# Invoke with: make make HOST=xxx
467#
468make:
469 -@if test $(HOST)x = x ; then \
470 echo '\aSpecify "make make HOST=???"'; \
471 exit 1; \
472 fi ; \
473 grep -s "^#The next line was generated by 'make make'" Makefile; \
474 if test $$? = 0 ; then \
475 echo "\aMakefile has already been processed with 'make make'";\
476 exit 1; \
477 fi ; \
478 mv -f Makefile Makefile.old; \
479 echo "#The next line was generated by 'make make'" >Makefile ; \
480 echo "HOST=$(HOST)" >>Makefile ; \
481 echo >>Makefile ; \
482 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
483
f1eb48b6 484Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 485 $(SHELL) ./config.status
99a42820
RP
486
487### Local Variables: ***
488### mode:fundamental ***
489### page-delimiter: "^#\f" ***
490### End: ***
491### end of file
This page took 0.147755 seconds and 4 git commands to generate.