diff options
Diffstat (limited to 'gnu/usr.bin/binutils/ld/Makefile')
| -rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 8e81c8ffd760..d35bf465a396 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -4,47 +4,47 @@ .PATH: ${SRCDIR}/ld -PROG= ld -SCRIPTDIR= /usr/libdata/ldscripts -SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \ - ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \ - ldver.c ldwrite.c lexsup.c mri.c +PROG= ld +SCRIPTDIR= /usr/libdata/ldscripts +SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \ + ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \ + ldver.c ldwrite.c lexsup.c mri.c .if defined(BOOTSTRAPPING) && !exists(/usr/include/elf-hints.h) -SRCS+= elf-hints.h +SRCS+= elf-hints.h CLEANFILES+= elf-hints.h elf-hints.h: - ln -sf ${.CURDIR}/../../../../include/${.TARGET} . + ln -sf ${.CURDIR}/../../../../include/${.TARGET} . .endif -CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\" -CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd -CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\" -NOSHARED?= yes -DPADD= ${RELTOP}/libbfd/libbfd.a -DPADD+= ${RELTOP}/libiberty/libiberty.a -LDADD= ${DPADD} +CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\" +CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd +CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\" +NOSHARED?= yes +DPADD= ${RELTOP}/libbfd/libbfd.a +DPADD+= ${RELTOP}/libiberty/libiberty.a +LDADD= ${DPADD} CLEANDIRS+= ldscripts CLEANFILES+= ldemul-list.h stringify.sed # If set, BINUTILSDISTDIR is the path to a directory containing the full GNU # binutils release. FreeBSD only distributes the bits that are required to # build native architectures. BINUTILSDISTDIR is needed to build cross tools. -.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) -.PATH: ${BINUTILSDISTDIR}/ld -CFLAGS+= -I${BINUTILSDISTDIR}/ld +.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) +.PATH: ${BINUTILSDISTDIR}/ld +CFLAGS+= -I${BINUTILSDISTDIR}/ld .endif EMXFR= EMLST= .for _e in ${EMS} -EMXFR+= extern ld_emulation_xfer_type ${_e}; +EMXFR+= extern ld_emulation_xfer_type ${_e}; EMLST+= &${_e}, .endfor ldemul-list.h: - echo "${EMXFR}" > ldemul-list.h - echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h + echo "${EMXFR}" > ${.TARGET} + echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET} stringify.sed: ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET} |
