Makefile revision 76253
1# $FreeBSD: head/gnu/usr.bin/binutils/ld/Makefile 76253 2001-05-03 21:37:06Z obrien $ 2 3.include "../Makefile.inc0" 4 5.PATH: ${SRCDIR}/ld 6 7PROG= ld 8SCRIPTDIR= /usr/libdata/ldscripts 9SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \ 10 ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \ 11 ldver.c ldwrite.c lexsup.c mri.c 12CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\" 13CFLAGS+= -I${SRCDIR}/ld 14CFLAGS+= -I${.CURDIR}/../../../../include 15CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\" 16NOSHARED?= yes 17DPADD= ${RELTOP}/libbfd/libbfd.a 18DPADD+= ${RELTOP}/libiberty/libiberty.a 19LDADD= ${DPADD} 20CLEANDIRS+= ldscripts 21CLEANFILES+= ldemul-list.h stringify.sed 22 23# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU 24# binutils release. FreeBSD only distributes the bits that are required to 25# build native architectures. BINUTILSDISTDIR is needed to build cross tools. 26.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) 27.PATH: ${BINUTILSDISTDIR}/ld 28CFLAGS+= -I${BINUTILSDISTDIR}/ld 29.endif 30 31EMXFR= 32EMLST= 33.for _e in ${EMS} 34EMXFR+= extern ld_emulation_xfer_type ${_e}; 35EMLST+= &${_e}, 36.endfor 37 38ldemul-list.h: 39 echo "${EMXFR}" > ldemul-list.h 40 echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h 41 42stringify.sed: 43 ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET} 44 45afterinstall: 46 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 47 ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR} 48 49.include <bsd.prog.mk> 50