formatting improvements (already in progressive)
[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
56BISON = bison -y
57MAKEINFO = makeinfo
58RANLIB = ranlib
813da1a5 59
77b19d3d 60LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex -S$(srcdir)/../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
31e54f5d
RP
147 $(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y
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
9d1fe8a4 171# /lib/cpp -E -P $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(VPATH)/ldlex.l >ldlex.p
e14a43bf 172
813da1a5 173 $(LEX) -I -Cem -t $(VPATH)/ldlex.l >ldlex.c
9d1fe8a4 174# cp ldlex.q ldlex.c
cbbdbb9f 175
19b03b7a 176
c61b4184
PB
177# These all start with ld__ so 'make clean' can find them.
178
7e5c1057
PB
179GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${host_alias} ${target_alias}
180GEN_DEPENDS=./mkscript $(srcdir)/genscripts.sh
181
182ld__sun4.c: $(srcdir)/sun4.sh \
183 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
184 ${GENSCRIPTS} sun4.sh
185ld__sun3.c: $(srcdir)/sun3.sh \
186 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
187 ${GENSCRIPTS} sun3.sh
9d1fe8a4
SC
188ld__go32.c: $(srcdir)/go32.sh \
189 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
190 ${GENSCRIPTS} go32.sh
7e5c1057
PB
191ld__news.c: $(srcdir)/news.sh \
192 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
193 ${GENSCRIPTS} news.sh
1584d069
PB
194ld__hp300bsd.c: $(srcdir)/hp300bsd.sh \
195 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
196 ${GENSCRIPTS} hp300bsd.sh
7e5c1057
PB
197ld__i386aout.c: $(srcdir)/i386aout.sh \
198 $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
199 ${GENSCRIPTS} i386aout.sh
200ld__ebmon29k.c: $(srcdir)/ebmon29k.sh \
201 $(srcdir)/generic.em $(srcdir)/ebmon29k.sc-sh ${GEN_DEPENDS}
202 ${GENSCRIPTS} ebmon29k.sh
fe3e4dfc
SC
203ld__sa29200.c: $(srcdir)/sa29200.sh \
204 $(srcdir)/generic.em $(srcdir)/sa29200.sc-sh ${GEN_DEPENDS}
205 ${GENSCRIPTS} sa29200.sh
7e5c1057
PB
206ld__a29k.c: $(srcdir)/a29k.sh \
207 $(srcdir)/generic.em $(srcdir)/a29k.sc-sh ${GEN_DEPENDS}
208 ${GENSCRIPTS} a29k.sh
209ld__m88kbcs.c: $(srcdir)/m88kbcs.sh \
210 $(srcdir)/generic.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
211 ${GENSCRIPTS} m88kbcs.sh
212ld__h8300hms.c: $(srcdir)/h8300hms.sh \
213 $(srcdir)/h8300hms.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
214 ${GENSCRIPTS} h8300hms.sh
9d1fe8a4
SC
215ld__h8300xray.c: $(srcdir)/h8300xray.sh \
216 $(srcdir)/h8300xray.em $(srcdir)/h8300xray.sc-sh ${GEN_DEPENDS}
217 ${GENSCRIPTS} h8300xray.sh
119afd7b
RP
218ld__st2000.c: $(srcdir)/st2000.sh \
219 $(srcdir)/st2000.em $(srcdir)/st2000.sc-sh ${GEN_DEPENDS}
220 ${GENSCRIPTS} st2000.sh
7e5c1057
PB
221ld__vanilla.c: $(srcdir)/vanilla.sh \
222 $(srcdir)/vanilla.em $(srcdir)/vanilla.sc-sh ${GEN_DEPENDS}
223 ${GENSCRIPTS} vanilla.sh
224ld__lnk960.c: $(srcdir)/lnk960.sh \
225 $(srcdir)/lnk960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
226 ${GENSCRIPTS} lnk960.sh
227ld__gld960.c: $(srcdir)/gld960.sh \
228 $(srcdir)/gld960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
229 ${GENSCRIPTS} gld960.sh
eb02fd64 230
e77463a1 231$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
77b19d3d 232 $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
e7921bd4 233
7e5c1057 234# Rules for testing by relinking ld itself.
eb02fd64 235
7e5c1057
PB
236ld-partial.o: ld.new
237 $(HOSTING_EMU); ./ld.new -o ld-partial.o -r $(OFILES)
238ld1: ld-partial.o
239 $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 240
7e5c1057
PB
241ld1-full: ld.new
242 $(HOSTING_EMU); ./ld.new -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 243
d20fb445
SC
244ld2: ld1
245 $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 246
eb02fd64 247ld3: ld2
e77463a1 248 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 249
d20fb445
SC
250bootstrap: ld3
251 cmp ld2 ld3
252
8073190b
RP
253######################################################################
254# DOCUMENTATION TARGETS
255# TeX output
9c7810d6
RP
256ld.dvi: $(srcdir)/ld.texinfo
257 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
8d317d2a 258 texindex ld.??
9c7810d6 259 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/ld.texinfo
8d317d2a 260
8073190b 261# info file for online browsing
9c7810d6 262ld.info: $(srcdir)/ld.texinfo
e06ba18d 263 $(MAKEINFO) -o ld.info $(srcdir)/ld.texinfo
eb02fd64 264
954ac2ea 265#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
266# Try to use a recent texi2roff. v2 was put on prep in jan91.
267# If you want an index, see texi2roff doc for postprocessing
268# and add -i to texi2roff invocations below.
269# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
270# correspondint -e lines when later texi2roff's are current)
271# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
272# + @c's deleted explicitly because texi2roff sees texinfo commands in them
273# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
274# + @alphaenumerate is ridiculously new, turned into @enumerate
275
9c7810d6 276ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
277 sed -e '/\\input texinfo/d' \
278 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
279 -e '/^@ifinfo/,/^@end ifinfo/d' \
280 -e '/^@c/d' \
281 -e 's/{.*,,/{/' \
282 -e 's/@ / /g' \
283 -e 's/^@alphaenumerate/@enumerate/g' \
284 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 285 $(srcdir)/ld.texinfo | \
e06ba18d
PB
286 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
287 sed -e 's/---/\\(em/g' \
288 >>ld.ms
8073190b
RP
289
290# index for roff output
291ld-index.ms: ld.ms
292 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
293 sed -e '/: warning:/d' | \
294 texi2index >ld-index.ms
295
954ac2ea 296# roff output (-mm)
9c7810d6 297ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
298 sed -e '/\\input texinfo/d' \
299 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
300 -e '/^@ifinfo/,/^@end ifinfo/d' \
301 -e '/^@c/d' \
9c7810d6
RP
302 -e 's/{.*,,/{/' \
303 -e '/@noindent/d' \
e06ba18d
PB
304 -e 's/@ / /g' \
305 -e 's/^@alphaenumerate/@enumerate/g' \
306 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 307 $(srcdir)/ld.texinfo | \
e06ba18d 308 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
309 sed -e 's/---/\\(em/g' \
310 >ld.mm
954ac2ea
RP
311
312# index for roff output
313ld-index.mm: ld.mm
314 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
315 sed -e '/: warning:/d' | \
316 texi2index >ld-index.mm
317
318# roff output (-me)
9c7810d6 319ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
320 sed -e '/\\input texinfo/d' \
321 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
322 -e '/^@ifinfo/,/^@end ifinfo/d' \
323 -e '/^@c/d' \
324 -e 's/{.*,,/{/' \
325 -e 's/@ / /g' \
326 -e 's/^@alphaenumerate/@enumerate/g' \
327 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 328 $(srcdir)/ld.texinfo | \
e06ba18d
PB
329 $(TEXI2ROFF) $(TEXI2OPT) -me | \
330 sed -e 's/---/\\(em/g' \
331 >>ld.me
954ac2ea
RP
332
333# index for roff output
334ld-index.me: ld.me
335 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
336 sed -e '/: warning:/d' | \
337 texi2index >ld-index.me
338
339
8073190b
RP
340######################################################################
341
12fa72d4 342./mkscript: $(srcdir)/mkscript.c
77b19d3d 343 $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES)
f78e2569 344
cc964c6f
SC
345ldlex.c: ldlex.l ldgram.h
346ldlex.o: ldlex.c ldgram.h
347ldgram.o: ldgram.c
348ldgram.c:ldgram.y
eb02fd64 349
7e5c1057 350h8300hms.o:h8300hms.c
9d1fe8a4 351h8300xray.o:h8300xray.c
119afd7b 352st2000.o:st2000.c
565a4c76 353
e7921bd4 354stage1: force
e06ba18d
PB
355 -mkdir stage1
356 -mv -f $(STAGESTUFF) stage1
357 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 358
e7921bd4 359stage2: force
e06ba18d
PB
360 -mkdir stage2
361 -mv -f $(STAGESTUFF) stage2
362 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 363
e7921bd4 364stage3: force
e06ba18d
PB
365 -mkdir stage3
366 -mv -f $(STAGESTUFF) stage3
367 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 368
e46cdcdd
RP
369against=stage2
370
371comparison: force
372 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
373
e7921bd4 374de-stage1: force
e06ba18d
PB
375 -(cd stage1 ; mv -f * ..)
376 -rm ld
377 -rmdir stage1
e7921bd4
RP
378
379de-stage2: force
e06ba18d
PB
380 -(cd stage2 ; mv -f * ..)
381 -rm ld
382 -rmdir stage2
e7921bd4
RP
383
384de-stage3: force
e06ba18d
PB
385 -(cd stage3 ; mv -f * ..)
386 -rm ld
387 -rmdir stage3
e7921bd4
RP
388
389clean:
7e5c1057
PB
390 -rm -f TAGS $(STAGESTUFF)
391 -rm -f ld.?? ld.??? ldlex.[qp]
392 -rm -f ld ld1 ld2 ld3 *.o y.output
eb02fd64
RP
393
394lintlog:$(SOURCES) Makefile
2ee11735 395 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
396| grep -v "pointer casts may be troublesome" \
397| grep -v "possible pointer alignment problem" \
398| grep -v "ignore" \
399| grep -v "conversion from long may lose accuracy" \
400| grep -v "warning: constant argument to NOT" \
401| grep -v "enumeration type clash, operator CAST" \
402| grep -v "warning: constant in conditional context"\
403| grep -v "archive\.c"
404
405
406tags TAGS:$(SOURCES) $(HEADERS)
19b03b7a 407 etags -t $?
eb02fd64 408
eb02fd64
RP
409
410objdump:objdump.c
411
12fa72d4 412.PHONY: install
e7921bd4 413install: $(LD_PROG)
9d1fe8a4 414 mv ld.new ld
12fa72d4 415 -rm -f $(bindir)/$(program_prefix)ld
9d1fe8a4 416 $(INSTALL_PROGRAM) ld $(bindir)/$(program_prefix)ld
119afd7b
RP
417 -rm -f $(tooldir)/ld
418 $(INSTALL_PROGRAM) ld $(tooldir)/ld
9d1fe8a4
SC
419 -rm -f $(man1dir)/$(program_prefix)ld.1
420 $(INSTALL_DATA) $(srcdir)/gld.1 $(man1dir)/$(program_prefix)ld.1
e06ba18d
PB
421
422install-info: info
afe3aa73 423 for i in ld.info* ; do \
e06ba18d 424 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
afe3aa73
RP
425 done
426
12fa72d4
SC
427clean-info:
428 -rm -rf *.info*
429
eb02fd64
RP
430#-----------------------------------------------------------------------------
431# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
432#
433# 'VERSION' file must be present and contain a string of the form "x.y"
434#-----------------------------------------------------------------------------
435
436ver960.c: FORCE
437 rm -f ver960.c
438 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
439
440
441# This target should be invoked before building a new release.
442# 'VERSION' file must be present and contain a string of the form "x.y"
443#
444roll:
445 @V=`cat VERSION` ; \
446 MAJ=`sed 's/\..*//' VERSION` ; \
447 MIN=`sed 's/.*\.//' VERSION` ; \
448 V=$$MAJ.`expr $$MIN + 1` ; \
449 rm -f VERSION ; \
450 echo $$V >VERSION ; \
451 echo Version $$V
452
239d28f3 453
e1e5fbfc 454dep: $(LDSOURCES)
239d28f3
SC
455 mkdep $(CFLAGS) $?
456
eb02fd64
RP
457# Dummy target to force execution of dependent targets.
458#
e7921bd4 459force:
eb02fd64
RP
460
461# Target to uncomment host-specific lines in this makefile. Such lines must
462# have the following string beginning in column 1: #__<hostname>__#
463# Original Makefile is backed up as 'Makefile.old'.
464#
465# Invoke with: make make HOST=xxx
466#
467make:
468 -@if test $(HOST)x = x ; then \
469 echo '\aSpecify "make make HOST=???"'; \
470 exit 1; \
471 fi ; \
472 grep -s "^#The next line was generated by 'make make'" Makefile; \
473 if test $$? = 0 ; then \
474 echo "\aMakefile has already been processed with 'make make'";\
475 exit 1; \
476 fi ; \
477 mv -f Makefile Makefile.old; \
478 echo "#The next line was generated by 'make make'" >Makefile ; \
479 echo "HOST=$(HOST)" >>Makefile ; \
480 echo >>Makefile ; \
481 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
482
483#\f
484
f1eb48b6 485Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 486 $(SHELL) ./config.status
eb02fd64 487
eb02fd64 488### mode:fundamental ***
e06ba18d 489### Local Variables: ***
eb02fd64
RP
490### page-delimiter: "^#\f" ***
491### End: ***
492### end of file
239d28f3
SC
493
494
495# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.06978 seconds and 4 git commands to generate.