Add `B' to list of flags to pass through from C*FLAGS when using mkdep

(bsd.dep.mk) and compiling assembly language sources (bsd.lib.mk).
This doesn't change anything for our current source tree, but if you
want to use the -B switch in C*FLAGS to specify the location of
compiler subprograms, now you can do it.

Reviewed by:	bde (implicitly)
This commit is contained in:
Satoshi Asami 1997-06-18 03:39:34 +00:00
parent ab6e6dd2aa
commit e1eecc081e
2 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $Id: bsd.dep.mk,v 1.11 1997/04/09 16:10:23 bde Exp $
# $Id: bsd.dep.mk,v 1.12 1997/04/13 06:44:20 jkh Exp $
#
# The include file <bsd.dep.mk> handles Makefile dependencies.
#
@ -44,16 +44,16 @@ __depend_cc= ${SRCS:M*.cc} ${SRCS:M*.C} ${SRCS:M*.cxx}
${DEPENDFILE}: ${SRCS}
rm -f ${DEPENDFILE}
.if defined(__depend_s) && !empty(__depend_s)
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} ${CFLAGS:M-[ID]*} ${AINC} \
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} ${CFLAGS:M-[BID]*} ${AINC} \
${.ALLSRC:M*.[sS]}
.endif
.if defined(__depend_c) && !empty(__depend_c)
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} ${CFLAGS:M-[ID]*} \
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} ${CFLAGS:M-[BID]*} \
${.ALLSRC:M*.c}
.endif
.if defined(__depend_cc) && !empty(__depend_cc)
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
${CXXFLAGS:M-nostd*} ${CXXFLAGS:M-[ID]*} \
${CXXFLAGS:M-nostd*} ${CXXFLAGS:M-[BID]*} \
${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}
.endif
.if target(_EXTRADEPEND)

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
# $Id: bsd.lib.mk,v 1.56 1997/05/23 08:38:46 asami Exp $
# $Id: bsd.lib.mk,v 1.57 1997/05/23 17:50:35 dfr Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@ -70,30 +70,30 @@ STRIP?= -s
@${LD} -O ${.TARGET} -x -r ${.TARGET}
.s.o:
${CC} -x assembler-with-cpp ${CFLAGS:M-[ID]*} ${AINC} -c \
${CC} -x assembler-with-cpp ${CFLAGS:M-[BID]*} ${AINC} -c \
${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -x -r ${.TARGET}
.s.po:
${CC} -x assembler-with-cpp -DPROF ${CFLAGS:M-[ID]*} ${AINC} -c \
${CC} -x assembler-with-cpp -DPROF ${CFLAGS:M-[BID]*} ${AINC} -c \
${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -X -r ${.TARGET}
.s.so:
${CC} -x assembler-with-cpp -fpic -DPIC ${CFLAGS:M-[ID]*} ${AINC} -c \
${CC} -x assembler-with-cpp -fpic -DPIC ${CFLAGS:M-[BID]*} ${AINC} -c \
${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -x -r ${.TARGET}
.S.o:
${CC} ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
${CC} ${CFLAGS:M-[BID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -x -r ${.TARGET}
.S.po:
${CC} -DPROF ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
${CC} -DPROF ${CFLAGS:M-[BID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -X -r ${.TARGET}
.S.so:
${CC} -fpic -DPIC ${CFLAGS:M-[ID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
${CC} -fpic -DPIC ${CFLAGS:M-[BID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET}
@${LD} -O ${.TARGET} -x -r ${.TARGET}
.m.o: