#DEBUGFLAGS= -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID -Wall
#DEBUGFLAGS= -ansi -pedantic -Wall
-CFLAGS+=-DSTANDALONE -DCOMPAT_UFS $(DEBUGFLAGS) -I${DIR} -I${DIR}/../..
+AFLAGS+=${XAFLAGS}
+CFLAGS+=${XCFLAGS} -D_STANDALONE -DCOMPAT_UFS $(DEBUGFLAGS) -I${DIR} -I${DIR}/../..
+CPPFLAGS+=${XCPPFLAGS}
# stand routines
SRCS+= alloc.c bcopy.c memcpy.c exit.c exec.c getfile.c gets.c globals.c \
SAREL?= ../../
SALIB?= ${SADST}/libsa.a
+SAMAKE= \
+ cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
+ CC="${CC}" XCFLAGS="${CFLAGS}" \
+ AS='${AS}' XAFLAGS='${AFLAGS}' \
+ LD='${LD}' \
+ XCPPFLAGS="${CPPFLAGS}" \
+ SAREL="${SAREL}" \
+ SADIR="${SADIR}"
+
${SALIB}: .NOTMAIN __always_make_salib
@echo making sure the stand-alone library is up to date...
.if !defined(NO_NET)
- @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
- KERNCC="${CC}" \
- KERNCFLAGS="${CFLAGS}" \
- SAREL="${SAREL}" \
- SADIR="${SADIR}" libsa.a)
+ @${SAMAKE} libsa.a
.else
- @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
- KERNCC="${CC}" \
- KERNCFLAGS="${CFLAGS}" \
- SAREL="${SAREL}" \
- SADIR="${SADIR}" \
- NO_NET="" libsa.a)
+ @${SAMAKE} NO_NET="" libsa.a
.endif
clean:: .NOTMAIN __always_make_salib
@echo cleaning the stand-alone library objects
- @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
- KERNCC="${CC}" \
- KERNCFLAGS="${CFLAGS}" \
- SAREL="${SAREL}" \
- SADIR="${SADIR}" clean)
+ @${SAMAKE} clean
+
+depend:: .NOTMAIN __always_make_salib
+ @echo depending the standalone library objects
+ @${SAMAKE} depend
__always_make_salib: .NOTMAIN
@([ -d ${SADST} ] || mkdir -p ${SADST})
-/* $OpenBSD: printf.c,v 1.2 1996/02/29 13:29:23 niklas Exp $ */
+/* $OpenBSD: printf.c,v 1.3 1996/09/20 14:20:25 mickey Exp $ */
/* $NetBSD: printf.c,v 1.7 1996/02/08 20:19:36 gwr Exp $ */
/*-
static void sputchar __P((int));
static void kprintf __P((void (*)(int), const char *, va_list));
+#ifndef NO_SPRINTF
static char *sbuf;
static void
va_end(ap);
*sbuf = '\0';
}
+#endif /* NO_SPRINTF */
void
#ifdef __STDC__