Misc fixes from projects/bmake
Differential Revision: D2748 Reviewed by: brooks imp
This commit is contained in:
parent
ab21b9ab84
commit
bd831db65c
@ -16,11 +16,15 @@ INSTALLED_HEADERS= readline.h chardefs.h keymaps.h history.h tilde.h \
|
|||||||
CFLAGS+= -I${.OBJDIR}/..
|
CFLAGS+= -I${.OBJDIR}/..
|
||||||
SRCDIR= ${.CURDIR}/../../../../contrib/libreadline
|
SRCDIR= ${.CURDIR}/../../../../contrib/libreadline
|
||||||
|
|
||||||
|
.NOPATH: ${INSTALLED_HEADERS}
|
||||||
|
|
||||||
|
beforebuild: ${INSTALLED_HEADERS}
|
||||||
|
CLEANFILES+= ${INSTALLED_HEADERS}
|
||||||
|
DPSRCS+= ${INSTALLED_HEADERS}
|
||||||
|
|
||||||
.for _h in ${INSTALLED_HEADERS}
|
.for _h in ${INSTALLED_HEADERS}
|
||||||
CLEANFILES+= ${_h}
|
${_h}: ${SRCDIR}/${_h}
|
||||||
DPSRCS+= ${.OBJDIR}/${_h}
|
ln -sf ${.ALLSRC} ${.TARGET}
|
||||||
${.OBJDIR}/${_h}: ${SRCDIR}/${_h}
|
|
||||||
${INSTALL} ${.ALLSRC} ${.TARGET}
|
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
LIBADD= ncursesw
|
LIBADD= ncursesw
|
||||||
|
@ -215,6 +215,9 @@ tconfig.h:
|
|||||||
|
|
||||||
GENSRCS+= tconfig.h
|
GENSRCS+= tconfig.h
|
||||||
CLEANFILES+= cs-tconfig.h
|
CLEANFILES+= cs-tconfig.h
|
||||||
|
|
||||||
|
.NOPATH: ${GENSRCS} ${CLEANFILES}
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
optionlist: ${OPT_FILES}
|
optionlist: ${OPT_FILES}
|
||||||
LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
|
LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
|
||||||
|
@ -127,6 +127,7 @@ revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(GROFF_DIST)/REVISION`
|
|||||||
|
|
||||||
.sh .pl:
|
.sh .pl:
|
||||||
@${ECHO} Making ${.TARGET} from ${.IMPSRC}
|
@${ECHO} Making ${.TARGET} from ${.IMPSRC}
|
||||||
|
@rm -f ${.TARGET}
|
||||||
@sed -e "s|@BINDIR@|${BINDIR}|g" \
|
@sed -e "s|@BINDIR@|${BINDIR}|g" \
|
||||||
-e 's|@GROFF_BIN_PATH_SETUP@|GROFF_RUNTIME="$${GROFF_BIN_PATH=${BINDIR}}:"|g' \
|
-e 's|@GROFF_BIN_PATH_SETUP@|GROFF_RUNTIME="$${GROFF_BIN_PATH=${BINDIR}}:"|g' \
|
||||||
-e "s;@FONTDIR@;$(fontdir);g" \
|
-e "s;@FONTDIR@;$(fontdir);g" \
|
||||||
|
@ -49,4 +49,4 @@ $COPYRIGHT
|
|||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
chmod 644 $tmpfile
|
chmod 644 $tmpfile
|
||||||
mv $tmpfile osreldate.h
|
mv -f $tmpfile osreldate.h
|
||||||
|
@ -34,7 +34,7 @@ ETSRCS= \
|
|||||||
.for ET in ${ETSRCS}
|
.for ET in ${ETSRCS}
|
||||||
.for _ET in ${ET:T:R}
|
.for _ET in ${ET:T:R}
|
||||||
.if ${SRCS:M${_ET}.[ch]} != ""
|
.if ${SRCS:M${_ET}.[ch]} != ""
|
||||||
.ORDER: ${_ET}.c ${_ET}.h
|
.ORDER: ${_ET}.h ${_ET}.c
|
||||||
${_ET}.c ${_ET}.h: ${ET}
|
${_ET}.c ${_ET}.h: ${ET}
|
||||||
compile_et ${.ALLSRC}
|
compile_et ${.ALLSRC}
|
||||||
CLEANFILES+= ${_ET}.h ${_ET}.c
|
CLEANFILES+= ${_ET}.h ${_ET}.c
|
||||||
|
@ -10,7 +10,8 @@ SRCS= \
|
|||||||
|
|
||||||
CFLAGS+= -I${KRB5DIR}/lib/roken \
|
CFLAGS+= -I${KRB5DIR}/lib/roken \
|
||||||
-I${KRB5DIR}/base \
|
-I${KRB5DIR}/base \
|
||||||
-I${KRB5DIR}/lib/ipc
|
-I${KRB5DIR}/lib/ipc \
|
||||||
|
-I${KRB5DIR}/include
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ CFLAGS+= -I${.CURDIR}/ld80
|
|||||||
CFLAGS+= -I${.CURDIR}/ld128
|
CFLAGS+= -I${.CURDIR}/ld128
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
CFLAGS+= -I${.CURDIR}/${ARCH_SUBDIR}
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/bsdsrc
|
.PATH: ${.CURDIR}/bsdsrc
|
||||||
.PATH: ${.CURDIR}/src
|
.PATH: ${.CURDIR}/src
|
||||||
.PATH: ${.CURDIR}/man
|
.PATH: ${.CURDIR}/man
|
||||||
|
@ -8,7 +8,7 @@ BINDIR= ${TESTSBASE}/sys/pjdfstest
|
|||||||
PROG= pjdfstest
|
PROG= pjdfstest
|
||||||
MAN=
|
MAN=
|
||||||
|
|
||||||
CFLAGS= -D__OS_FreeBSD__ -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_FCHFLAGS
|
CFLAGS+= -D__OS_FreeBSD__ -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_FCHFLAGS
|
||||||
CFLAGS+= -DHAS_CHFLAGSAT -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL -DHAS_BINDAT
|
CFLAGS+= -DHAS_CHFLAGSAT -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL -DHAS_BINDAT
|
||||||
CFLAGS+= -DHAS_CONNECTAT
|
CFLAGS+= -DHAS_CONNECTAT
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ case "${MACHINE}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
awk -v x="$ioctl_includes" 'BEGIN {print x}' |
|
awk -v x="$ioctl_includes" 'BEGIN {print x}' |
|
||||||
$CPP -I$1 -dM -DCOMPAT_43TTY - |
|
$CPP -nostdinc -I$1 -dM -DCOMPAT_43TTY - |
|
||||||
awk -v ioctl_includes="$ioctl_includes" -v style="$style" '
|
awk -v ioctl_includes="$ioctl_includes" -v style="$style" '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
print "/* XXX obnoxious prerequisites. */"
|
print "/* XXX obnoxious prerequisites. */"
|
||||||
|
Loading…
Reference in New Issue
Block a user