Minor cleanup.
This commit is contained in:
parent
c75dbabbf6
commit
5df147f306
@ -1,17 +1,20 @@
|
||||
# $NetBSD: Makefile,v 1.1 1998/08/27 20:47:21 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.2 1998/08/27 21:20:46 tv Exp $
|
||||
|
||||
PROG= ld
|
||||
|
||||
SRCS= ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c ldmain.c ldmisc.c \
|
||||
ldver.c ldwrite.c lexsup.c mri.c ldcref.c ldgram.y ldlex.l
|
||||
MAN= ld.1
|
||||
YHEADER=1
|
||||
|
||||
CPPFLAGS+= -I. -I${.CURDIR} -I${BFDOBJ} -I${DIST}/ld \
|
||||
-I${DIST}/bfd -I${DIST}/include \
|
||||
-DDEFAULT_EMULATION='"${DEFAULT_EMUL}"' \
|
||||
-DSCRIPTDIR='"/usr/libdata"' \
|
||||
-DSCRIPTDIR='"/usr/libdata/ldscripts"' \
|
||||
-DTARGET='"${MACHINE_GNU_ARCH}--netbsd"' \
|
||||
-DEMULATION_LIST='${EMULS:S/^/\&ld_/:S/$/_emulation,/} 0'
|
||||
YHEADER=1
|
||||
|
||||
# gets these from BFDOBJ since ld uses bfd internal headers
|
||||
DPADD+= ${BFDOBJ}/libbfd_pic.a
|
||||
LDADD+= -L${BFDOBJ} -lbfd
|
||||
|
||||
@ -26,14 +29,15 @@ LIB_PATH= ${LIBDIR} # passed to genscripts.sh
|
||||
|
||||
.for _EMUL_ in ${EMULS}
|
||||
SRCS+= e${_EMUL_}.c
|
||||
CLEANFILES+= e${_EMUL_}.c ${_EMUL_}.x*
|
||||
CLEANFILES+= e${_EMUL_}.c
|
||||
e${_EMUL_}.c: ${DIST}/ld/genscripts.sh ${DIST}/ld/emulparams/${_EMUL_}.sh
|
||||
sh ${DIST}/ld/genscripts.sh ${DIST}/ld /usr/lib \
|
||||
sh ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} \
|
||||
${MACHINE_GNU_ARCH}-netbsd ${MACHINE_GNU_ARCH}-netbsd \
|
||||
${MACHINE_GNU_ARCH}-netbsd ${DEFAULT_EMUL} \
|
||||
"" ${_EMUL_}
|
||||
.endfor
|
||||
|
||||
# perhaps these will be installed as well.
|
||||
cleanprog: __cleanldscripts
|
||||
__cleanldscripts:
|
||||
rm -rf ldscripts
|
||||
|
Loading…
Reference in New Issue
Block a user