PROG= badblocks
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers
MAN=
.include <bsd.prog.mk>
PROG= cdprobe
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers
MAN=
.include <bsd.prog.mk>
PROG= crontab
SRCS= crontab.c tab.c misc.c
-CPPFLAGS+= -I${.CURDIR} -I${MINIXSRCDIR}/commands/cron
+CPPFLAGS+= -I${.CURDIR} -I${NETBSDSRCDIR}/commands/cron
BINMODE= 4755
MAN=
-.PATH: ${MINIXSRCDIR}/commands/cron
+.PATH: ${NETBSDSRCDIR}/commands/cron
.include <bsd.prog.mk>
PROG= df
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
BINMODE= 4755
MAN=
PROG= dumpcore
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
MAN=
.include <bsd.prog.mk>
-FSCK= ${MINIXSRCDIR}/sbin/fsck
+FSCK= ${NETBSDSRCDIR}/sbin/fsck
PROG= fsck.mfs
SRCS= fsck.c
-CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${FSCK}
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers -I${FSCK}
BINDIR= /sbin
MAN=
EXTRA_SRCS= ${FOR_GNU} ${FOR_SYSCALLS}
EXTRA_DEFS= ${DEF_GNU} ${DEF_SYSCALLS} ${DEF_DEBUG}
-CPPFLAGS+= -I${MINIXSRCDIR} -I${MINIXSRCDIR}/servers \
+CPPFLAGS+= -I${NETBSDSRCDIR} -I${NETBSDSRCDIR}/servers \
${EXTRA_DEFS}
PROG= mdb
PROG= mkfs.mfs
SRCS= mkfs.c
BINDIR= /sbin
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers
MAN=
.include <bsd.prog.mk>
PROG= mount
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers
BINDIR= /bin
BINMODE= 4755
MAN=
MAN.service=
MAN.printconfig=
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include <bsd.prog.mk>
CPPFLAGS+= -DPARANOID=1
MAN=
-.PATH: ${MINIXSRCDIR}/commands/tcpd
+.PATH: ${NETBSDSRCDIR}/commands/tcpd
.include <bsd.prog.mk>
PROG= tcpstat
-CPPFLAGS+= -I${MINIXSRCDIR}/servers -D'ARGS(a)=a'
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers -D'ARGS(a)=a'
MAN=
.include <bsd.prog.mk>
PROG= udpstat
-CPPFLAGS+= -I${MINIXSRCDIR}/servers -D'ARGS(a)=a'
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers -D'ARGS(a)=a'
MAN=
.include <bsd.prog.mk>
CPPFLAGS+= -DHAVE_ADJTIME=0 -DTZDIR=\"$(TZDIR)\"
MAN= zdump.8
-.PATH: ${MINIXSRCDIR}/lib/libc/time
+.PATH: ${NETBSDSRCDIR}/lib/libc/time
.include <bsd.prog.mk>
.include <bsd.own.mk>
-.PATH: ${MINIXSRCDIR}/common/include
+.PATH: ${NETBSDSRCDIR}/common/include
INCS+= termios.h
.include <bsd.own.mk>
-.PATH: ${MINIXSRCDIR}/common/include/sys
+.PATH: ${NETBSDSRCDIR}/common/include/sys
INCS+= elf64.h elf_common.h elf_generic.h \
ioc_block.h ioc_fbd.h ioc_file.h ioc_tape.h ioc_disk.h \
.include <bsd.own.mk>
-.PATH: ${MINIXSRCDIR}/common/include/sys
+.PATH: ${NETBSDSRCDIR}/common/include/sys
INCS+= mount.h
BINDIR?= /usr/sbin
-CPPFLAGS.memory.c+= -I${MINIXSRCDIR}
+CPPFLAGS.memory.c+= -I${NETBSDSRCDIR}
imgrd.d: touch-genfiles
touch-genfiles:
BINDIR?= /usr/sbin
-CPPFLAGS.orinoco.c+= -I${MINIXSRCDIR}
+CPPFLAGS.orinoco.c+= -I${NETBSDSRCDIR}
.include <minix.service.mk>
PROG_DRIVERS+= acpi
.endif
-CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}/servers
CLEANFILES += $(PROGRAMS) $(SCRIPTS) $(EXTRA) image image.c t proto.gen
CLEANFILES += $(LIBRARIES) pwd.db spwd.db
BINDIR?= /usr/sbin
-CPPFLAGS.random.c+= -I${MINIXSRCDIR}
+CPPFLAGS.random.c+= -I${NETBSDSRCDIR}
.include <minix.service.mk>
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include <minix.service.mk>
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include <minix.service.mk>
SUBDIR= keymaps
# Needs kernel/const.h, etc
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include <minix.bootprog.mk>
.include <bsd.subdir.mk>
.include <bsd.own.mk>
-.PATH: ${MINIXSRCDIR}/common/include/arch/i386
+.PATH: ${NETBSDSRCDIR}/common/include/arch/i386
INCS+= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
interrupt.h memory.h multiboot.h partition.h \
INCS+= dirent.h paths.h types.h
-.include "${MINIXSRCDIR}/common/include/sys/Makefile.mount.inc"
-.include "${MINIXSRCDIR}/common/include/Makefile.termios.inc"
+.include "${NETBSDSRCDIR}/common/include/sys/Makefile.mount.inc"
+.include "${NETBSDSRCDIR}/common/include/Makefile.termios.inc"
.include <bsd.kinc.mk>
${TOOL_AWK} -f gennameih.awk < namei.src
.include <bsd.own.mk>
-.include "${MINIXSRCDIR}/common/include/sys/Makefile.inc"
+.include "${NETBSDSRCDIR}/common/include/sys/Makefile.inc"
.include <bsd.files.mk>
.include <bsd.kinc.mk>
DPADD+= ${LIBC}
.endif
-CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${MINIXSRCDIR}
+CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${NETBSDSRCDIR}
BINDIR= /usr/sbin
MAN=
CPPFLAGS.toupper_.c+= -I${LIBCDIR}/locale
.if defined(__MINIX)
-errlist.c: errlist.awk ${MINIXSRCDIR}/include/sys/errno.h
- cat ${MINIXSRCDIR}/include/sys/errno.h | ${TOOL_SED} 's/(_SIGN//' | ${TOOL_AWK} -f ${MINIXSRCDIR}/lib/libc/gen/errlist.awk > ${.TARGET}
+errlist.c: errlist.awk ${NETBSDSRCDIR}/include/sys/errno.h
+ cat ${NETBSDSRCDIR}/include/sys/errno.h | ${TOOL_SED} 's/(_SIGN//' | ${TOOL_AWK} -f ${NETBSDSRCDIR}/lib/libc/gen/errlist.awk > ${.TARGET}
.else
errlist.c: errlist.awk ${NETBSDSRCDIR}/sys/sys/errno.h
${TOOL_AWK} -f ${.ALLSRC} > ${.TARGET}
-NETBSDSRCDIR= ${MINIXSRCDIR}
NETBSDINCLUDES= /usr/include/
CITRUS=yes
-.PATH: ${MINIXSRCDIR}/lib/libcompat_minix/include
+.PATH: ${NETBSDSRCDIR}/lib/libcompat_minix/include
INCSDIR= /usr/include
LIB= ddekit
-SRC_DIR = ${MINIXSRCDIR}/lib/libddekit/src
+SRC_DIR = ${NETBSDSRCDIR}/lib/libddekit/src
VPATH = $(SRC_DIR)
LIB= ddekit_usb_client
-SRC_DIR = ${MINIXSRCDIR}/lib/libddekit/src
+SRC_DIR = ${NETBSDSRCDIR}/lib/libddekit/src
VPATH = $(SRC_DIR)
LIB= ddekit_usb_server
-SRC_DIR = ${MINIXSRCDIR}/lib/libddekit/src
+SRC_DIR = ${NETBSDSRCDIR}/lib/libddekit/src
VPATH = $(SRC_DIR)
SRCS = usb_server.c
CFLAGS += -Wall
LINKS= ${LIBDIR}/libl.a ${LIBDIR}/libfl.a
-.PATH: ${MINIXSRCDIR}/commands/lex
+.PATH: ${NETBSDSRCDIR}/commands/lex
.include <bsd.lib.mk>
LIB= minc
-CPPFLAGS.sched_start.c+= -I${MINIXSRCDIR}
+CPPFLAGS.sched_start.c+= -I${NETBSDSRCDIR}
-LIBCSRCDIR=${MINIXSRCDIR}/lib/libc
+LIBCSRCDIR=${NETBSDSRCDIR}/lib/libc
MACHINE_ARCH=${MACHINE}
#
# Shared libc with userspace (/common/lib/libc)
#
-.include "${MINIXSRCDIR}/common/lib/libc/Makefile.inc"
+.include "${NETBSDSRCDIR}/common/lib/libc/Makefile.inc"
.include "${.CURDIR}/arch/${MACHINE}/Makefile.libc.inc"
.if empty(SRCS:Mbyte_swap_8.*)
SRCS+= bswap64.c
# Import from gen
errlist.c: ${LIBCSRCDIR}/gen/errlist.awk \
- ${MINIXSRCDIR}/include/sys/errno.h
- cat ${MINIXSRCDIR}/include/sys/errno.h | ${TOOL_SED} 's/(_SIGN//' | ${TOOL_AWK} -f ${LIBCSRCDIR}/gen/errlist.awk > ${.TARGET}
+ ${NETBSDSRCDIR}/include/sys/errno.h
+ cat ${NETBSDSRCDIR}/include/sys/errno.h | ${TOOL_SED} 's/(_SIGN//' | ${TOOL_AWK} -f ${LIBCSRCDIR}/gen/errlist.awk > ${.TARGET}
.for i in assert.c _errno.c errno.c _env.c errlist.c \
execle.c getprogname.c sleep.c time.c \
USE_SHLIBDIR= yes
-CPPFLAGS.fslib.c+= -I${MINIXSRCDIR}/servers
-CPPFLAGS.fsversion.c+= -I${MINIXSRCDIR}/servers
+CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/servers
+CPPFLAGS.fsversion.c+= -I${NETBSDSRCDIR}/servers
SRCS+= fslib.c fsversion.c
# DHCP get/set tags.
CPPFLAGS+= -DUSE_SYSDEBUG
.endif
-CPPFLAGS.sched_start.c+= -I${MINIXSRCDIR}
+CPPFLAGS.sched_start.c+= -I${NETBSDSRCDIR}
.if (${CC} == "gcc") || (${CC} == "clang")
LDADD+= -lminc
set -e
: ${TOOL_TIC:=tic}
-: ${MINIXSRCDIR:=/usr/src}
-: ${TERMINFO:=${MINIXSRCDIR}/share/terminfo/terminfo}
+: ${NETBSDSRCDIR:=/usr/src}
+: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo}
echo "/* \$NetBSD\$ */"
echo "/* * * MODIFIED FOR MINIX * * */"
-NETBSDSRCDIR= ${MINIXSRCDIR}
NETBSDINCLUDES= /usr/include/
CPPFLAGS+= -D_NETBSD_SOURCE
BINDIR?= /sbin
-CPPFLAGS.dmp_kernel.c+= -I${MINIXSRCDIR}
-CPPFLAGS.dmp_rs.c+= -I${MINIXSRCDIR}
-CPPFLAGS.dmp_vm.c+= -I${MINIXSRCDIR}
+CPPFLAGS.dmp_kernel.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.dmp_rs.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.dmp_vm.c+= -I${NETBSDSRCDIR}
# This setting must match the kernel's, as it affects the IRQ hooks table size.
.if ${USE_APIC} != "no"
BINDIR?= /usr/sbin
-CPPFLAGS.main.c+= -I${MINIXSRCDIR}
-CPPFLAGS.misc.c+= -I${MINIXSRCDIR}
-CPPFLAGS.schedule.c+= -I${MINIXSRCDIR}
-CPPFLAGS.utility.c+= -I${MINIXSRCDIR}
+CPPFLAGS.main.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.misc.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.schedule.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.utility.c+= -I${NETBSDSRCDIR}
.include <minix.bootprog.mk>
PROG= procfs
SRCS= buf.c main.c pid.c root.c tree.c util.c cpuinfo.c
-CPPFLAGS+= -I${MINIXSRCDIR} -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${NETBSDSRCDIR} -I${NETBSDSRCDIR}/servers
DPADD+= ${LIBVTREEFS} ${LIBSYS}
LDADD+= -lvtreefs -lsys
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include <minix.bootprog.mk>
BINDIR?= /usr/sbin
-CPPFLAGS.main.c+= -I${MINIXSRCDIR}
-CPPFLAGS.schedule.c+= -I${MINIXSRCDIR}
-CPPFLAGS.utility.c+= -I${MINIXSRCDIR}
+CPPFLAGS.main.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.schedule.c+= -I${NETBSDSRCDIR}
+CPPFLAGS.utility.c+= -I${NETBSDSRCDIR}
.include <minix.bootprog.mk>
BINDIR?= /usr/sbin
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
-CPPFLAGS+= -I${MINIXSRCDIR}
+CPPFLAGS+= -I${NETBSDSRCDIR}
.include "arch/${ARCH}/Makefile.inc"
.include <minix.bootprog.mk>
.endif
-
-#
-# Determine if running in the MINIX source tree by checking for the
-# existence of usr.bin and tools/ in the current or a parent directory,
-# and setting _MSRC_TOP_ to the result.
-#
-.if !defined(_MSRC_TOP_) # {
-_MSRC_TOP_!= cd ${.CURDIR}; while :; do \
- here=`pwd`; \
- [ -d usr.bin ] && [ -d tools ] && { echo $$here; break; }; \
- case $$here in /) echo ""; break;; esac; \
- cd ..; done
-
-.MAKEOVERRIDES+= _MSRC_TOP_
-
-.endif # }
-
-#
-# If _MSRC_TOP_ != "", we're within the MINIX source tree, so set
-# defaults for MINIXSRCDIR and _MSRC_TOP_OBJ_.
-#
-.if (${_MSRC_TOP_} != "") # {
-
-MINIXSRCDIR?= ${_MSRC_TOP_}
-
-.if !defined(_MSRC_TOP_OBJ_)
-_MSRC_TOP_OBJ_!= cd ${_MSRC_TOP_} && ${PRINTOBJDIR}
-.MAKEOVERRIDES+= _MSRC_TOP_OBJ_
-.endif
-
-.endif # _MSRC_TOP_ != "" # }
-
-
-
#
# Determine if running in the NetBSD source tree by checking for the
# existence of build.sh and tools/ in the current or a parent directory,
date=$$1; minixpath=$$2; origpath=$$3; \
if [ $$# -lt 3 ]; then origpath=$$2; fi; \
echo "retrieving $$origpath .."; \
- cd ${MINIXSRCDIR} && cvs -q -d ${NBSD_CVSROOT} co -N -D "$$date UTC" -d nbsdsrc "src/$$origpath" ; \
+ cd ${NETBSDSRCDIR} && cvs -q -d ${NBSD_CVSROOT} co -N -D "$$date UTC" -d nbsdsrc "src/$$origpath" ; \
done
nbsd_diff:
- find ${MINIXSRCDIR} -name minix-port.patch | xargs rm
+ find ${NETBSDSRCDIR} -name minix-port.patch | xargs rm
cat nbsd_ports | grep -v '^#' | \
- ( cd ${MINIXSRCDIR} && awk -F, '{ minixpath=$$2; origpath=$$3; if(NF < 3) { origpath=$$2; } system("sh tools/nbsd_diff.sh " \
+ ( cd ${NETBSDSRCDIR} && awk -F, '{ minixpath=$$2; origpath=$$3; if(NF < 3) { origpath=$$2; } system("sh tools/nbsd_diff.sh " \
"nbsdsrc/src/"origpath" "minixpath" "minixpath"/minix-port.patch");}' )
- find ${MINIXSRCDIR} -name minix-port.patch | xargs wc -l | sort -n
+ find ${NETBSDSRCDIR} -name minix-port.patch | xargs wc -l | sort -n
# clean up compile results