Enable MAKEVERBOSE support.

This commit is contained in:
lukem 2008-07-21 15:34:58 +00:00
parent 09657f8798
commit ae07e87382
5 changed files with 51 additions and 45 deletions

View File

@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.23 2006/05/19 19:11:12 christos Exp $
# $NetBSD: Makefile,v 1.24 2008/07/21 15:34:58 lukem Exp $
.include <bsd.own.mk>
ELFSIZE= 64
@ -10,7 +12,7 @@ OBJS+= crtfm.o
.include "${.CURDIR}/../common_elf/Makefile.inc"
crtfm.o: crtfm.c
@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o

View File

@ -1,10 +1,13 @@
# $NetBSD: Makefile,v 1.13 1999/03/19 22:54:40 thorpej Exp $
# $NetBSD: Makefile,v 1.14 2008/07/21 15:34:58 lukem Exp $
.include <bsd.own.mk>
OBJS+= c++rt0.o
c++rt0.o: c++rt0.c
${_MKTARGET_COMPILE}
${COMPILE.c} -fpic ${.ALLSRC}
@${LD} -x -r ${.TARGET}
@mv a.out ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
.include "${.CURDIR}/../common_aout/Makefile.inc"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2004/03/09 20:04:00 skrll Exp $
# $NetBSD: Makefile,v 1.17 2008/07/21 15:34:58 lukem Exp $
.include <bsd.own.mk>
@ -11,9 +11,10 @@ OBJS= c++rt0.o
realall: ${OBJS}
c++rt0.o: c++rt0.c
${_MKTARGET_COMPILE}
${COMPILE.c} ${.ALLSRC}
@${LD} -x -r ${.TARGET}
@mv a.out ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
FILES=${OBJS}
FILESDIR=${LIBDIR}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.9 2007/12/01 11:06:36 yamt Exp $
# $NetBSD: Makefile.inc,v 1.10 2008/07/21 15:34:58 lukem Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/../common_aout
@ -15,30 +15,30 @@ OBJS+= lcrt0.o
realall: ${OBJS}
crt0.o: ${SRCS}
@echo "${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
# dependant on crt0.o to pick up header dependencies
gcrt0.o: ${SRCS} crt0.o
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
scrt0.o: ${SRCS} crt0.o
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
# same as crt0.o modulo the dynamic linker is in /libexec
lcrt0.o: ${SRCS} crt0.o
@echo "${COMPILE.c} -DCRT0 -DDYNAMIC -DLDSO=\"${SHLINKINSTALLDIR}/ld.so\" ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 -DDYNAMIC -DLDSO=\"${SHLINKINSTALLDIR}/ld.so\" ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DCRT0 -DDYNAMIC -DLDSO=\"${SHLINKINSTALLDIR}/ld.so\" ${.CURDIR}/${SRCS} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
.if make(depend)
CPPFLAGS+= -DDYNAMIC

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.28 2007/12/01 11:06:36 yamt Exp $
# $NetBSD: Makefile.inc,v 1.29 2008/07/21 15:34:58 lukem Exp $
.include <bsd.own.mk>
@ -31,29 +31,29 @@ COPTS+= -fPIC
realall: ${OBJS}
crt0.o: crt0.c
@echo "${COMPILE.c} -DCRT0 ${.IMPSRC} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 ${.IMPSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DCRT0 ${.IMPSRC} -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
# dependant on crt0.o to pick up header dependencies
gcrt0.o: ${.CURDIR}/crt0.c crt0.o
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o
${LD} -x -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
crti.o: crti.c
@echo "${COMPILE.c} ${.IMPSRC} -o ${.TARGET}"
@${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
@${LD} -X -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
${LD} -X -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
crtn.o: crtn.c
@echo "${COMPILE.c} ${.IMPSRC} -o ${.TARGET}"
@${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
@${LD} -X -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
${_MKTARGET_COMPILE}
${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
${LD} -X -r -o ${.TARGET} ${.TARGET}.o
rm -f ${.TARGET}.o
FILES=${OBJS}
FILESDIR=${LIBDIR}