xargs yacc yes zdump zmodem pkgin_cd \
mktemp worldstone updateboot update_bootcfg
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
SUBDIR+= atnormalize dosread fdisk loadfont \
autopart part partition playwave \
recwave repartition screendump
# but bsd.own.mk has to be upgraded for that.
.mfs.o:
${_MKTARGET_CREATE}
- ${OBJCOPY} -Ibinary -B${ARCH} -Oelf32-${ARCH}-minix $< $@
+ ${OBJCOPY} -Ibinary -B${MACHINE_ARCH} -Oelf32-${MACHINE_ARCH}-minix $< $@
${RAMDISK_PATH}/image: .PHONY
${MAKE} -C ${RAMDISK_PATH} image
PROG= kernel
-.include "arch/${ARCH}/Makefile.inc"
+.include "arch/${MACHINE_ARCH}/Makefile.inc"
SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c start.c system.c \
table.c utility.c
CFLAGS += -D__kernel__
CPPFLAGS+= -fno-stack-protector -D_NETBSD_SOURCE
-LDFLAGS+= -T ${.CURDIR}/arch/${ARCH}/kernel.lds
+LDFLAGS+= -T ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
LDFLAGS+= -nostdlib -L${DESTDIR}/${LIBDIR}
LDADD+= -lminlib
DPADD+= ${LIBMINLIB}
DPADD+= ${LIBC}
.endif
-CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${NETBSDSRCDIR}
+CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}/include -I${NETBSDSRCDIR}
BINDIR= /usr/sbin
MAN=
# Makefile for arch-dependent kernel code
.include <bsd.own.mk>
-HERE=${.CURDIR}/arch/${ARCH}
+HERE=${.CURDIR}/arch/${MACHINE_ARCH}
.PATH: ${HERE}
SRCS+= mpx.S arch_clock.c arch_do_vmctl.c arch_system.c \
do_iopenable.c do_readbios.c do_sdevio.c exception.c i8259.c io_inb.S \
# rts sources
-.PATH: ${.CURDIR}/arch/${ARCH}/sys-minix
+.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/sys-minix
SRCS+= \
__sigreturn.S \
LIB= compat_minix
CPPFLAGS+= -D_MINIX_COMPAT
-MACHINE_ARCH= ${ARCH}
USE_SHLIBDIR= yes
.PATH: ${.CURDIR}
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
+CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
CPPFLAGS+= -I${NETBSDSRCDIR}
-.include "arch/${ARCH}/Makefile.inc"
+.include "arch/${MACHINE_ARCH}/Makefile.inc"
.include <minix.bootprog.mk>
.include <bsd.own.mk>
#Arch-specific sources
-.PATH: ${.CURDIR}/arch/${ARCH}
+.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
SRCS+= vm.c pagetable.c #util.S