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