Fixed missing SHLIBDIR in GCC_EXEC_PREFIX.
Add the path to the source .mk files to the beginning of .MAKEFLAGS instead of to the end, so that there is more chance of it having priority. Additions in /etc/make.conf still have priority for sub-makes if they are also at the beginning, although this is probably not wanted for building /usr/src. Use ${MK_FLAGS} for building dependencies for tools. This saves time building dependencies for tools that won't be created (mainly profiled libraries) and will be necessary to give correct dependencies when tools are built static. Spell the object directory as ${OBJDIR} consistently (even when we know that ${OBJDIR} == "obj"). Print ${DESTDIR} in messages where appropriate. Fixed some misformattings.
This commit is contained in:
parent
46986e6888
commit
228e718f7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34509
54
Makefile
54
Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.159 1998/02/19 07:34:46 jb Exp $
|
# $Id: Makefile,v 1.160 1998/03/12 10:08:50 bde Exp $
|
||||||
#
|
#
|
||||||
# While porting to the another architecture include the bootstrap instead
|
# While porting to the another architecture include the bootstrap instead
|
||||||
# of the normal build.
|
# of the normal build.
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
|
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
|
||||||
# -DNOCLEAN do not clean at all
|
# -DNOCLEAN do not clean at all
|
||||||
# -DNOTOOLS do not rebuild any tools first
|
# -DNOTOOLS do not rebuild any tools first
|
||||||
# -DNOCRYPT will prevent building of crypt versions
|
# -DNOCRYPT will prevent building of crypt versions
|
||||||
# -DNOLKM do not build loadable kernel modules
|
# -DNOLKM do not build loadable kernel modules
|
||||||
# -DNOOBJDIR do not run ``${MAKE} obj''
|
# -DNOOBJDIR do not run ``${MAKE} obj''
|
||||||
@ -42,7 +42,7 @@
|
|||||||
# obj depend all install clean cleandepend cleanobj
|
# obj depend all install clean cleandepend cleanobj
|
||||||
|
|
||||||
.if (!make(world)) && (!make(buildworld)) && (!make(installworld))
|
.if (!make(world)) && (!make(buildworld)) && (!make(installworld))
|
||||||
.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk
|
.MAKEFLAGS:= -m ${.CURDIR}/share/mk ${.MAKEFLAGS}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Put initial settings here.
|
# Put initial settings here.
|
||||||
@ -192,7 +192,7 @@ TMPPATH= ${STRICTTMPPATH}:${PATH}
|
|||||||
# It fails for set[ug]id executables (are any used?).
|
# It fails for set[ug]id executables (are any used?).
|
||||||
COMPILER_ENV= BISON_SIMPLE=${WORLDTMP}/usr/share/misc/bison.simple \
|
COMPILER_ENV= BISON_SIMPLE=${WORLDTMP}/usr/share/misc/bison.simple \
|
||||||
COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
|
COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
|
||||||
GCC_EXEC_PREFIX=${WORLDTMP}/usr/lib/ \
|
GCC_EXEC_PREFIX=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib/ \
|
||||||
LD_LIBRARY_PATH=${WORLDTMP}${SHLIBDIR} \
|
LD_LIBRARY_PATH=${WORLDTMP}${SHLIBDIR} \
|
||||||
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib
|
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ buildworld:
|
|||||||
${IBMAKE} -I${.CURDIR}/share/mk ${CLEANDIR} ${OBJDIR}
|
${IBMAKE} -I${.CURDIR}/share/mk ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
cd ${.CURDIR}/usr.bin/make && \
|
cd ${.CURDIR}/usr.bin/make && \
|
||||||
${IBMAKE} -I${.CURDIR}/share/mk depend && \
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} depend && \
|
||||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} all && \
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} all && \
|
||||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} install && \
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} install && \
|
||||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} clean cleandepend
|
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} clean cleandepend
|
||||||
@ -258,7 +258,7 @@ buildworld:
|
|||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
@echo " Rebuilding the obj tree"
|
@echo " Rebuilding the obj tree"
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${.CURDIR} && ${BMAKE} par-obj
|
cd ${.CURDIR} && ${BMAKE} par-${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NOTOOLS)
|
.if !defined(NOTOOLS)
|
||||||
@echo
|
@echo
|
||||||
@ -274,7 +274,7 @@ buildworld:
|
|||||||
.endif
|
.endif
|
||||||
@echo
|
@echo
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
@echo " Rebuilding /usr/include"
|
@echo " Rebuilding ${DESTDIR}/usr/include"
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${.CURDIR} && SHARED=symlinks ${BMAKE} includes
|
cd ${.CURDIR} && SHARED=symlinks ${BMAKE} includes
|
||||||
.if !defined(NOTOOLS)
|
.if !defined(NOTOOLS)
|
||||||
@ -286,7 +286,7 @@ buildworld:
|
|||||||
.endif
|
.endif
|
||||||
@echo
|
@echo
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
@echo " Rebuilding /usr/lib"
|
@echo " Rebuilding ${DESTDIR}/usr/lib"
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
cd ${.CURDIR} && ${BMAKE} libraries
|
cd ${.CURDIR} && ${BMAKE} libraries
|
||||||
.if !defined(NOTOOLS)
|
.if !defined(NOTOOLS)
|
||||||
@ -447,17 +447,18 @@ bootstrap:
|
|||||||
cd ${.CURDIR}/include && find -dx . | cpio -dump ${DESTDIR}/usr/include
|
cd ${.CURDIR}/include && find -dx . | cpio -dump ${DESTDIR}/usr/include
|
||||||
cd ${.CURDIR}/include && make symlinks
|
cd ${.CURDIR}/include && make symlinks
|
||||||
.endif
|
.endif
|
||||||
cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
|
cd ${.CURDIR}/usr.bin/make && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
|
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && \
|
||||||
|
${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} -DNOLIB all && \
|
${MAKE} ${MK_FLAGS} -DNOLIB all && \
|
||||||
${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
|
${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
|
||||||
.if !defined(NOOBJDIR)
|
.if !defined(NOOBJDIR)
|
||||||
cd ${.CURDIR}/usr.bin/lex && ${MAKE} obj
|
cd ${.CURDIR}/usr.bin/lex && ${MAKE} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -469,7 +470,8 @@ bootstrap:
|
|||||||
# on cleaned away headers in ${WORLDTMP}.
|
# on cleaned away headers in ${WORLDTMP}.
|
||||||
#
|
#
|
||||||
include-tools:
|
include-tools:
|
||||||
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} -B cleandepend depend && \
|
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} -B cleandepend && \
|
||||||
|
${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
|
|
||||||
@ -558,7 +560,7 @@ lib-tools:
|
|||||||
usr.bin/nm \
|
usr.bin/nm \
|
||||||
usr.bin/ranlib \
|
usr.bin/ranlib \
|
||||||
usr.bin/uudecode
|
usr.bin/uudecode
|
||||||
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
cd ${.CURDIR}/$d && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endfor
|
.endfor
|
||||||
@ -568,52 +570,52 @@ lib-tools:
|
|||||||
#
|
#
|
||||||
libraries:
|
libraries:
|
||||||
.if exists(lib/csu/${MACHINE})
|
.if exists(lib/csu/${MACHINE})
|
||||||
cd ${.CURDIR}/lib/csu/${MACHINE} && ${MAKE} depend && \
|
cd ${.CURDIR}/lib/csu/${MACHINE} && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(lib/libcompat)
|
.if exists(lib/libcompat)
|
||||||
cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
|
cd ${.CURDIR}/lib/libcompat && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(lib/libncurses)
|
.if exists(lib/libncurses)
|
||||||
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
|
cd ${.CURDIR}/lib/libncurses && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(lib/libtermcap)
|
.if exists(lib/libtermcap)
|
||||||
cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
|
cd ${.CURDIR}/lib/libtermcap && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(gnu)
|
.if exists(gnu)
|
||||||
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
|
cd ${.CURDIR}/gnu/lib && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
||||||
cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
|
cd ${.CURDIR}/secure/lib && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(lib)
|
.if exists(lib)
|
||||||
cd ${.CURDIR}/lib && ${MAKE} depend && \
|
cd ${.CURDIR}/lib && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(usr.bin/lex/lib)
|
.if exists(usr.bin/lex/lib)
|
||||||
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
||||||
cd ${.CURDIR}/kerberosIV/lib && ${MAKE} depend && \
|
cd ${.CURDIR}/kerberosIV/lib && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.if exists(usr.sbin/pcvt/keycap)
|
.if exists(usr.sbin/pcvt/keycap)
|
||||||
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
|
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
@ -652,7 +654,7 @@ build-tools:
|
|||||||
gnu/usr.bin/gzip \
|
gnu/usr.bin/gzip \
|
||||||
gnu/usr.bin/man/makewhatis \
|
gnu/usr.bin/man/makewhatis \
|
||||||
gnu/usr.bin/sort \
|
gnu/usr.bin/sort \
|
||||||
gnu/usr.bin/texinfo \
|
gnu/usr.bin/texinfo \
|
||||||
share/info \
|
share/info \
|
||||||
usr.bin/basename \
|
usr.bin/basename \
|
||||||
usr.bin/cap_mkdb \
|
usr.bin/cap_mkdb \
|
||||||
@ -685,7 +687,7 @@ build-tools:
|
|||||||
usr.sbin/chown \
|
usr.sbin/chown \
|
||||||
usr.sbin/mtree \
|
usr.sbin/mtree \
|
||||||
usr.sbin/zic
|
usr.sbin/zic
|
||||||
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
cd ${.CURDIR}/$d && ${MAKE} ${MK_FLAGS} depend && \
|
||||||
${MAKE} ${MK_FLAGS} all && \
|
${MAKE} ${MK_FLAGS} all && \
|
||||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||||
.endfor
|
.endfor
|
||||||
|
Loading…
Reference in New Issue
Block a user