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