| 1 | # Makefile.in generated automatically by automake 1.2 from Makefile.am |
| 2 | |
| 3 | # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. |
| 4 | # This Makefile.in is free software; the Free Software Foundation |
| 5 | # gives unlimited permission to copy, distribute and modify it. |
| 6 | |
| 7 | |
| 8 | SHELL = /bin/sh |
| 9 | |
| 10 | srcdir = @srcdir@ |
| 11 | top_srcdir = @top_srcdir@ |
| 12 | VPATH = @srcdir@ |
| 13 | prefix = @prefix@ |
| 14 | exec_prefix = @exec_prefix@ |
| 15 | |
| 16 | bindir = @bindir@ |
| 17 | sbindir = @sbindir@ |
| 18 | libexecdir = @libexecdir@ |
| 19 | datadir = @datadir@ |
| 20 | sysconfdir = @sysconfdir@ |
| 21 | sharedstatedir = @sharedstatedir@ |
| 22 | localstatedir = @localstatedir@ |
| 23 | libdir = @libdir@ |
| 24 | infodir = @infodir@ |
| 25 | mandir = @mandir@ |
| 26 | includedir = @includedir@ |
| 27 | oldincludedir = /usr/include |
| 28 | |
| 29 | pkgdatadir = $(datadir)/@PACKAGE@ |
| 30 | pkglibdir = $(libdir)/@PACKAGE@ |
| 31 | pkgincludedir = $(includedir)/@PACKAGE@ |
| 32 | |
| 33 | top_builddir = . |
| 34 | |
| 35 | ACLOCAL = @ACLOCAL@ |
| 36 | AUTOCONF = @AUTOCONF@ |
| 37 | AUTOMAKE = @AUTOMAKE@ |
| 38 | AUTOHEADER = @AUTOHEADER@ |
| 39 | |
| 40 | INSTALL = @INSTALL@ |
| 41 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 42 | INSTALL_DATA = @INSTALL_DATA@ |
| 43 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| 44 | transform = @program_transform_name@ |
| 45 | |
| 46 | NORMAL_INSTALL = true |
| 47 | PRE_INSTALL = true |
| 48 | POST_INSTALL = true |
| 49 | NORMAL_UNINSTALL = true |
| 50 | PRE_UNINSTALL = true |
| 51 | POST_UNINSTALL = true |
| 52 | build_alias = @build_alias@ |
| 53 | build_triplet = @build@ |
| 54 | host_alias = @host_alias@ |
| 55 | host_triplet = @host@ |
| 56 | target_alias = @target_alias@ |
| 57 | target_triplet = @target@ |
| 58 | CC = @CC@ |
| 59 | EXEEXT = @EXEEXT@ |
| 60 | HDEFINES = @HDEFINES@ |
| 61 | LD = @LD@ |
| 62 | LIBTOOL = @LIBTOOL@ |
| 63 | LN_S = @LN_S@ |
| 64 | MAINT = @MAINT@ |
| 65 | MAKEINFO = @MAKEINFO@ |
| 66 | NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@ |
| 67 | PACKAGE = @PACKAGE@ |
| 68 | RANLIB = @RANLIB@ |
| 69 | TDIRS = @TDIRS@ |
| 70 | VERSION = @VERSION@ |
| 71 | |
| 72 | AUTOMAKE_OPTIONS = dejagnu |
| 73 | |
| 74 | tooldir = $(exec_prefix)/$(target_alias) |
| 75 | |
| 76 | YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi` |
| 77 | YFLAGS = -d |
| 78 | LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` |
| 79 | |
| 80 | # We put the scripts in the directory $(scriptdir)/ldscripts. |
| 81 | # We can't put the scripts in $(datadir) because the SEARCH_DIR |
| 82 | # directives need to be different for native and cross linkers. |
| 83 | scriptdir = $(tooldir)/lib |
| 84 | |
| 85 | EMUL = @EMUL@ |
| 86 | EMULATION_OFILES = @EMULATION_OFILES@ |
| 87 | |
| 88 | # Search path to override the default search path for -lfoo libraries. |
| 89 | # If LIB_PATH is empty, the ones in the script (if any) are left alone. |
| 90 | # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building |
| 91 | # a cross-linker, in which case the default is empty. See genscripts.sh.) |
| 92 | # Otherwise, they are replaced with the ones given in LIB_PATH, |
| 93 | # which may have the form: LIB_PATH=/lib:/usr/local/lib |
| 94 | LIB_PATH = |
| 95 | |
| 96 | BASEDIR = $(srcdir)/.. |
| 97 | BFDDIR = $(BASEDIR)/bfd |
| 98 | INCDIR = $(BASEDIR)/include |
| 99 | DEP = mkdep |
| 100 | |
| 101 | # What version of the manual to build |
| 102 | DOCVER = gen |
| 103 | |
| 104 | #stuff for self hosting (can be overridden in config file). |
| 105 | HOSTING_CRT0 = @HOSTING_CRT0@ |
| 106 | HOSTING_LIBS = @HOSTING_LIBS@ |
| 107 | HOSTING_EMU = -m $(EMUL) |
| 108 | |
| 109 | # Setup the testing framework, if you have one |
| 110 | EXPECT = `if [ -f $$r/../expect/expect ] ; \ |
| 111 | then echo $$r/../expect/expect ; \ |
| 112 | else echo expect ; fi` |
| 113 | |
| 114 | RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \ |
| 115 | then echo $${srcroot}/../dejagnu/runtest ; \ |
| 116 | else echo runtest ; fi` |
| 117 | |
| 118 | RUNTESTFLAGS = |
| 119 | |
| 120 | CC_FOR_TARGET = ` \ |
| 121 | if [ -f $$r/../gcc/xgcc ] ; then \ |
| 122 | if [ -f $$r/../newlib/Makefile ] ; then \ |
| 123 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ |
| 124 | else \ |
| 125 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ |
| 126 | fi; \ |
| 127 | else \ |
| 128 | if [ "@host@" = "@target@" ] ; then \ |
| 129 | echo $(CC); \ |
| 130 | else \ |
| 131 | echo gcc | sed '$(program_transform_name)'; \ |
| 132 | fi; \ |
| 133 | fi` |
| 134 | |
| 135 | CXX = gcc |
| 136 | CXX_FOR_TARGET = ` \ |
| 137 | if [ -f $$r/../gcc/xgcc ] ; then \ |
| 138 | if [ -f $$r/../newlib/Makefile ] ; then \ |
| 139 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ |
| 140 | else \ |
| 141 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ |
| 142 | fi; \ |
| 143 | else \ |
| 144 | if [ "@host@" = "@target@" ] ; then \ |
| 145 | echo $(CXX); \ |
| 146 | else \ |
| 147 | echo gcc | sed '$(program_transform_name)'; \ |
| 148 | fi; \ |
| 149 | fi` |
| 150 | |
| 151 | noinst_PROGRAMS = ld-new |
| 152 | info_TEXINFOS = ld.texinfo |
| 153 | noinst_TEXINFOS = ldint.texinfo |
| 154 | man_MANS = ld.1 |
| 155 | |
| 156 | INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) $(HDEFINES) $(CFLAGS) |
| 157 | |
| 158 | BFDLIB = ../bfd/libbfd.la |
| 159 | LIBIBERTY = ../libiberty/libiberty.a |
| 160 | |
| 161 | ALL_EMULATIONS = \ |
| 162 | ea29k.o \ |
| 163 | eaixppc.o \ |
| 164 | eaixrs6.o \ |
| 165 | ealpha.o \ |
| 166 | earcelf.o \ |
| 167 | earmaoutb.o \ |
| 168 | earmaoutl.o \ |
| 169 | earmcoff.o \ |
| 170 | earmpe.o \ |
| 171 | ecoff_sparc.o \ |
| 172 | edelta68.o \ |
| 173 | eebmon29k.o \ |
| 174 | eelf32_sparc.o \ |
| 175 | eelf32b4300.o \ |
| 176 | eelf32bmip.o \ |
| 177 | eelf32ebmip.o \ |
| 178 | eelf32elmip.o \ |
| 179 | eelf32l4300.o \ |
| 180 | eelf32lmip.o \ |
| 181 | eelf32lppc.o \ |
| 182 | eelf32ppc.o \ |
| 183 | eelf64_sparc.o \ |
| 184 | eelf_i386.o \ |
| 185 | egld960.o \ |
| 186 | egld960coff.o \ |
| 187 | ego32.o \ |
| 188 | eh8300.o \ |
| 189 | eh8300h.o \ |
| 190 | eh8300s.o \ |
| 191 | eh8500.o \ |
| 192 | eh8500b.o \ |
| 193 | eh8500c.o \ |
| 194 | eh8500m.o \ |
| 195 | eh8500s.o \ |
| 196 | ehp300bsd.o \ |
| 197 | ehp3hpux.o \ |
| 198 | ehppaelf.o \ |
| 199 | ei386aout.o \ |
| 200 | ei386bsd.o \ |
| 201 | ei386coff.o \ |
| 202 | ei386go32.o \ |
| 203 | ei386linux.o \ |
| 204 | ei386lynx.o \ |
| 205 | ei386mach.o \ |
| 206 | ei386moss.o \ |
| 207 | ei386msdos.o \ |
| 208 | ei386nbsd.o \ |
| 209 | ei386nw.o \ |
| 210 | ei386pe.o \ |
| 211 | elnk960.o \ |
| 212 | em68k4knbsd.o \ |
| 213 | em68kaout.o \ |
| 214 | em68kaux.o \ |
| 215 | em68kcoff.o \ |
| 216 | em68kelf.o \ |
| 217 | em68klinux.o \ |
| 218 | em68klynx.o \ |
| 219 | em68knbsd.o \ |
| 220 | em68kpsos.o \ |
| 221 | em88kbcs.o \ |
| 222 | emipsbig.o \ |
| 223 | emipsbsd.o \ |
| 224 | emipsidt.o \ |
| 225 | emipsidtl.o \ |
| 226 | emipslit.o \ |
| 227 | emipslnews.o \ |
| 228 | enews.o \ |
| 229 | ens32knbsd.o \ |
| 230 | epc532macha.o \ |
| 231 | eppcmacos.o \ |
| 232 | eppcnw.o \ |
| 233 | eppcpe.o \ |
| 234 | eriscix.o \ |
| 235 | esa29200.o \ |
| 236 | esh.o \ |
| 237 | eshelf.o \ |
| 238 | eshlelf.o \ |
| 239 | eshl.o \ |
| 240 | esparcaout.o \ |
| 241 | esparclinux.o \ |
| 242 | esparclynx.o \ |
| 243 | esparcnbsd.o \ |
| 244 | est2000.o \ |
| 245 | esun3.o \ |
| 246 | esun4.o \ |
| 247 | evanilla.o \ |
| 248 | evax.o \ |
| 249 | evsta.o \ |
| 250 | ew65.o \ |
| 251 | ez8001.o \ |
| 252 | ez8002.o |
| 253 | |
| 254 | ALL_64_EMULATIONS = \ |
| 255 | eelf64alpha.o |
| 256 | |
| 257 | CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ |
| 258 | ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ |
| 259 | mri.c ldcref.c |
| 260 | |
| 261 | HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ |
| 262 | ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \ |
| 263 | ldwrite.h mri.h |
| 264 | |
| 265 | GENERATED_CFILES = ldgram.c ldlex.c |
| 266 | GENERATED_HFILES = ldgram.h ldemul-list.h |
| 267 | |
| 268 | OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \ |
| 269 | ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \ |
| 270 | ldfile.o ldcref.o ${EMULATION_OFILES} |
| 271 | |
| 272 | STAGESTUFF = *.o ldscripts/* e*.c |
| 273 | |
| 274 | # These all start with e so 'make clean' can find them. |
| 275 | |
| 276 | GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@" |
| 277 | GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed |
| 278 | |
| 279 | ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \ |
| 280 | ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c |
| 281 | ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) |
| 282 | ld_new_LDADD = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) @LEXLIB@ |
| 283 | |
| 284 | # This is the real libbfd.a created by libtool. |
| 285 | TESTBFDLIB = ../bfd/.libs/libbfd.a |
| 286 | |
| 287 | MOSTCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \ |
| 288 | ldemul-list.h tmpdir crtbegin.o crtend.o |
| 289 | CLEANFILES = dep.sed .dep .dep1 bfdsumm.texi |
| 290 | DISTCLEANFILES = ldscripts |
| 291 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
| 292 | mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs |
| 293 | CONFIG_HEADER = config.h |
| 294 | CONFIG_CLEAN_FILES = |
| 295 | noinst_PROGRAMS = ld-new$(EXEEXT) |
| 296 | PROGRAMS = $(noinst_PROGRAMS) |
| 297 | |
| 298 | |
| 299 | DEFS = @DEFS@ -I. -I$(srcdir) -I. |
| 300 | CPPFLAGS = @CPPFLAGS@ |
| 301 | LDFLAGS = @LDFLAGS@ |
| 302 | LIBS = @LIBS@ |
| 303 | ld_new_OBJECTS = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o \ |
| 304 | ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o |
| 305 | ld_new_LDFLAGS = |
| 306 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ |
| 307 | LEXLIB = @LEXLIB@ |
| 308 | CFLAGS = @CFLAGS@ |
| 309 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
| 310 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
| 311 | LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ |
| 312 | TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi` |
| 313 | TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex |
| 314 | INFO_DEPS = ld.info |
| 315 | DVIS = ld.dvi |
| 316 | TEXINFOS = ld.texinfo |
| 317 | MANS = ld.1 |
| 318 | |
| 319 | NROFF = nroff |
| 320 | DIST_COMMON = README ChangeLog Makefile.am Makefile.in NEWS TODO \ |
| 321 | acconfig.h acinclude.m4 aclocal.m4 config.in configure configure.in \ |
| 322 | ldgram.c ldlex.c stamp-h.in |
| 323 | |
| 324 | |
| 325 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
| 326 | |
| 327 | TAR = tar |
| 328 | GZIP = --best |
| 329 | SOURCES = $(ld_new_SOURCES) |
| 330 | OBJECTS = $(ld_new_OBJECTS) |
| 331 | |
| 332 | default: all |
| 333 | |
| 334 | .SUFFIXES: |
| 335 | .SUFFIXES: .c .dvi .h .info .l .lo .o .ps .texi .texinfo .y |
| 336 | $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
| 337 | cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile |
| 338 | |
| 339 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 340 | cd $(top_builddir) \ |
| 341 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 342 | |
| 343 | $(ACLOCAL_M4): @MAINT@ configure.in acinclude.m4 |
| 344 | cd $(srcdir) && $(ACLOCAL) |
| 345 | |
| 346 | config.status: $(srcdir)/configure |
| 347 | $(SHELL) ./config.status --recheck |
| 348 | $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
| 349 | cd $(srcdir) && $(AUTOCONF) |
| 350 | |
| 351 | config.h: stamp-h ; @: |
| 352 | stamp-h: $(srcdir)/config.in $(top_builddir)/config.status |
| 353 | cd $(top_builddir) \ |
| 354 | && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \ |
| 355 | $(SHELL) ./config.status |
| 356 | @echo timestamp > stamp-h |
| 357 | $(srcdir)/config.in: @MAINT@$(srcdir)/stamp-h.in |
| 358 | $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h |
| 359 | cd $(top_srcdir) && $(AUTOHEADER) |
| 360 | @echo timestamp > $(srcdir)/stamp-h.in |
| 361 | |
| 362 | mostlyclean-hdr: |
| 363 | |
| 364 | clean-hdr: |
| 365 | |
| 366 | distclean-hdr: |
| 367 | rm -f config.h |
| 368 | |
| 369 | maintainer-clean-hdr: |
| 370 | |
| 371 | mostlyclean-noinstPROGRAMS: |
| 372 | |
| 373 | clean-noinstPROGRAMS: |
| 374 | test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) |
| 375 | |
| 376 | distclean-noinstPROGRAMS: |
| 377 | |
| 378 | maintainer-clean-noinstPROGRAMS: |
| 379 | |
| 380 | .c.o: |
| 381 | $(COMPILE) -c $< |
| 382 | |
| 383 | mostlyclean-compile: |
| 384 | rm -f *.o core |
| 385 | |
| 386 | clean-compile: |
| 387 | |
| 388 | distclean-compile: |
| 389 | rm -f *.tab.c |
| 390 | |
| 391 | maintainer-clean-compile: |
| 392 | |
| 393 | .c.lo: |
| 394 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< |
| 395 | |
| 396 | mostlyclean-libtool: |
| 397 | rm -f *.lo |
| 398 | |
| 399 | clean-libtool: |
| 400 | rm -rf .libs |
| 401 | |
| 402 | distclean-libtool: |
| 403 | |
| 404 | maintainer-clean-libtool: |
| 405 | |
| 406 | ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES) |
| 407 | @rm -f ld-new$(EXEEXT) |
| 408 | $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS) |
| 409 | .y.c: |
| 410 | $(YACC) $(YFLAGS) $< && mv y.tab.c $@ |
| 411 | if test -f y.tab.h; then \ |
| 412 | if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ |
| 413 | else :; fi |
| 414 | .y.h: |
| 415 | $(YACC) $(YFLAGS) $< && mv y.tab.c $@ |
| 416 | if test -f y.tab.h; then \ |
| 417 | if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ |
| 418 | else :; fi |
| 419 | .l.c: |
| 420 | $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@ |
| 421 | |
| 422 | ld.info: ld.texinfo |
| 423 | ld.dvi: ld.texinfo |
| 424 | |
| 425 | |
| 426 | DVIPS = dvips |
| 427 | |
| 428 | .texi.info: |
| 429 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] |
| 430 | $(MAKEINFO) -I $(srcdir) $< |
| 431 | |
| 432 | .texi.dvi: |
| 433 | TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \ |
| 434 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< |
| 435 | |
| 436 | .texi: |
| 437 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] |
| 438 | $(MAKEINFO) -I $(srcdir) $< |
| 439 | |
| 440 | .texinfo.info: |
| 441 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] |
| 442 | $(MAKEINFO) -I $(srcdir) $< |
| 443 | |
| 444 | .texinfo: |
| 445 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] |
| 446 | $(MAKEINFO) -I $(srcdir) $< |
| 447 | |
| 448 | .texinfo.dvi: |
| 449 | TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \ |
| 450 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< |
| 451 | .dvi.ps: |
| 452 | $(DVIPS) $< -o $@ |
| 453 | |
| 454 | install-info-am: $(INFO_DEPS) |
| 455 | @$(NORMAL_INSTALL) |
| 456 | $(mkinstalldirs) $(infodir) |
| 457 | @for file in $(INFO_DEPS); do \ |
| 458 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ |
| 459 | for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ |
| 460 | if test -f $$d/$$ifile; then \ |
| 461 | echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \ |
| 462 | $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \ |
| 463 | else : ; fi; \ |
| 464 | done; \ |
| 465 | done |
| 466 | @$(POST_INSTALL) |
| 467 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ |
| 468 | for file in $(INFO_DEPS); do \ |
| 469 | echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\ |
| 470 | install-info --info-dir=$(infodir) $(infodir)/$$file || :;\ |
| 471 | done; \ |
| 472 | else : ; fi |
| 473 | |
| 474 | uninstall-info: |
| 475 | $(PRE_UNINSTALL) |
| 476 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ |
| 477 | ii=yes; \ |
| 478 | else ii=; fi; \ |
| 479 | for file in $(INFO_DEPS); do \ |
| 480 | test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \ |
| 481 | done |
| 482 | $(NORMAL_UNINSTALL) |
| 483 | for file in $(INFO_DEPS); do \ |
| 484 | (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ |
| 485 | done |
| 486 | |
| 487 | dist-info: $(INFO_DEPS) |
| 488 | for base in $(INFO_DEPS); do \ |
| 489 | if test -f $$base; then d=.; else d=$(srcdir); fi; \ |
| 490 | for file in `cd $$d && eval echo $$base*`; do \ |
| 491 | test -f $(distdir)/$$file \ |
| 492 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
| 493 | || cp -p $$d/$$file $(distdir)/$$file; \ |
| 494 | done; \ |
| 495 | done |
| 496 | |
| 497 | mostlyclean-aminfo: |
| 498 | rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.log ld.pg ld.toc \ |
| 499 | ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr ld.cv |
| 500 | |
| 501 | clean-aminfo: |
| 502 | |
| 503 | distclean-aminfo: |
| 504 | |
| 505 | maintainer-clean-aminfo: |
| 506 | for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done |
| 507 | clean-info: mostlyclean-aminfo |
| 508 | install-man: $(MANS) |
| 509 | $(NORMAL_INSTALL) |
| 510 | $(mkinstalldirs) $(mandir)/man1 |
| 511 | @sect=1; \ |
| 512 | inst=`echo "ld" | sed '$(transform)'`.1; \ |
| 513 | if test -f $(srcdir)/ld.1; then file=$(srcdir)/ld.1; \ |
| 514 | else file=ld.1; fi; \ |
| 515 | echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \ |
| 516 | $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst |
| 517 | |
| 518 | uninstall-man: |
| 519 | $(NORMAL_UNINSTALL) |
| 520 | inst=`echo "ld" | sed '$(transform)'`.1; \ |
| 521 | rm -f $(mandir)/man1/$$inst |
| 522 | |
| 523 | |
| 524 | tags: TAGS |
| 525 | |
| 526 | ID: $(HEADERS) $(SOURCES) |
| 527 | here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS) |
| 528 | |
| 529 | TAGS: $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) |
| 530 | tags=; \ |
| 531 | here=`pwd`; \ |
| 532 | test -z "$(ETAGS_ARGS)config.in$(SOURCES)$(HEADERS)$$tags" \ |
| 533 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $(SOURCES) $(HEADERS) -o $$here/TAGS) |
| 534 | |
| 535 | mostlyclean-tags: |
| 536 | |
| 537 | clean-tags: |
| 538 | |
| 539 | distclean-tags: |
| 540 | rm -f TAGS ID |
| 541 | |
| 542 | maintainer-clean-tags: |
| 543 | |
| 544 | distdir = $(PACKAGE)-$(VERSION) |
| 545 | top_distdir = $(distdir) |
| 546 | |
| 547 | # This target untars the dist file and tries a VPATH configuration. Then |
| 548 | # it guarantees that the distribution is self-contained by making another |
| 549 | # tarfile. |
| 550 | distcheck: dist |
| 551 | rm -rf $(distdir) |
| 552 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz |
| 553 | mkdir $(distdir)/=build |
| 554 | mkdir $(distdir)/=inst |
| 555 | dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
| 556 | cd $(distdir)/=build \ |
| 557 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ |
| 558 | && $(MAKE) \ |
| 559 | && $(MAKE) dvi \ |
| 560 | && $(MAKE) check \ |
| 561 | && $(MAKE) install \ |
| 562 | && $(MAKE) installcheck \ |
| 563 | && $(MAKE) dist |
| 564 | rm -rf $(distdir) |
| 565 | @echo "========================"; \ |
| 566 | echo "$(distdir).tar.gz is ready for distribution"; \ |
| 567 | echo "========================" |
| 568 | dist: distdir |
| 569 | -chmod -R a+r $(distdir) |
| 570 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| 571 | rm -rf $(distdir) |
| 572 | dist-all: distdir |
| 573 | -chmod -R a+r $(distdir) |
| 574 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| 575 | rm -rf $(distdir) |
| 576 | distdir: $(DISTFILES) |
| 577 | rm -rf $(distdir) |
| 578 | mkdir $(distdir) |
| 579 | -chmod 777 $(distdir) |
| 580 | @for file in $(DISTFILES); do \ |
| 581 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ |
| 582 | test -f $(distdir)/$$file \ |
| 583 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
| 584 | || cp -p $$d/$$file $(distdir)/$$file; \ |
| 585 | done |
| 586 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info |
| 587 | |
| 588 | DEJATOOL = $(PACKAGE) |
| 589 | site.exp: Makefile |
| 590 | @echo 'Making a new site.exp file...' |
| 591 | -@rm -f site.bak |
| 592 | @echo '## these variables are automatically generated by make ##' > $@-t |
| 593 | @echo '# Do not edit here. If you wish to override these values' >> $@-t |
| 594 | @echo '# edit the last section' >> $@-t |
| 595 | @echo 'set tool $(DEJATOOL)' >> $@-t |
| 596 | @echo 'set srcdir $(srcdir)' >> $@-t |
| 597 | @echo 'set objdir' `pwd` >> $@-t |
| 598 | @echo 'set host_alias $(host_alias)' >> $@-t |
| 599 | @echo 'set host_triplet $(host_triplet)' >> $@-t |
| 600 | @echo 'set target_alias $(target_alias)' >> $@-t |
| 601 | @echo 'set target_triplet $(target_triplet)' >> $@-t |
| 602 | @echo 'set build_alias $(build_alias)' >> $@-t |
| 603 | @echo 'set build_triplet $(build_triplet)' >> $@-t |
| 604 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t |
| 605 | -@sed '1,/^## All variables above are.*##/ d' site.bak >> $@-t |
| 606 | -@mv site.exp site.bak |
| 607 | @mv $@-t site.exp |
| 608 | info: $(INFO_DEPS) |
| 609 | dvi: $(DVIS) |
| 610 | check: all |
| 611 | $(MAKE) check-DEJAGNU |
| 612 | installcheck: |
| 613 | install-info: install-info-am |
| 614 | install-exec: install-exec-local |
| 615 | @$(NORMAL_INSTALL) |
| 616 | |
| 617 | install-data: install-man install-data-local |
| 618 | @$(NORMAL_INSTALL) |
| 619 | |
| 620 | install: install-exec install-data all |
| 621 | @: |
| 622 | |
| 623 | uninstall: uninstall-man |
| 624 | |
| 625 | all: Makefile $(PROGRAMS) $(MANS) config.h |
| 626 | |
| 627 | install-strip: |
| 628 | $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install |
| 629 | installdirs: |
| 630 | $(mkinstalldirs) $(mandir)/man1 |
| 631 | |
| 632 | |
| 633 | mostlyclean-generic: |
| 634 | test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) |
| 635 | |
| 636 | clean-generic: |
| 637 | test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
| 638 | |
| 639 | distclean-generic: |
| 640 | rm -f Makefile $(DISTCLEANFILES) |
| 641 | rm -f config.cache config.log stamp-h stamp-h[0-9]* |
| 642 | test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
| 643 | |
| 644 | maintainer-clean-generic: |
| 645 | test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) |
| 646 | test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) |
| 647 | mostlyclean: mostlyclean-hdr mostlyclean-noinstPROGRAMS \ |
| 648 | mostlyclean-compile mostlyclean-libtool \ |
| 649 | mostlyclean-aminfo mostlyclean-tags mostlyclean-generic |
| 650 | |
| 651 | clean: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \ |
| 652 | clean-aminfo clean-tags clean-generic mostlyclean |
| 653 | |
| 654 | distclean: distclean-hdr distclean-noinstPROGRAMS distclean-compile \ |
| 655 | distclean-libtool distclean-aminfo distclean-tags \ |
| 656 | distclean-generic clean |
| 657 | rm -f config.status |
| 658 | rm -f libtool |
| 659 | |
| 660 | maintainer-clean: maintainer-clean-hdr maintainer-clean-noinstPROGRAMS \ |
| 661 | maintainer-clean-compile maintainer-clean-libtool \ |
| 662 | maintainer-clean-aminfo maintainer-clean-tags \ |
| 663 | maintainer-clean-generic distclean |
| 664 | @echo "This command is intended for maintainers to use;" |
| 665 | @echo "it deletes files that may require special tools to rebuild." |
| 666 | rm -f config.status |
| 667 | |
| 668 | .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \ |
| 669 | maintainer-clean-hdr mostlyclean-noinstPROGRAMS \ |
| 670 | distclean-noinstPROGRAMS clean-noinstPROGRAMS \ |
| 671 | maintainer-clean-noinstPROGRAMS mostlyclean-compile distclean-compile \ |
| 672 | clean-compile maintainer-clean-compile mostlyclean-libtool \ |
| 673 | distclean-libtool clean-libtool maintainer-clean-libtool \ |
| 674 | install-info-am uninstall-info mostlyclean-aminfo distclean-aminfo \ |
| 675 | clean-aminfo maintainer-clean-aminfo install-man uninstall-man tags \ |
| 676 | mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ |
| 677 | distdir check-DEJAGNU info dvi installcheck install-info install-exec \ |
| 678 | install-data install uninstall all installdirs mostlyclean-generic \ |
| 679 | distclean-generic clean-generic maintainer-clean-generic clean \ |
| 680 | mostlyclean distclean maintainer-clean |
| 681 | |
| 682 | |
| 683 | ldmain.o: ldmain.c config.status |
| 684 | $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c |
| 685 | |
| 686 | ldemul-list.h: Makefile |
| 687 | (echo "/* This file is automatically generated. DO NOT EDIT! */";\ |
| 688 | for f in `echo " " ${EMULATION_OFILES} "" \ |
| 689 | | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ |
| 690 | echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \ |
| 691 | done;\ |
| 692 | echo "";\ |
| 693 | echo "#define EMULATION_LIST \\";\ |
| 694 | for f in `echo " " ${EMULATION_OFILES} "" \ |
| 695 | | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ |
| 696 | echo " &ld_$${f}_emulation, \\"; \ |
| 697 | done;\ |
| 698 | echo " 0") >ldemul-tmp.h |
| 699 | mv ldemul-tmp.h ldemul-list.h |
| 700 | @TDIRS@ |
| 701 | |
| 702 | ea29k.c: $(srcdir)/emulparams/a29k.sh \ |
| 703 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS} |
| 704 | ${GENSCRIPTS} a29k "$(tdir_a29k)" |
| 705 | eaixppc.c: $(srcdir)/emulparams/aixppc.sh \ |
| 706 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} |
| 707 | ${GENSCRIPTS} aixppc "$(tdir_aixppc)" |
| 708 | eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \ |
| 709 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} |
| 710 | ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)" |
| 711 | ealpha.c: $(srcdir)/emulparams/alpha.sh \ |
| 712 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS} |
| 713 | ${GENSCRIPTS} alpha "$(tdir_alpha)" |
| 714 | earcelf.c: $(srcdir)/emulparams/arcelf.sh \ |
| 715 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 716 | ${GENSCRIPTS} arcelf "$(tdir_arcelf)" |
| 717 | earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \ |
| 718 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} |
| 719 | ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)" |
| 720 | earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \ |
| 721 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} |
| 722 | ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)" |
| 723 | earmcoff.c: $(srcdir)/emulparams/armcoff.sh \ |
| 724 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS} |
| 725 | ${GENSCRIPTS} armcoff "$(tdir_armcoff)" |
| 726 | earmpe.c: $(srcdir)/emulparams/armpe.sh \ |
| 727 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} |
| 728 | ${GENSCRIPTS} armpe "$(tdir_armpe)" |
| 729 | ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \ |
| 730 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS} |
| 731 | ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)" |
| 732 | ed10velf.c: $(srcdir)/emulparams/d10velf.sh \ |
| 733 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS} |
| 734 | ${GENSCRIPTS} d10velf "$(tdir_d10v)" |
| 735 | start-sanitize-d30v: |
| 736 | ed30velf.c: $(srcdir)/emulparams/d30velf.sh \ |
| 737 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS} |
| 738 | ${GENSCRIPTS} d30velf "$(tdir_d30v)" |
| 739 | end-sanitize-d30v: |
| 740 | edelta68.c: $(srcdir)/emulparams/delta68.sh \ |
| 741 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS} |
| 742 | ${GENSCRIPTS} delta68 "$(tdir_delta68)" |
| 743 | eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \ |
| 744 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS} |
| 745 | ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)" |
| 746 | em32relf.c: $(srcdir)/emulparams/m32relf.sh \ |
| 747 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 748 | ${GENSCRIPTS} m32relf "$(tdir_m32r)" |
| 749 | eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \ |
| 750 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 751 | ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)" |
| 752 | eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \ |
| 753 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 754 | ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)" |
| 755 | eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \ |
| 756 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 757 | ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)" |
| 758 | eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \ |
| 759 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 760 | ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)" |
| 761 | eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \ |
| 762 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 763 | ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)" |
| 764 | eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \ |
| 765 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 766 | ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)" |
| 767 | eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \ |
| 768 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 769 | ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)" |
| 770 | eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \ |
| 771 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} |
| 772 | ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)" |
| 773 | eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ |
| 774 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} |
| 775 | ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)" |
| 776 | eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \ |
| 777 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 778 | ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)" |
| 779 | eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \ |
| 780 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 781 | ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)" |
| 782 | eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \ |
| 783 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 784 | ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)" |
| 785 | egld960.c: $(srcdir)/emulparams/gld960.sh \ |
| 786 | $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} |
| 787 | ${GENSCRIPTS} gld960 "$(tdir_gld960)" |
| 788 | egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \ |
| 789 | $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} |
| 790 | ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)" |
| 791 | ego32.c: $(srcdir)/emulparams/go32.sh \ |
| 792 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 793 | ${GENSCRIPTS} go32 "$(tdir_go32)" |
| 794 | eh8300.c: $(srcdir)/emulparams/h8300.sh \ |
| 795 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS} |
| 796 | ${GENSCRIPTS} h8300 "$(tdir_h8300)" |
| 797 | eh8300h.c: $(srcdir)/emulparams/h8300h.sh \ |
| 798 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS} |
| 799 | ${GENSCRIPTS} h8300h "$(tdir_h8300h)" |
| 800 | eh8300s.c: $(srcdir)/emulparams/h8300s.sh \ |
| 801 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS} |
| 802 | ${GENSCRIPTS} h8300s "$(tdir_h8300s)" |
| 803 | eh8500.c: $(srcdir)/emulparams/h8500.sh \ |
| 804 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS} |
| 805 | ${GENSCRIPTS} h8500 "$(tdir_h8500)" |
| 806 | eh8500b.c: $(srcdir)/emulparams/h8500b.sh \ |
| 807 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS} |
| 808 | ${GENSCRIPTS} h8500b "$(tdir_h8500b)" |
| 809 | eh8500c.c: $(srcdir)/emulparams/h8500c.sh \ |
| 810 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS} |
| 811 | ${GENSCRIPTS} h8500c "$(tdir_h8500c)" |
| 812 | eh8500m.c: $(srcdir)/emulparams/h8500m.sh \ |
| 813 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS} |
| 814 | ${GENSCRIPTS} h8500m "$(tdir_h8500m)" |
| 815 | eh8500s.c: $(srcdir)/emulparams/h8500s.sh \ |
| 816 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS} |
| 817 | ${GENSCRIPTS} h8500s "$(tdir_h8500s)" |
| 818 | ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \ |
| 819 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 820 | ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)" |
| 821 | ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \ |
| 822 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 823 | ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)" |
| 824 | ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \ |
| 825 | $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS} |
| 826 | ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)" |
| 827 | ei386aout.c: $(srcdir)/emulparams/i386aout.sh \ |
| 828 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 829 | ${GENSCRIPTS} i386aout "$(tdir_i386aout)" |
| 830 | ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \ |
| 831 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 832 | ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)" |
| 833 | ei386coff.c: $(srcdir)/emulparams/i386coff.sh \ |
| 834 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} |
| 835 | ${GENSCRIPTS} i386coff "$(tdir_i386coff)" |
| 836 | ei386go32.c: $(srcdir)/emulparams/i386go32.sh \ |
| 837 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS} |
| 838 | ${GENSCRIPTS} i386go32 "$(tdir_i386go32)" |
| 839 | ei386linux.c: $(srcdir)/emulparams/i386linux.sh \ |
| 840 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 841 | ${GENSCRIPTS} i386linux "$(tdir_i386linux)" |
| 842 | ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ |
| 843 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS} |
| 844 | ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)" |
| 845 | ei386mach.c: $(srcdir)/emulparams/i386mach.sh \ |
| 846 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 847 | ${GENSCRIPTS} i386mach "$(tdir_i386mach)" |
| 848 | ei386moss.c: $(srcdir)/emulparams/i386moss.sh \ |
| 849 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 850 | ${GENSCRIPTS} i386moss "$(tdir_i386moss)" |
| 851 | ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \ |
| 852 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS} |
| 853 | ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)" |
| 854 | ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \ |
| 855 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 856 | ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)" |
| 857 | ei386nw.c: $(srcdir)/emulparams/i386nw.sh \ |
| 858 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS} |
| 859 | ${GENSCRIPTS} i386nw "$(tdir_i386nw)" |
| 860 | ei386pe.c: $(srcdir)/emulparams/i386pe.sh \ |
| 861 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} |
| 862 | ${GENSCRIPTS} i386pe "$(tdir_i386pe)" |
| 863 | elnk960.c: $(srcdir)/emulparams/lnk960.sh \ |
| 864 | $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} |
| 865 | ${GENSCRIPTS} lnk960 "$(tdir_lnk960)" |
| 866 | em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \ |
| 867 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 868 | ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)" |
| 869 | em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \ |
| 870 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 871 | ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)" |
| 872 | em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \ |
| 873 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS} |
| 874 | ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)" |
| 875 | em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \ |
| 876 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS} |
| 877 | ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)" |
| 878 | em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \ |
| 879 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 880 | ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)" |
| 881 | em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \ |
| 882 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 883 | ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)" |
| 884 | em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \ |
| 885 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS} |
| 886 | ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)" |
| 887 | em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \ |
| 888 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 889 | ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)" |
| 890 | em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \ |
| 891 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS} |
| 892 | ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)" |
| 893 | em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \ |
| 894 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS} |
| 895 | ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)" |
| 896 | emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \ |
| 897 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
| 898 | ${GENSCRIPTS} mipsbig |
| 899 | emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \ |
| 900 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS} |
| 901 | ${GENSCRIPTS} mipsbsd |
| 902 | emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \ |
| 903 | $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
| 904 | ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)" |
| 905 | emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \ |
| 906 | $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
| 907 | ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)" |
| 908 | emipslit.c: $(srcdir)/emulparams/mipslit.sh \ |
| 909 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
| 910 | ${GENSCRIPTS} mipslit "$(tdir_mipslit)" |
| 911 | emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \ |
| 912 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
| 913 | ${GENSCRIPTS} mipslnews |
| 914 | emn10300.c: $(srcdir)/emulparams/mn10300.sh \ |
| 915 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 916 | ${GENSCRIPTS} mn10300 "$(tdir_mn10300)" |
| 917 | emn10200.c: $(srcdir)/emulparams/mn10200.sh \ |
| 918 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 919 | ${GENSCRIPTS} mn10200 "$(tdir_mn10200)" |
| 920 | enews.c: $(srcdir)/emulparams/news.sh \ |
| 921 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 922 | ${GENSCRIPTS} news "$(tdir_news)" |
| 923 | ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \ |
| 924 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 925 | ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)" |
| 926 | epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \ |
| 927 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 928 | ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)" |
| 929 | eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \ |
| 930 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} |
| 931 | ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)" |
| 932 | eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \ |
| 933 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS} |
| 934 | ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)" |
| 935 | eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \ |
| 936 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS} |
| 937 | ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)" |
| 938 | eriscix.c: $(srcdir)/emulparams/riscix.sh \ |
| 939 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 940 | ${GENSCRIPTS} riscix "$(tdir_riscix)" |
| 941 | esa29200.c: $(srcdir)/emulparams/sa29200.sh \ |
| 942 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS} |
| 943 | ${GENSCRIPTS} sa29200 "$(tdir_sa29200)" |
| 944 | esh.c: $(srcdir)/emulparams/sh.sh \ |
| 945 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS} |
| 946 | ${GENSCRIPTS} sh "$(tdir_sh)" |
| 947 | eshelf.c: $(srcdir)/emulparams/shelf.sh \ |
| 948 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 949 | ${GENSCRIPTS} shelf "$(tdir_shelf)" |
| 950 | eshlelf.c: $(srcdir)/emulparams/shlelf.sh \ |
| 951 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
| 952 | ${GENSCRIPTS} shlelf "$(tdir_shlelf)" |
| 953 | eshl.c: $(srcdir)/emulparams/shl.sh \ |
| 954 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS} |
| 955 | ${GENSCRIPTS} shl "$(tdir_shl)" |
| 956 | esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \ |
| 957 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 958 | ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)" |
| 959 | esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \ |
| 960 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 961 | ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)" |
| 962 | esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \ |
| 963 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS} |
| 964 | ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)" |
| 965 | esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \ |
| 966 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 967 | ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)" |
| 968 | est2000.c: $(srcdir)/emulparams/st2000.sh \ |
| 969 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS} |
| 970 | ${GENSCRIPTS} st2000 "$(tdir_st2000)" |
| 971 | esun3.c: $(srcdir)/emulparams/sun3.sh \ |
| 972 | $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 973 | ${GENSCRIPTS} sun3 "$(tdir_sun3)" |
| 974 | esun4.c: $(srcdir)/emulparams/sun4.sh \ |
| 975 | $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 976 | ${GENSCRIPTS} sun4 "$(tdir_sun4)" |
| 977 | start-sanitize-tic80: |
| 978 | etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \ |
| 979 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS} |
| 980 | ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)" |
| 981 | end-sanitize-tic80: |
| 982 | evanilla.c: $(srcdir)/emulparams/vanilla.sh \ |
| 983 | $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS} |
| 984 | ${GENSCRIPTS} vanilla "$(tdir_vanilla)" |
| 985 | evax.c: $(srcdir)/emulparams/vax.sh \ |
| 986 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 987 | ${GENSCRIPTS} vax "$(tdir_vax)" |
| 988 | evsta.c: $(srcdir)/emulparams/vsta.sh \ |
| 989 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
| 990 | ${GENSCRIPTS} vsta "$(tdir_vsta)" |
| 991 | start-sanitize-v850: |
| 992 | ev850.c: $(srcdir)/emulparams/v850.sh \ |
| 993 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS} |
| 994 | ${GENSCRIPTS} v850 "$(tdir_v850)" |
| 995 | end-sanitize-v850: |
| 996 | ew65.c: $(srcdir)/emulparams/w65.sh \ |
| 997 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS} |
| 998 | ${GENSCRIPTS} w65 "$(tdir_w65)" |
| 999 | ez8001.c: $(srcdir)/emulparams/z8001.sh \ |
| 1000 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS} |
| 1001 | ${GENSCRIPTS} z8001 "$(tdir_z8001)" |
| 1002 | ez8002.c: $(srcdir)/emulparams/z8002.sh \ |
| 1003 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS} |
| 1004 | ${GENSCRIPTS} z8002 "$(tdir_z8002)" |
| 1005 | |
| 1006 | # The generated emulation files mostly have the same dependencies. |
| 1007 | $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \ |
| 1008 | ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \ |
| 1009 | ldctor.h ldexp.h ldlang.h ldgram.h |
| 1010 | |
| 1011 | check-DEJAGNU: site.exp |
| 1012 | srcroot=`cd $(srcdir) && pwd`; export srcroot; \ |
| 1013 | r=`pwd`; export r; \ |
| 1014 | EXPECT=$(EXPECT); export EXPECT; \ |
| 1015 | if [ -f $(top_builddir)/../expect/expect ]; then \ |
| 1016 | TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \ |
| 1017 | export TCL_LIBRARY; \ |
| 1018 | fi; \ |
| 1019 | runtest=$(RUNTEST); \ |
| 1020 | if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ |
| 1021 | $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \ |
| 1022 | CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \ |
| 1023 | CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \ |
| 1024 | CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \ |
| 1025 | OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \ |
| 1026 | LIBIBERTY="$(LIBIBERTY)" HOSTING_EMU="$(HOSTING_EMU)" \ |
| 1027 | HOSTING_CRT0="$(HOSTING_CRT0)" HOSTING_LIBS="$(HOSTING_LIBS)" \ |
| 1028 | $(RUNTESTFLAGS); \ |
| 1029 | else echo "WARNING: could not find \`runtest'" 1>&2; :;\ |
| 1030 | fi |
| 1031 | |
| 1032 | # Rules for testing by relinking ld itself. |
| 1033 | # A similar test is in the testsuite. This target is for ease of use |
| 1034 | # when porting ld. |
| 1035 | |
| 1036 | ld-partial.o: ld-new$(EXEEXT) |
| 1037 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES) |
| 1038 | ld1$(EXEEXT): ld-partial.o |
| 1039 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) |
| 1040 | |
| 1041 | ld1-full$(EXEEXT): ld-new |
| 1042 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) |
| 1043 | |
| 1044 | ld2$(EXEEXT): ld1$(EXEEXT) |
| 1045 | ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) |
| 1046 | |
| 1047 | ld3$(EXEEXT): ld2$(EXEEXT) |
| 1048 | ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) |
| 1049 | |
| 1050 | bootstrap: ld3$(EXEEXT) |
| 1051 | cmp ld2$(EXEEXT) ld3$(EXEEXT) |
| 1052 | |
| 1053 | .PHONY: bootstrap |
| 1054 | |
| 1055 | # A test program for C++ constructors and destructors. |
| 1056 | # This test is now in the testsuite. |
| 1057 | # |
| 1058 | #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new |
| 1059 | # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \ |
| 1060 | # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS) |
| 1061 | # |
| 1062 | #cdtest.out: cdtest |
| 1063 | # ./cdtest > cdtest.tmp |
| 1064 | # mv cdtest.tmp cdtest.out |
| 1065 | # |
| 1066 | #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new |
| 1067 | # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \ |
| 1068 | # cdtest-bar.o cdtest-foo.o |
| 1069 | # |
| 1070 | #cdtest-ur: cdtest-ur.o |
| 1071 | # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \ |
| 1072 | # $(HOSTING_LIBS) |
| 1073 | # |
| 1074 | #cdtest-ur.out: cdtest-ur |
| 1075 | # ./cdtest-ur > cdtest-ur.tmp |
| 1076 | # mv cdtest-ur.tmp cdtest-ur.out |
| 1077 | # |
| 1078 | #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp |
| 1079 | # diff $(srcdir)/cdtest.exp cdtest.out |
| 1080 | # diff $(srcdir)/cdtest.exp cdtest-ur.out |
| 1081 | # |
| 1082 | #.PHONY: check-cdtest |
| 1083 | |
| 1084 | # END OF CHECK TARGETS |
| 1085 | |
| 1086 | # DOCUMENTATION TARGETS |
| 1087 | # Manual configuration file; not usually attached to normal configuration, |
| 1088 | # because almost all configs use "gen" version of manual. |
| 1089 | # Set DOCVER above to change. |
| 1090 | configdoc.texi: ${DOCVER}-doc.texi |
| 1091 | ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \ |
| 1092 | || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \ |
| 1093 | || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi |
| 1094 | |
| 1095 | ld.info: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi |
| 1096 | ld.dvi: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi |
| 1097 | |
| 1098 | # We want to include a file from the BFD documentation. automake |
| 1099 | # doesn't give us a way to set the include directories for makeinfo, |
| 1100 | # so we just create a file locally to include it. |
| 1101 | bfdsumm.texi: Makefile |
| 1102 | echo @include $(BFDDIR)/doc/bfdsumm.texi > bfdsumm.texi |
| 1103 | |
| 1104 | .PHONY: install-exec-local install-data-local |
| 1105 | |
| 1106 | install-exec-local: ld-new$(EXEEXT) |
| 1107 | $(mkinstalldirs) $(bindir) $(tooldir)/bin |
| 1108 | @list='$(noinst_PROGRAMS)'; for p in $$list; do \ |
| 1109 | if test -f $$p; then \ |
| 1110 | echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`"; \ |
| 1111 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`; \ |
| 1112 | else :; fi; \ |
| 1113 | done |
| 1114 | rm -f $(tooldir)/bin/ld$(EXEEXT) |
| 1115 | n=`echo ld | sed '$(transform)'`; \ |
| 1116 | ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ |
| 1117 | || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) |
| 1118 | |
| 1119 | install-data-local: |
| 1120 | $(mkinstalldirs) $(scriptdir) |
| 1121 | for f in ldscripts/*; do \ |
| 1122 | $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \ |
| 1123 | done |
| 1124 | |
| 1125 | # Targets to rebuild dependencies in this Makefile. |
| 1126 | # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES). |
| 1127 | .dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h |
| 1128 | rm -f .dep1 |
| 1129 | $(MAKE) DEP=$(DEP) .dep1 |
| 1130 | sed -f dep.sed <.dep1 >.dep |
| 1131 | |
| 1132 | # This rule really wants a mkdep that runs "gcc -MM". |
| 1133 | .dep1: $(CFILES) $(GENERATED_CFILES) |
| 1134 | rm -f .dep2 |
| 1135 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 |
| 1136 | $(DEP) -f .dep2 $(INCLUDES) $? |
| 1137 | $(srcdir)/../move-if-change .dep2 .dep1 |
| 1138 | |
| 1139 | dep.sed: dep-in.sed config.status |
| 1140 | sed <$(srcdir)/dep-in.sed >dep.sed \ |
| 1141 | -e 's!@INCDIR@!$(INCDIR)!' \ |
| 1142 | -e 's!@SRCDIR@!$(srcdir)!' |
| 1143 | |
| 1144 | dep: .dep |
| 1145 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile |
| 1146 | cat .dep >> tmp-Makefile |
| 1147 | $(srcdir)/../move-if-change tmp-Makefile Makefile |
| 1148 | |
| 1149 | dep-in: .dep |
| 1150 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in |
| 1151 | cat .dep >> tmp-Makefile.in |
| 1152 | $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in |
| 1153 | |
| 1154 | dep-am: .dep |
| 1155 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am |
| 1156 | cat .dep >> tmp-Makefile.am |
| 1157 | $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am |
| 1158 | |
| 1159 | .PHONY: dep dep-in dep-am |
| 1160 | |
| 1161 | # What appears below is generated by a hacked mkdep using gcc -MM. |
| 1162 | |
| 1163 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 1164 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 1165 | |
| 1166 | ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1167 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1168 | ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h |
| 1169 | ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1170 | sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \ |
| 1171 | ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h |
| 1172 | ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1173 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1174 | ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h |
| 1175 | ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1176 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1177 | ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \ |
| 1178 | ldlex.h ldemul.h |
| 1179 | ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1180 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
| 1181 | $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ |
| 1182 | ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \ |
| 1183 | ldctor.h ldfile.h $(INCDIR)/fnmatch.h |
| 1184 | ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1185 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
| 1186 | $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ |
| 1187 | ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \ |
| 1188 | ldlex.h ldfile.h ldctor.h |
| 1189 | ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1190 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
| 1191 | $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \ |
| 1192 | ldgram.h ldlex.h ldmain.h ldfile.h |
| 1193 | ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1194 | sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \ |
| 1195 | ldemul.h ldmain.h |
| 1196 | ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1197 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1198 | $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \ |
| 1199 | ldmisc.h ldgram.h ldmain.h |
| 1200 | lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1201 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
| 1202 | $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ |
| 1203 | ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \ |
| 1204 | ldver.h ldemul.h |
| 1205 | mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \ |
| 1206 | config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \ |
| 1207 | ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h |
| 1208 | ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1209 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1210 | $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \ |
| 1211 | ldlang.h |
| 1212 | ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
| 1213 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
| 1214 | ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \ |
| 1215 | ldmain.h mri.h ldlex.h |
| 1216 | ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \ |
| 1217 | ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \ |
| 1218 | ldmain.h |
| 1219 | |
| 1220 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
| 1221 | |
| 1222 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
| 1223 | # Otherwise a system limit (for SysV at least) may be exceeded. |
| 1224 | .NOEXPORT: |