Added the $(MINUS_G) flag so that debugging can be turned off
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2
SC
1# Makefile for the GNU linker ld (version 2)
2# Copyright (C) 1989-1991 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
eb02fd64
RP
20#
21# $Id$
22#
23
24srcdir = .
25
ffa057ee 26ddestdir = /usr/local
8c32cf6e 27
e45bef1e 28version=`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
ffa057ee
SC
29bindir = $(ddestdir)/bin
30gcclibdir = $(ddestdir)/lib/gcc/$(target_alias)/$(version)
8c32cf6e 31
ee17cac9
PB
32# Seach path to override the default search path for -lfoo libraries.
33# If LIB_PATH is empty, the ones in the script (if any) are left alone.
34# Otherwise, they are replaced with the ones given in LIB_PATH,
35# which may have the form: LIB_PATH=/lib:/usr/local/lib
36LIB_PATH =
37
8c32cf6e
RP
38INSTALL = install -c
39INSTALL_PROGRAM = $(INSTALL)
40INSTALL_FILE = $(INSTALL)
41
2ee11735 42BASEDIR = ../..
d6e467b4 43INCLUDE = $(srcdir)/../include
2ee11735 44INCLUDES = -I. -I$(srcdir) -I$(INCLUDE)
eb02fd64 45DEBUG = -g
2ee11735 46
8073190b 47# Where to find texinfo.tex to format docn with TeX
8d317d2a
RP
48TEXIDIR = $(srcdir)/../texinfo/fsf
49
10a69a37 50# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
51TEXI2OPT =
52# You neeed this to generate ld-index.ms (or .mm or .me)
53# TEXI2OPT = -i
8073190b
RP
54
55# Which roff program to use to generate index for texi2roff'd doc
56ROFF = groff
57
e46cdcdd
RP
58BISON = bison
59BISONFLAGS = -v
60
e1e5fbfc
PB
61SCRIPTS = ldgld68k.sc ldgld.sc \
62 ldlnk960.sc ldlnk960r.sc ldgld960.sc \
ce4d59e2 63 i386aout.sc ldm88k.sc ldglda29k.sc news.sc h8300hds.sc ebmon29k.sc
2ee11735
RP
64
65#### target and host dependent Makefile fragments come in here.
66###
67
a37cc0c0 68CFLAGS = $(INCLUDES) $(DEBUG) $(HDEFINES) $(TDEFINES) $(CDEFINES)
2ee11735
RP
69LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
70
972e7b4b 71.SUFFIXES: .y .x .xr .xu .xn .xN .sc .scu .scr .scn $(SUFFIXES)
2ee11735 72
eb02fd64
RP
73# go directly to ld.new in case this ld isn't capable of
74# linking native object on this host. It can be renamed on
75# install.
e7921bd4 76LD_PROG = ld.new
f78e2569 77
e1e5fbfc
PB
78# A .sc script file is needed for each emulation mode.
79# sed is used to transform this script into two variant forms:
80# A .scr script is for linking without relocation (-r flag).
81# A .scu script is like .scr, but *do* create constructors.
972e7b4b
PB
82# A .scn script is for linking with -N flag (mix text and data on same page).
83# A .scN script is for linking with -N flag (mix text and data on same page).
b7e24eef 84# The diference is that segments should (need) not be page aligned.
e1e5fbfc
PB
85
86# A sed pattern to translate .sc to .scu:
87SED_MAKE_RELOC_WITH_CONSTRUCTORS=\
88 -e "/If relocating/,/End if relocating/d" \
6719c75b
PB
89 -e "/=/s/[_a-zA-Z.]* *= .*//g" \
90 -e '/>/s/} *> *[a-zA-Z]*/}/' \
e1e5fbfc
PB
91 -e "/text/s/[.]text .*:/.text :/" \
92 -e "/data/s/[.]data .*:/.data :/"
93# A sed pattern to translate .scu to .scr:
94SED_REMOVE_CONSTRUCTORS= -e /CONSTRUCTORS/d
95
96.sc.scu:
97 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) $< >$*.scu
98.scu.scr:
99 sed $(SED_REMOVE_CONSTRUCTORS) < $< >$*.scr
100
972e7b4b
PB
101# Each builtin script file is included as a C string literal.
102# These are generated by the mkscript filter.
30104b16 103.sc.x:
ee17cac9
PB
104 if [ "x"$(LIB_PATH) = "x" ]; then ./mkscript < $< >$*.x ; \
105 else \
106 (sed <$< -e '/SEARCH_DIR(.*)/d' ; \
107 echo $(LIB_PATH) | tr ':' ' ' | sed -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\1);/g';) | ./mkscript >$*.x;\
108 fi
972e7b4b
PB
109
110# The .xn script is used if the -n flag is given (write-protect text)..
111# Sunos starts the text segment for demand-paged binaries at 0x2020
112# and other binaries at 0x2000, since the exec header is paged in
113# with the text. Some other Unix variants do the same.
114# For -n and -N flags the offset of the exec header must be removed.
115# This sed script does this if the master script contains
116# a line of the form ".text 0xAAAA BLOCK(0xBBBB):" - the
117# output will contain ".text 0xBBBB:". (For Sunos AAAA=2020 and BBBB=2000.)
118.x.xn:
119 sed -e '/text/s/\.text .* BLOCK(\([^)]*\)):/.text \1:/' < $< >$*.xn
120
121# The .xN script is used if the -N flag is given (don't write-protect text).
122# This is like -n, except that the data segment need not be page-aligned.
123# So get rid of commands for page-alignment: We assume these use ALIGN
124# with a hex constant that end with 00, since any normal page size is be
125# at least divisible by 256. We use the 00 to avoid matching
126# anything that tries to align of (say) 8-byte boundaries.
127.xn.xN:
128 sed -e '/ALIGN/s/ALIGN( *0x[0-9a-fA-F]*00 *)/./' < $< >$*.xN
129
130# The xu and xr scripts don't search libraries, so LIB_PATH doesn't matter.
e1e5fbfc
PB
131.sc.xu:
132 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) < $< | ./mkscript >$*.xu
133.sc.xr:
134 sed $(SED_MAKE_RELOC_WITH_CONSTRUCTORS) $(SED_REMOVE_CONSTRUCTORS) \
135 < $< | ./mkscript >$*.xr
eb02fd64
RP
136
137# for self hosting
e45bef1e
RP
138BFDLIB=$(unsubdir)/../bfd$(subdir)/libbfd.a
139LIBIBERTY=$(unsubdir)/../libiberty$(subdir)/libiberty.a
eb02fd64 140
ce4d59e2
SC
141OFILES= ldgram.o ldlex.o ldlang.o ldctor.o ldmain.o \
142 ldwarn.o ldwrite.o ldexp.o ldlnk960.o ldgld68k.o ldindr.o i386aout.o \
565a4c76 143 ldm88k.o ldglda29k.o news.o h8300hds.o ebmon29k.o \
239d28f3 144 ldgld.o ldgld960.o ldemul.o ldver.o ldmisc.o ldsym.o ldvanilla.o ldfile.o
eb02fd64 145
ce4d59e2
SC
146HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
147 ldsym.h ldctor.h ldlang.h ldexp.h \
239d28f3 148 ldlex.h ldwrite.h ldver.h ldemul.h ldfile.h ldgram.h ld.h
eb02fd64
RP
149
150MANSOURCES=ld.tex
151
ce4d59e2
SC
152LDCSOURCES=ldlang.c ldctor.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
153 ldgld.c ldgld68k.c ldm88k.c ebmon29k.c \
239d28f3 154 ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c ldvanilla.c
eb02fd64 155
cc964c6f
SC
156GENERATED_SOURCES=ldgram.c ldlex.c ldgram.h
157GENERATED_HEADERS=ldgram.h
eb02fd64 158
cc964c6f 159LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
eb02fd64 160
2ee11735 161BFDSOURCES=../../bfd/common/*.c
eb02fd64
RP
162
163SOURCES= $(LDSOURCES) $(BFDSOURCES)
164LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
165
e1e5fbfc 166STAGESTUFF = *.x *.x[ru] *.sc[ru] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript
2ee11735 167
e1e5fbfc 168all: Makefile $(LD_PROG)
2ee11735 169
4976e6ab 170ldgram.h ldgram.c: ldgram.y
e46cdcdd 171 $(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c
3e0f5f4f 172# These are in case BISON is really yacc (which ignores -o).
565a4c76
SC
173 if [ -f y.tab.c -a ! -f ldgram.c ]; then mv y.tab.c ldgram.c; else true ; fi
174 if [ -f y.tab.h -a ! -f ldgram.h ]; then mv y.tab.h ldgram.h; else true ; fi
cc964c6f 175
4976e6ab 176ldlex.c: ldlex.l
cc964c6f
SC
177 lex -t $(VPATH)/ldlex.l >ldlex.c
178
19b03b7a 179
ee17cac9 180ldgld.c: $(srcdir)/ldtemplate
e1e5fbfc 181 sed -e s/"<ldtarget>"/ldgld/g -e s/"<arch>"/m68k/g \
33ce0085 182 -e s/"<target>"//g -e s/"<TARGET>"//g <$(srcdir)/ldtemplate >$@
ee17cac9 183news.c: $(srcdir)/ldtemplate
e1e5fbfc 184 sed -e s/"<ldtarget>"/news/g -e s/"<arch>"/m68k/g \
33ce0085 185 -e s/"<target>"/news/g -e s/"<TARGET>"/NEWS/g <$(srcdir)/ldtemplate >$@
565a4c76 186
ce4d59e2
SC
187i386aout.c: $(srcdir)/ldtemplate
188 sed -e s/"<ldtarget>"/i386aout/g -e s/"<arch>"/i386/g \
189 -e s/"<target>"/i386aout/g -e s/"<TARGET>"/I386AOUT/g <$(srcdir)/ldtemplate >$@
190
191
565a4c76
SC
192ebmon29k.c: $(srcdir)/ldtemplate
193 sed -e s/"<ldtarget>"/ebmon29k/g -e s/"<arch>"/a29k/g \
194 -e s/"gld<target>"/ebmon29k/g -e s/"GLD<TARGET>"/EBMON29K/g \
33ce0085 195 -e s/"<ldtarget>.x"/ebmon.x/ <$(srcdir)/ldtemplate >$@
565a4c76 196
ee17cac9 197ldgld68k.c: $(srcdir)/ldtemplate
e1e5fbfc 198 sed -e s/"<ldtarget>"/ldgld68k/g -e s/"<arch>"/m68k/g \
33ce0085 199 -e s/"<target>"/68k/g -e s/"<TARGET>"/68K/g <$(srcdir)/ldtemplate >$@
ee17cac9 200ldglda29k.c: $(srcdir)/ldtemplate
e1e5fbfc 201 sed -e s/"<ldtarget>"/ldglda29k/g -e s/"<arch>"/a29k/g \
33ce0085 202 -e s/"<target>"/29k/g -e s/"<TARGET>"/29K/g <$(srcdir)/ldtemplate >$@
ee17cac9 203ldm88k.c: $(srcdir)/ldtemplate
e1e5fbfc 204 sed -e s/"<ldtarget>"/ldm88k/g -e s/"<arch>"/m88k/g \
33ce0085 205 -e s/"<target>"/m88kbcs/g -e s/"<TARGET>"/M88KBCS/g <$(srcdir)/ldtemplate >$@
e1e5fbfc
PB
206
207# The .c files for these are generated from ldtemplete.
972e7b4b
PB
208ldgld.o: ./mkscript ldgld.x ldgld.xr ldgld.xu ldgld.xn ldgld.xN
209news.o: ./mkscript news.x news.xr news.xu news.xn news.xN
ce4d59e2 210i386aout.o: ./mkscript i386aout.x i386aout.xr i386aout.xu i386aout.xn i386aout.xN
972e7b4b
PB
211ebmon29k.o: ./mkscript ebmon29k.x ebmon29k.xr ebmon29k.xu \
212 ebmon29k.xn ebmon29k.xN
213ldgld68k.o: ./mkscript ldgld68k.x ldgld68k.xr ldgld68k.xu \
214 ldgld68k.xn ldgld68k.xN
215ldglda29k.o: ./mkscript ldglda29k.x ldglda29k.xr ldglda29k.xu \
216 ldglda29k.xn ldglda29k.xN
217ldm88k.o: ./mkscript ldm88k.x ldm88k.xr ldm88k.xu ldm88k.xn ldm88k.xN
e1e5fbfc
PB
218
219# The .c files for these are (for now) specially written (not ldtemplete).
220ldgld960.o: ./mkscript ldgld960.x
221ldlnk960.o: ./mkscript ldlnk960.x ldlnk960.xr
bee36ac3 222h8300hds.o: ./mkscript h8300hds.x
e1e5fbfc 223
2ee11735
RP
224
225#$(BFDLIB): $(BFDSOURCES)
226# (cd ../bfd; make)
eb02fd64 227
e77463a1 228$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
fe9c20e2 229 $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
e7921bd4 230
eb02fd64 231# (cd ../bfd; make)
239d28f3 232# LDEMULATION=gld; export LDEMULATION; GNUTARGET=a.out-sunos-big;./ldok -format a.out-sunos-big -o ld /lib/crt0.o $(OFILES) $(BFDLIB) $(LIBIBERTY) -lc /usr/local/lib/gcc/sparc/1.91/gnulib
e77463a1
JG
233# gld -o ld /lib/crt0.o $(OFILES) $(BFDLIB) $(LIBIBERTY) -lc /usr/local/lib/gcc/sparc/1.91/gnulib
234# $(CC) -Bstatic -o ld.new $(OFILES) $(BFDLIB) $(LIBIBERTY)
eb02fd64
RP
235
236
f78e2569 237ld1: ld.new
e77463a1 238 $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64
RP
239
240ld2: ld1
e77463a1 241 $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64
RP
242
243ld3: ld2
e77463a1 244 $(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 245
8073190b
RP
246######################################################################
247# DOCUMENTATION TARGETS
248# TeX output
8d317d2a
RP
249ld.dvi: ld.texinfo
250 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex ld.texinfo
251 texindex ld.??
252 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex ld.texinfo
253
8073190b 254# info file for online browsing
8d317d2a
RP
255ld.info: ld.texinfo
256 makeinfo ld.texinfo
eb02fd64 257
954ac2ea
RP
258#separate targets for "ms", "me", and "mm" forms of roff doc
259# (we don't use a variable because we don't trust all makes to handle
260# a var in the target name right).
8073190b
RP
261# roff output (-ms)
262ld.ms: ld.texinfo
263 sed -e '/\\input texinfo/d' \
264 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
265 ld.texinfo | \
266 texi2roff $(TEXI2OPT) -ms >ld.ms
267
268# index for roff output
269ld-index.ms: ld.ms
270 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
271 sed -e '/: warning:/d' | \
272 texi2index >ld-index.ms
273
954ac2ea
RP
274# roff output (-mm)
275ld.mm: ld.texinfo
276 sed -e '/\\input texinfo/d' \
277 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
278 ld.texinfo | \
279 texi2roff $(TEXI2OPT) -mm >ld.mm
280
281# index for roff output
282ld-index.mm: ld.mm
283 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
284 sed -e '/: warning:/d' | \
285 texi2index >ld-index.mm
286
287# roff output (-me)
288ld.me: ld.texinfo
289 sed -e '/\\input texinfo/d' \
290 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
291 ld.texinfo | \
292 texi2roff $(TEXI2OPT) -me >ld.me
293
294# index for roff output
295ld-index.me: ld.me
296 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
297 sed -e '/: warning:/d' | \
298 texi2index >ld-index.me
299
300
8073190b
RP
301######################################################################
302
e0220a5b 303mkscript: $(srcdir)/mkscript.c
30104b16 304 $(CC) $(CFLAGS) $(LDFLAGS) -o mkscript $(srcdir)/mkscript.c $(LOADLIBES)
f78e2569 305
cc964c6f
SC
306ldlex.c: ldlex.l ldgram.h
307ldlex.o: ldlex.c ldgram.h
308ldgram.o: ldgram.c
309ldgram.c:ldgram.y
eb02fd64 310
30104b16
SC
311ldgld68k.x :ldgld68k.sc
312ldgld68kUr.x :ldgld68kUr.sc
313ldgld68kr.x :ldgld68kr.sc
bee36ac3 314h8300hds.x:h8300hds.sc
30104b16
SC
315ldgld.x :ldgld.sc
316ldgldUr.x :ldgldUr.sc
317ldgldr.x :ldgldr.sc
318ldlnk960.x :ldlnk960.sc
319ldlnk960r.x :ldlnk960r.sc
320ldgld960.x :ldgld960.sc
1e332873
SC
321ldgldm88k.x :ldgldm88k.sc
322ldm88kUr.x :ldm88kUr.sc
323ldm88kr.x:ldm88kr.sc
33ce0085
JG
324ldm88k.x:ldm88k.sc
325news.x:news.sc
ce4d59e2 326i386aout.x:i386aout.sc
33ce0085
JG
327h8300hds.x:h8300hds.sc
328h8300hds.o:h8300hds.c
30104b16
SC
329ldgld68k.x:ldgld68k.sc
330ldglda29k.x :ldglda29k.sc
331ldglda29kr.x :ldglda29kr.sc
332ldglda29kUr.x :ldglda29kUr.sc
eb02fd64 333
565a4c76
SC
334ebmon29k.x :ebmon29k.sc
335ebmon29kr.x :ebmon29kr.sc
336ebmon29kUr.x :ebmon29kUr.sc
337
e7921bd4
RP
338stage1: force
339 - mkdir stage1
340 - mv -f $(STAGESTUFF) stage1
341 - (cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 342
e7921bd4
RP
343stage2: force
344 - mkdir stage2
345 - mv -f $(STAGESTUFF) stage2
346 - (cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 347
e7921bd4
RP
348stage3: force
349 - mkdir stage3
350 - mv -f $(STAGESTUFF) stage3
351 - (cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 352
e46cdcdd
RP
353against=stage2
354
355comparison: force
356 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
357
e7921bd4
RP
358de-stage1: force
359 - (cd stage1 ; mv -f * ..)
360 - rm ld
361 - rmdir stage1
362
363de-stage2: force
364 - (cd stage2 ; mv -f * ..)
365 - rm ld
366 - rmdir stage2
367
368de-stage3: force
369 - (cd stage3 ; mv -f * ..)
370 - rm ld
371 - rmdir stage3
372
373clean:
374 - rm -f TAGS $(OFILES) $(GENERATED_SOURCES) $(GENERATED_HEADERS)
972e7b4b 375 - rm -f *.x *.x[runN] *.sc[runN]
8d317d2a 376 - rm -f ld.?? ld.???
e7921bd4 377 - rm -f ld ld1 ld2 ld3 ld.new mkscript *.o y.output
eb02fd64
RP
378
379lintlog:$(SOURCES) Makefile
2ee11735 380 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
381| grep -v "pointer casts may be troublesome" \
382| grep -v "possible pointer alignment problem" \
383| grep -v "ignore" \
384| grep -v "conversion from long may lose accuracy" \
385| grep -v "warning: constant argument to NOT" \
386| grep -v "enumeration type clash, operator CAST" \
387| grep -v "warning: constant in conditional context"\
388| grep -v "archive\.c"
389
390
391tags TAGS:$(SOURCES) $(HEADERS)
19b03b7a 392 etags -t $?
eb02fd64 393
eb02fd64
RP
394
395objdump:objdump.c
396
e7921bd4 397install: $(LD_PROG)
887b3363 398 $(INSTALL_PROGRAM) ld.new $(ddestdir)/bin/ld
ce4d59e2
SC
399# Something like the following might make sense for install, but doesn't work
400# - it is too fragile, depending on a gcc binary int the right place.
401# Perhaps using gcc/version.c might work?
402# # If $(gcclibdir) exists, install ld there, and put a link to it
403# # from $(bindir); otherwise put ld in $(bindir).
404# if ([ -x $(unsubdir)/../gcc$(subdir)/gcc -a -d $(gcclibdir) ]); then \
405# $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld; \
406# cd $(bindir); rm -f ld; ln -s $(gcclibdir)/ld ld; \
407# else \
408# $(INSTALL_PROGRAM) ld.new $(bindir)/ld; \
409# fi
eb02fd64
RP
410
411#-----------------------------------------------------------------------------
412# 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
413#
414# 'VERSION' file must be present and contain a string of the form "x.y"
415#-----------------------------------------------------------------------------
416
417ver960.c: FORCE
418 rm -f ver960.c
419 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
420
421
422# This target should be invoked before building a new release.
423# 'VERSION' file must be present and contain a string of the form "x.y"
424#
425roll:
426 @V=`cat VERSION` ; \
427 MAJ=`sed 's/\..*//' VERSION` ; \
428 MIN=`sed 's/.*\.//' VERSION` ; \
429 V=$$MAJ.`expr $$MIN + 1` ; \
430 rm -f VERSION ; \
431 echo $$V >VERSION ; \
432 echo Version $$V
433
239d28f3 434
e1e5fbfc 435dep: $(LDSOURCES)
239d28f3
SC
436 mkdep $(CFLAGS) $?
437
eb02fd64
RP
438# Dummy target to force execution of dependent targets.
439#
e7921bd4 440force:
eb02fd64
RP
441
442# Target to uncomment host-specific lines in this makefile. Such lines must
443# have the following string beginning in column 1: #__<hostname>__#
444# Original Makefile is backed up as 'Makefile.old'.
445#
446# Invoke with: make make HOST=xxx
447#
448make:
449 -@if test $(HOST)x = x ; then \
450 echo '\aSpecify "make make HOST=???"'; \
451 exit 1; \
452 fi ; \
453 grep -s "^#The next line was generated by 'make make'" Makefile; \
454 if test $$? = 0 ; then \
455 echo "\aMakefile has already been processed with 'make make'";\
456 exit 1; \
457 fi ; \
458 mv -f Makefile Makefile.old; \
459 echo "#The next line was generated by 'make make'" >Makefile ; \
460 echo "HOST=$(HOST)" >>Makefile ; \
461 echo >>Makefile ; \
462 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
463
464#\f
465
f1eb48b6 466Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 467 $(SHELL) ./config.status
eb02fd64
RP
468
469### Local Variables: ***
470### mode:fundamental ***
471### page-delimiter: "^#\f" ***
472### End: ***
473### end of file
239d28f3
SC
474
475
476# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.056327 seconds and 4 git commands to generate.