.endif
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${MINIXSRCDIR}
-AFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${MINIXSRCDIR}
INSTALLFLAGS+= -S 0
BINDIR= /usr/sbin
.if defined(NBSD_LIBC) && (${NBSD_LIBC} == "yes")
CPPFLAGS+= -D_MINIX -D_NETBSD_SOURCE
-AFLAGS+= -D_MINIX
.else
CPPFLAGS+= -D_MINIX -D_POSIX_SOURCE
-AFLAGS+= -D_MINIX -D_POSIX_SOURCE
.endif
.endif
.endif
-CFLAGS += ${SMP_FLAGS}
-AFLAGS += ${SMP_FLAGS}
+CPPFLAGS+= ${SMP_FLAGS}
MAKECONF?= /etc/make.conf
.-include "${MAKECONF}"
ASMCONV=gas2ack
AFLAGS+=-D__ASSEMBLY__ -w -wo
-CPP.s=${CC} -E ${AFLAGS}
+CPP.s=${CC} -E ${AFLAGS} ${CPPFLAGS}
ASMCONVFLAGS+=-mi386
# Need to convert ACK assembly files to GNU assembly before building