tooldir copy of ld belongs directly in tooldir
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2 1# Makefile for the GNU linker ld (version 2)
12fa72d4 2# Copyright (C) 1989-1992 Free Software Foundation, Inc.
ce4d59e2
SC
3
4# This file is part of GNU ld..
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.
19
eb02fd64
RP
20
21srcdir = .
22
e06ba18d
PB
23prefix = /usr/local
24
12fa72d4
SC
25program_prefix =
26exec_prefix = $(prefix)
27bindir = $(exec_prefix)/bin
28libdir = $(exec_prefix)/lib
29tooldir = $(libdir)
30
e06ba18d 31datadir = $(prefix)/lib
12fa72d4 32mandir = $(prefix)/man
e06ba18d
PB
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
12fa72d4 42infodir = $(prefix)/info
e06ba18d
PB
43includedir = $(prefix)/include
44docdir = $(datadir)/doc
45
2cbe4c5f
HS
46gcclibdir = $(libdir)/gcc/$(target_alias)
47
e06ba18d
PB
48SHELL = /bin/sh
49
50INSTALL = install -c
51INSTALL_PROGRAM = $(INSTALL)
52INSTALL_DATA = $(INSTALL)
53
54AR = ar
55AR_FLAGS = qv
56BISON = bison -y
57MAKEINFO = makeinfo
58RANLIB = ranlib
119afd7b 59LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
8c32cf6e 60
12fa72d4 61#version=/`./../gcc/gcc -dumpversion`
092df318 62version=
8c32cf6e 63
ee17cac9
PB
64# Seach path to override the default search path for -lfoo libraries.
65# If LIB_PATH is empty, the ones in the script (if any) are left alone.
66# Otherwise, they are replaced with the ones given in LIB_PATH,
67# which may have the form: LIB_PATH=/lib:/usr/local/lib
68LIB_PATH =
69
2ee11735 70BASEDIR = ../..
d6e467b4 71INCLUDE = $(srcdir)/../include
2ee11735 72INCLUDES = -I. -I$(srcdir) -I$(INCLUDE)
550e87b5 73MINUS_G = -g
2ee11735 74
8073190b 75# Where to find texinfo.tex to format docn with TeX
8d317d2a
RP
76TEXIDIR = $(srcdir)/../texinfo/fsf
77
10a69a37 78# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
79TEXI2OPT =
80# You neeed this to generate ld-index.ms (or .mm or .me)
81# TEXI2OPT = -i
8073190b 82
e06ba18d
PB
83TEXI2ROFF=texi2roff
84
8073190b
RP
85# Which roff program to use to generate index for texi2roff'd doc
86ROFF = groff
87
7e5c1057 88### Host, target, and site specific Makefile fragments come in here.
2ee11735
RP
89###
90
550e87b5 91CFLAGS = $(INCLUDES) $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CDEFINES)
2ee11735
RP
92LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
93
12fa72d4 94.SUFFIXES: .y .x .xr .xu .xn .xbn .sc .scu .scr .scn $(SUFFIXES)
2ee11735 95
eb02fd64
RP
96# go directly to ld.new in case this ld isn't capable of
97# linking native object on this host. It can be renamed on
98# install.
e7921bd4 99LD_PROG = ld.new
f78e2569 100
eb02fd64 101# for self hosting
12fa72d4
SC
102BFDLIB=./../bfd/libbfd.a
103LIBIBERTY=./../libiberty/libiberty.a
eb02fd64 104
7e5c1057 105ALL_EMULATIONS=ld__lnk960.o ld__sun3.o ld__i386aout.o \
9d1fe8a4 106 ld__go32.o ld__m88kbcs.o ld__a29k.o ld__news.o ld__hp300bsd.o ld__h8300hms.o ld__ebmon29k.o \
119afd7b 107 ld__sun4.o ld__gld960.o ld__vanilla.o ld__h8300xray.o ld__st2000.o
7e5c1057
PB
108
109EMULATION_OFILES=${ALL_EMULATIONS}
110#EMULATION_OFILES=ld__${EMUL}.o ${OTHER_EMULATIONS}
111
119afd7b 112OFILES= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
7e5c1057 113 ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
12fa72d4 114 ldfile.o relax.o lderror.o cplus-dem.o ${EMULATION_OFILES}
eb02fd64 115
ce4d59e2
SC
116HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
117 ldsym.h ldctor.h ldlang.h ldexp.h \
239d28f3 118 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
eb02fd64
RP
119
120MANSOURCES=ld.tex
121
119afd7b 122LDCSOURCES=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
9d1fe8a4 123 ld__gld.c ld__sun3.c ld__go32.c ld__m88k.c ld__ebmon29k.c \
2e2bf962 124 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
12fa72d4 125 relax.c lderror.c cplus-dem.c
eb02fd64 126
7e5c1057
PB
127GENERATED_SOURCES=ldgram.c ldlex.c ld__*.c ldemul-list.h
128GENERATED_HEADERS=ldgram.h ldemul-list.h
eb02fd64 129
cc964c6f 130LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
eb02fd64 131
2ee11735 132BFDSOURCES=../../bfd/common/*.c
eb02fd64
RP
133
134SOURCES= $(LDSOURCES) $(BFDSOURCES)
135LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
136
7e5c1057 137STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript
2ee11735 138
e06ba18d
PB
139all: Makefile $(LD_PROG)
140
12fa72d4 141check:
e06ba18d 142info: ld.info
2ee11735 143
4976e6ab 144ldgram.h ldgram.c: ldgram.y
31e54f5d
RP
145 $(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y
146 mv -f y.tab.c ldgram.c
147 mv -f y.tab.h ldgram.h
cc964c6f 148
d20fb445 149ldmain.o: ldmain.c
7e5c1057
PB
150 $(CC) $(CFLAGS) -DDEFAULT_EMULATION='"$(EMUL)"' -c $<
151
152ldemul-list.h: Makefile
153 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
154 for f in `echo " " ${EMULATION_OFILES} "" \
155 | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
156 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
157 done;\
158 echo "";\
159 echo "#define EMULATION_LIST \\";\
160 for f in `echo " " ${EMULATION_OFILES} "" \
161 | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
162 echo " &ld_$${f}_emulation, \\"; \
163 done;\
164 echo " 0") >ldemul-list.h
165
166ldemul.o: ldemul-list.h
d20fb445 167
4976e6ab 168ldlex.c: ldlex.l
9d1fe8a4 169# /lib/cpp -E -P $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(VPATH)/ldlex.l >ldlex.p
119afd7b 170 $(LEX) -Cem -t $(VPATH)/ldlex.l >ldlex.c
9d1fe8a4 171# cp ldlex.q ldlex.c
cbbdbb9f 172
19b03b7a 173
c61b4184
PB
174# These all start with ld__ so 'make clean' can find them.
175
7e5c1057
PB
176GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${host_alias} ${target_alias}
177GEN_DEPENDS=./mkscript $(srcdir)/genscripts.sh
178
179ld__sun4.c: $(srcdir)/sun4.sh \
180 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
181 ${GENSCRIPTS} sun4.sh
182ld__sun3.c: $(srcdir)/sun3.sh \
183 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
184 ${GENSCRIPTS} sun3.sh
9d1fe8a4
SC
185ld__go32.c: $(srcdir)/go32.sh \
186 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
187 ${GENSCRIPTS} go32.sh
7e5c1057
PB
188ld__news.c: $(srcdir)/news.sh \
189 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
190 ${GENSCRIPTS} news.sh
1584d069
PB
191ld__hp300bsd.c: $(srcdir)/hp300bsd.sh \
192 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
193 ${GENSCRIPTS} hp300bsd.sh
7e5c1057
PB
194ld__i386aout.c: $(srcdir)/i386aout.sh \
195 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
196 ${GENSCRIPTS} i386aout.sh
197ld__ebmon29k.c: $(srcdir)/ebmon29k.sh \
198 $(srcdir)/generic.em $(srcdir)/ebmon29k.sc-sh ${GEN_DEPENDS}
199 ${GENSCRIPTS} ebmon29k.sh
200ld__a29k.c: $(srcdir)/a29k.sh \
201 $(srcdir)/generic.em $(srcdir)/a29k.sc-sh ${GEN_DEPENDS}
202 ${GENSCRIPTS} a29k.sh
203ld__m88kbcs.c: $(srcdir)/m88kbcs.sh \
204 $(srcdir)/generic.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
205 ${GENSCRIPTS} m88kbcs.sh
206ld__h8300hms.c: $(srcdir)/h8300hms.sh \
207 $(srcdir)/h8300hms.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
208 ${GENSCRIPTS} h8300hms.sh
9d1fe8a4
SC
209ld__h8300xray.c: $(srcdir)/h8300xray.sh \
210 $(srcdir)/h8300xray.em $(srcdir)/h8300xray.sc-sh ${GEN_DEPENDS}
211 ${GENSCRIPTS} h8300xray.sh
119afd7b
RP
212ld__st2000.c: $(srcdir)/st2000.sh \
213 $(srcdir)/st2000.em $(srcdir)/st2000.sc-sh ${GEN_DEPENDS}
214 ${GENSCRIPTS} st2000.sh
7e5c1057
PB
215ld__vanilla.c: $(srcdir)/vanilla.sh \
216 $(srcdir)/vanilla.em $(srcdir)/vanilla.sc-sh ${GEN_DEPENDS}
217 ${GENSCRIPTS} vanilla.sh
218ld__lnk960.c: $(srcdir)/lnk960.sh \
219 $(srcdir)/lnk960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
220 ${GENSCRIPTS} lnk960.sh
221ld__gld960.c: $(srcdir)/gld960.sh \
222 $(srcdir)/gld960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
223 ${GENSCRIPTS} gld960.sh
eb02fd64 224
e77463a1 225$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
fe9c20e2 226 $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
e7921bd4 227
7e5c1057 228# Rules for testing by relinking ld itself.
eb02fd64 229
7e5c1057
PB
230ld-partial.o: ld.new
231 $(HOSTING_EMU); ./ld.new -o ld-partial.o -r $(OFILES)
232ld1: ld-partial.o
233 $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 234
7e5c1057
PB
235ld1-full: ld.new
236 $(HOSTING_EMU); ./ld.new -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 237
d20fb445
SC
238ld2: ld1
239 $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 240
eb02fd64 241ld3: ld2
e77463a1 242 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 243
d20fb445
SC
244bootstrap: ld3
245 cmp ld2 ld3
246
8073190b
RP
247######################################################################
248# DOCUMENTATION TARGETS
249# TeX output
9c7810d6
RP
250ld.dvi: $(srcdir)/ld.texinfo
251 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
8d317d2a 252 texindex ld.??
9c7810d6 253 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
8d317d2a 254
8073190b 255# info file for online browsing
9c7810d6 256ld.info: $(srcdir)/ld.texinfo
e06ba18d 257 $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo
eb02fd64 258
954ac2ea 259#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
260# Try to use a recent texi2roff. v2 was put on prep in jan91.
261# If you want an index, see texi2roff doc for postprocessing
262# and add -i to texi2roff invocations below.
263# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
264# correspondint -e lines when later texi2roff's are current)
265# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
266# + @c's deleted explicitly because texi2roff sees texinfo commands in them
267# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
268# + @alphaenumerate is ridiculously new, turned into @enumerate
269
9c7810d6 270ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
271 sed -e '/\\input texinfo/d' \
272 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
273 -e '/^@ifinfo/,/^@end ifinfo/d' \
274 -e '/^@c/d' \
275 -e 's/{.*,,/{/' \
276 -e 's/@ / /g' \
277 -e 's/^@alphaenumerate/@enumerate/g' \
278 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 279 $(srcdir)/ld.texinfo | \
e06ba18d
PB
280 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
281 sed -e 's/---/\\(em/g' \
282 >>ld.ms
8073190b
RP
283
284# index for roff output
285ld-index.ms: ld.ms
286 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
287 sed -e '/: warning:/d' | \
288 texi2index >ld-index.ms
289
954ac2ea 290# roff output (-mm)
9c7810d6 291ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
292 sed -e '/\\input texinfo/d' \
293 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
294 -e '/^@ifinfo/,/^@end ifinfo/d' \
295 -e '/^@c/d' \
9c7810d6
RP
296 -e 's/{.*,,/{/' \
297 -e '/@noindent/d' \
e06ba18d
PB
298 -e 's/@ / /g' \
299 -e 's/^@alphaenumerate/@enumerate/g' \
300 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 301 $(srcdir)/ld.texinfo | \
e06ba18d 302 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
303 sed -e 's/---/\\(em/g' \
304 >ld.mm
954ac2ea
RP
305
306# index for roff output
307ld-index.mm: ld.mm
308 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
309 sed -e '/: warning:/d' | \
310 texi2index >ld-index.mm
311
312# roff output (-me)
9c7810d6 313ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
314 sed -e '/\\input texinfo/d' \
315 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
316 -e '/^@ifinfo/,/^@end ifinfo/d' \
317 -e '/^@c/d' \
318 -e 's/{.*,,/{/' \
319 -e 's/@ / /g' \
320 -e 's/^@alphaenumerate/@enumerate/g' \
321 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 322 $(srcdir)/ld.texinfo | \
e06ba18d
PB
323 $(TEXI2ROFF) $(TEXI2OPT) -me | \
324 sed -e 's/---/\\(em/g' \
325 >>ld.me
954ac2ea
RP
326
327# index for roff output
328ld-index.me: ld.me
329 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
330 sed -e '/: warning:/d' | \
331 texi2index >ld-index.me
332
333
8073190b
RP
334######################################################################
335
12fa72d4 336./mkscript: $(srcdir)/mkscript.c
30104b16 337 $(CC) $(CFLAGS) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES)
f78e2569 338
cc964c6f
SC
339ldlex.c: ldlex.l ldgram.h
340ldlex.o: ldlex.c ldgram.h
341ldgram.o: ldgram.c
342ldgram.c:ldgram.y
eb02fd64 343
7e5c1057 344h8300hms.o:h8300hms.c
9d1fe8a4 345h8300xray.o:h8300xray.c
119afd7b 346st2000.o:st2000.c
565a4c76 347
e7921bd4 348stage1: force
e06ba18d
PB
349 -mkdir stage1
350 -mv -f $(STAGESTUFF) stage1
351 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 352
e7921bd4 353stage2: force
e06ba18d
PB
354 -mkdir stage2
355 -mv -f $(STAGESTUFF) stage2
356 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 357
e7921bd4 358stage3: force
e06ba18d
PB
359 -mkdir stage3
360 -mv -f $(STAGESTUFF) stage3
361 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 362
e46cdcdd
RP
363against=stage2
364
365comparison: force
366 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
367
e7921bd4 368de-stage1: force
e06ba18d
PB
369 -(cd stage1 ; mv -f * ..)
370 -rm ld
371 -rmdir stage1
e7921bd4
RP
372
373de-stage2: force
e06ba18d
PB
374 -(cd stage2 ; mv -f * ..)
375 -rm ld
376 -rmdir stage2
e7921bd4
RP
377
378de-stage3: force
e06ba18d
PB
379 -(cd stage3 ; mv -f * ..)
380 -rm ld
381 -rmdir stage3
e7921bd4
RP
382
383clean:
7e5c1057
PB
384 -rm -f TAGS $(STAGESTUFF)
385 -rm -f ld.?? ld.??? ldlex.[qp]
386 -rm -f ld ld1 ld2 ld3 *.o y.output
eb02fd64
RP
387
388lintlog:$(SOURCES) Makefile
2ee11735 389 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
390| grep -v "pointer casts may be troublesome" \
391| grep -v "possible pointer alignment problem" \
392| grep -v "ignore" \
393| grep -v "conversion from long may lose accuracy" \
394| grep -v "warning: constant argument to NOT" \
395| grep -v "enumeration type clash, operator CAST" \
396| grep -v "warning: constant in conditional context"\
397| grep -v "archive\.c"
398
399
400tags TAGS:$(SOURCES) $(HEADERS)
19b03b7a 401 etags -t $?
eb02fd64 402
eb02fd64
RP
403
404objdump:objdump.c
405
12fa72d4 406.PHONY: install
e7921bd4 407install: $(LD_PROG)
9d1fe8a4 408 mv ld.new ld
12fa72d4 409 -rm -f $(bindir)/$(program_prefix)ld
9d1fe8a4 410 $(INSTALL_PROGRAM) ld $(bindir)/$(program_prefix)ld
119afd7b
RP
411 -rm -f $(tooldir)/ld
412 $(INSTALL_PROGRAM) ld $(tooldir)/ld
9d1fe8a4
SC
413 -rm -f $(man1dir)/$(program_prefix)ld.1
414 $(INSTALL_DATA) $(srcdir)/gld.1 $(man1dir)/$(program_prefix)ld.1
e06ba18d
PB
415
416install-info: info
afe3aa73 417 for i in ld.info* ; do \
e06ba18d 418 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
afe3aa73
RP
419 done
420
12fa72d4
SC
421clean-info:
422 -rm -rf *.info*
423
ce4d59e2
SC
424# Something like the following might make sense for install, but doesn't work
425# - it is too fragile, depending on a gcc binary int the right place.
426# Perhaps using gcc/version.c might work?
427# # If $(gcclibdir) exists, install ld there, and put a link to it
428# # from $(bindir); otherwise put ld in $(bindir).
12fa72d4 429# if ([ -x ./../gcc/gcc -a -d $(gcclibdir) ]); then \
ce4d59e2
SC
430# $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld; \
431# cd $(bindir); rm -f ld; ln -s $(gcclibdir)/ld ld; \
432# else \
433# $(INSTALL_PROGRAM) ld.new $(bindir)/ld; \
434# fi
eb02fd64
RP
435
436#-----------------------------------------------------------------------------
437# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
438#
439# 'VERSION' file must be present and contain a string of the form "x.y"
440#-----------------------------------------------------------------------------
441
442ver960.c: FORCE
443 rm -f ver960.c
444 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
445
446
447# This target should be invoked before building a new release.
448# 'VERSION' file must be present and contain a string of the form "x.y"
449#
450roll:
451 @V=`cat VERSION` ; \
452 MAJ=`sed 's/\..*//' VERSION` ; \
453 MIN=`sed 's/.*\.//' VERSION` ; \
454 V=$$MAJ.`expr $$MIN + 1` ; \
455 rm -f VERSION ; \
456 echo $$V >VERSION ; \
457 echo Version $$V
458
239d28f3 459
e1e5fbfc 460dep: $(LDSOURCES)
239d28f3
SC
461 mkdep $(CFLAGS) $?
462
eb02fd64
RP
463# Dummy target to force execution of dependent targets.
464#
e7921bd4 465force:
eb02fd64
RP
466
467# Target to uncomment host-specific lines in this makefile. Such lines must
468# have the following string beginning in column 1: #__<hostname>__#
469# Original Makefile is backed up as 'Makefile.old'.
470#
471# Invoke with: make make HOST=xxx
472#
473make:
474 -@if test $(HOST)x = x ; then \
475 echo '\aSpecify "make make HOST=???"'; \
476 exit 1; \
477 fi ; \
478 grep -s "^#The next line was generated by 'make make'" Makefile; \
479 if test $$? = 0 ; then \
480 echo "\aMakefile has already been processed with 'make make'";\
481 exit 1; \
482 fi ; \
483 mv -f Makefile Makefile.old; \
484 echo "#The next line was generated by 'make make'" >Makefile ; \
485 echo "HOST=$(HOST)" >>Makefile ; \
486 echo >>Makefile ; \
487 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
488
489#\f
490
f1eb48b6 491Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 492 $(SHELL) ./config.status
eb02fd64 493
eb02fd64 494### mode:fundamental ***
e06ba18d 495### Local Variables: ***
eb02fd64
RP
496### page-delimiter: "^#\f" ***
497### End: ***
498### end of file
239d28f3
SC
499
500
501# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.067933 seconds and 4 git commands to generate.