--- /dev/null
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include
+
+INCS+= minix/ansi.h minix/bitmap.h minix/callnr.h minix/com.h \
+ minix/compiler.h minix/config.h minix/const.h minix/debug.h \
+ minix/devio.h minix/ds.h minix/endpoint.h minix/gcov.h \
+ minix/ioctl.h minix/ipc.h minix/ipcconst.h minix/keymap.h \
+ minix/limits.h minix/minlib.h minix/portio.h minix/priv.h \
+ minix/profile.h minix/rs.h minix/safecopies.h minix/sef.h \
+ minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
+ minix/sysutil.h minix/timers.h minix/type.h minix/vm.h
+
+
--- /dev/null
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include
+
+INCS+= termios.h
+
--- /dev/null
+.include <bsd.own.mk>
+.PATH: ${MINIXSRCDIR}/common/include/arch/i386
+
+INCS+= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
+ interrupt.h memory.h partition.h \
+ pci.h pci_amd.h pci_intel.h pci_sis.h pci_via.h \
+ ports.h stackframe.h vm.h elf.h
+
--- /dev/null
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include/sys
+
+INCS+= ioc_cmos.h ioc_file.h ioc_scsi.h ioc_tape.h \
+ ioc_disk.h ioc_memory.h ioc_sound.h ioc_tty.h
+
--- /dev/null
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include/sys
+
+INCS+= mount.h
mathconst.h math.h midiparser.h netdb.h pwd.h regex.h \
regexp.h setjmp.h sgtty.h signal.h stdarg.h stddef.h \
stdint.h stdbool.h stdio.h stdlib.h string.h strings.h sysexits.h \
- syslog.h tar.h termcap.h termios.h time.h timers.h tools.h \
+ syslog.h tar.h termcap.h time.h timers.h tools.h \
ttyent.h ucontext.h unistd.h utime.h utmp.h wchar.h wctype.h \
hgfs.h tzfile.h util.h fetch.h mpool.h ndbm.h db.h poll.h resolv.h \
memory.h paths.h libexec.h complex.h
INCS+= arpa/inet.h arpa/nameser.h
-INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
- minix/com.h minix/config.h minix/const.h minix/cpufeature.h \
- minix/crtso.h minix/debug.h minix/devio.h minix/dirent.h \
+INCS+= minix/a.out.h minix/cdrom.h minix/cpufeature.h \
+ minix/crtso.h minix/dirent.h \
minix/dir.h minix/dl_eth.h minix/dmap.h minix/driver.h \
- minix/limits.h \
minix/acpi.h \
- minix/drivers.h minix/drvlib.h minix/ds.h minix/endpoint.h \
- minix/fslib.h minix/ioctl.h minix/ipc.h minix/ipcconst.h \
- minix/keymap.h minix/minlib.h minix/mq.h minix/mthread.h \
+ minix/drivers.h minix/drvlib.h \
+ minix/fslib.h \
+ minix/mq.h minix/mthread.h \
minix/netdriver.h minix/partition.h \
- minix/portio.h minix/priv.h minix/procfs.h minix/profile.h \
+ minix/procfs.h \
minix/queryparam.h \
- minix/rs.h minix/safecopies.h minix/sched.h minix/sef.h minix/sound.h \
- minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
- minix/sysutil.h minix/timers.h minix/tty.h minix/type.h minix/types.h \
- minix/u64.h minix/vfsif.h minix/vm.h minix/vtreefs.h minix/gcov.h \
- minix/compiler.h minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
- minix/audio_fw.h minix/hash.h minix/input.h minix/ansi.h
+ minix/sched.h minix/sound.h \
+ minix/tty.h minix/types.h \
+ minix/u64.h minix/vfsif.h minix/vtreefs.h \
+ minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
+ minix/audio_fw.h minix/hash.h minix/input.h
INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h
INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \
INCSDIR= /usr/include
+.include "../common/include/Makefile.inc"
+.include "../common/include/Makefile.termios.inc"
+
SUBDIR= sys arch
.include <bsd.prog.mk>
INCSDIR= /usr/include/i386
-INCS= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
- interrupt.h mcontext.h memory.h partition.h \
- pci.h pci_amd.h pci_intel.h pci_sis.h pci_via.h \
- ports.h stackframe.h vm.h asm.h _align.h param.h elf.h
+INCS+= _align.h asm.h mcontext.h param.h
+
+.include "../../../common/include/arch/i386/Makefile.inc"
.include <bsd.kinc.mk>
INCSDIR= /usr/include/sys
-INCS= asynchio.h dir.h file.h ioc_cmos.h ioc_disk.h \
- ioc_file.h ioc_memory.h ioc_scsi.h ioc_sound.h ioc_tape.h \
- ioctl.h ioc_tty.h ipc.h jmp_buf.h kbdio.h mman.h \
+INCS= asynchio.h dir.h file.h \
+ ioctl.h ipc.h jmp_buf.h kbdio.h mman.h \
mount.h mtio.h param.h ptrace.h queue.h resource.h \
select.h sem.h shm.h sigcontext.h signal.h socket.h \
soundcard.h statfs.h statvfs.h stat.h svrctl.h timeb.h \
utsname.h video.h vm.h wait.h cdefs.h null.h poll.h \
elf32.h elf64.h elf_common.h elf_generic.h
+.include "../../common/include/sys/Makefile.inc"
+.include "../../common/include/sys/Makefile.mount.inc"
+
.include <bsd.kinc.mk>
${_MKTARGET_CREATE}
cd ${.CURDIR} ; sh extract-mfield.sh > ${.OBJDIR}/extracted-mfield.h
-extracted-mtype.h: extract-mtype.sh ../include/minix/com.h
+extracted-mtype.h: extract-mtype.sh ../common/include/minix/com.h
${_MKTARGET_CREATE}
cd ${.CURDIR} ; sh extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
# grep message type constants and make them into a .h file
(
- cat ../include/minix/callnr.h | \
+ cat ../common/include/minix/callnr.h | \
tr -s ' \t' ' ' | \
sed 's/^# /#/' | \
egrep '^#define [A-Z_][A-Z0-9_]* [0-9]+' | grep -v NCALLS
- cat ../include/minix/com.h | \
+ cat ../common/include/minix/com.h | \
tr -s ' \t' ' ' | \
sed 's/^# /#/' | \
egrep '^#define [A-Z_][A-Z0-9_]* \( ?([A-Z0-9_]+_BASE|KERNEL_CALL) ?\+[A-Za-z0-9_ +]+\)'