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}/..
|
||||
SRCDIR= ${.CURDIR}/../../../../contrib/libreadline
|
||||
|
||||
.NOPATH: ${INSTALLED_HEADERS}
|
||||
|
||||
beforebuild: ${INSTALLED_HEADERS}
|
||||
CLEANFILES+= ${INSTALLED_HEADERS}
|
||||
DPSRCS+= ${INSTALLED_HEADERS}
|
||||
|
||||
.for _h in ${INSTALLED_HEADERS}
|
||||
CLEANFILES+= ${_h}
|
||||
DPSRCS+= ${.OBJDIR}/${_h}
|
||||
${.OBJDIR}/${_h}: ${SRCDIR}/${_h}
|
||||
${INSTALL} ${.ALLSRC} ${.TARGET}
|
||||
${_h}: ${SRCDIR}/${_h}
|
||||
ln -sf ${.ALLSRC} ${.TARGET}
|
||||
.endfor
|
||||
|
||||
LIBADD= ncursesw
|
||||
|
@ -215,6 +215,9 @@ tconfig.h:
|
||||
|
||||
GENSRCS+= tconfig.h
|
||||
CLEANFILES+= cs-tconfig.h
|
||||
|
||||
.NOPATH: ${GENSRCS} ${CLEANFILES}
|
||||
|
||||
# Options
|
||||
optionlist: ${OPT_FILES}
|
||||
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:
|
||||
@${ECHO} Making ${.TARGET} from ${.IMPSRC}
|
||||
@rm -f ${.TARGET}
|
||||
@sed -e "s|@BINDIR@|${BINDIR}|g" \
|
||||
-e 's|@GROFF_BIN_PATH_SETUP@|GROFF_RUNTIME="$${GROFF_BIN_PATH=${BINDIR}}:"|g' \
|
||||
-e "s;@FONTDIR@;$(fontdir);g" \
|
||||
|
@ -49,4 +49,4 @@ $COPYRIGHT
|
||||
#endif
|
||||
EOF
|
||||
chmod 644 $tmpfile
|
||||
mv $tmpfile osreldate.h
|
||||
mv -f $tmpfile osreldate.h
|
||||
|
@ -34,7 +34,7 @@ ETSRCS= \
|
||||
.for ET in ${ETSRCS}
|
||||
.for _ET in ${ET:T:R}
|
||||
.if ${SRCS:M${_ET}.[ch]} != ""
|
||||
.ORDER: ${_ET}.c ${_ET}.h
|
||||
.ORDER: ${_ET}.h ${_ET}.c
|
||||
${_ET}.c ${_ET}.h: ${ET}
|
||||
compile_et ${.ALLSRC}
|
||||
CLEANFILES+= ${_ET}.h ${_ET}.c
|
||||
|
@ -10,7 +10,8 @@ SRCS= \
|
||||
|
||||
CFLAGS+= -I${KRB5DIR}/lib/roken \
|
||||
-I${KRB5DIR}/base \
|
||||
-I${KRB5DIR}/lib/ipc
|
||||
-I${KRB5DIR}/lib/ipc \
|
||||
-I${KRB5DIR}/include
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
|
@ -35,6 +35,8 @@ CFLAGS+= -I${.CURDIR}/ld80
|
||||
CFLAGS+= -I${.CURDIR}/ld128
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/${ARCH_SUBDIR}
|
||||
|
||||
.PATH: ${.CURDIR}/bsdsrc
|
||||
.PATH: ${.CURDIR}/src
|
||||
.PATH: ${.CURDIR}/man
|
||||
|
@ -8,7 +8,7 @@ BINDIR= ${TESTSBASE}/sys/pjdfstest
|
||||
PROG= pjdfstest
|
||||
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_CONNECTAT
|
||||
|
||||
|
@ -39,7 +39,7 @@ case "${MACHINE}" in
|
||||
esac
|
||||
|
||||
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" '
|
||||
BEGIN {
|
||||
print "/* XXX obnoxious prerequisites. */"
|
||||
|
Loading…
Reference in New Issue
Block a user