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