Makefile revision 58683
1# $FreeBSD: head/gnu/usr.bin/binutils/ld/Makefile 58683 2000-03-27 18:02:04Z bde $ 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 14DPADD= ${RELTOP}/libbfd/libbfd.a 15DPADD+= ${RELTOP}/libiberty/libiberty.a 16LDADD= ${DPADD} 17CLEANDIRS+= ldscripts 18CLEANFILES+= ldemul-list.h 19 20# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU 21# binutils release. FreeBSD only distributes the bits that are required to 22# build native architectures. BINUTILSDISTDIR is needed to build cross tools. 23.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) 24.PATH: ${BINUTILSDISTDIR}/ld 25CFLAGS+= -I${BINUTILSDISTDIR}/ld 26.endif 27 28EMXFR= 29EMLST= 30.for _e in ${EMS} 31EMXFR+= extern ld_emulation_xfer_type ${_e}; 32EMLST+= &${_e}, 33.endfor 34 35ldemul-list.h: 36 echo "${EMXFR}" > ldemul-list.h 37 echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h 38 39afterinstall: 40 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 41 ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR} 42 43.include <bsd.prog.mk> 44