Include directory reorg and makefile updates.

-Convert the include directory over to using bsdmake
 syntax
-Update/add mkfiles
-Modify install(1) so that it can create symlinks
-Update makefiles to use new install(1) options
-Rename /usr/include/ibm to /usr/include/i386
-Create /usr/include/machine symlink to arch header files
-Move vm_i386.h to its new home in the /usr/include/i386
-Update source files to #include the header files at their
 new homes.
-Add new gnu-includes target for building GCC headers
This commit is contained in:
Arun Thomas
2010-03-08 11:04:59 +00:00
parent ecf1a36d48
commit 2a8fabf4ad
90 changed files with 485 additions and 152 deletions

View File

@@ -1,19 +1,45 @@
# Doing a make includes builds /usr/include
INC=/usr/include
MKHEADERS343=/usr/gnu//libexec/gcc/i386-pc-minix/3.4.3/install-tools/mkheaders
MKHEADERS411=/usr/gnu//libexec/gcc/i386-pc-minix/4.1.1/install-tools/mkheaders
INCS= alloca.h ansi.h a.out.h ar.h assert.h configfile.h ctype.h \
curses.h dirent.h env.h err.h errno.h fcntl.h fenv.h \
float.h fnmatch.h fts.h getopt.h glob.h grp.h ifaddrs.h \
inttypes.h libgen.h lib.h libutil.h limits.h locale.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 stdio.h stdlib.h string.h strings.h sysexits.h \
syslog.h tar.h termcap.h termios.h time.h timers.h tools.h \
ttyent.h unistd.h utime.h utmp.h
INCS+= arpa/inet.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 \
minix/dir.h minix/dl_eth.h minix/dmap.h minix/ds.h \
minix/endpoint.h minix/fslib.h minix/ioctl.h minix/ipc.h \
minix/keymap.h minix/minlib.h minix/mq.h minix/partition.h \
minix/paths.h minix/portio.h minix/profile.h \
minix/queryparam.h minix/rs.h minix/safecopies.h \
minix/sef.h minix/sound.h minix/sys_config.h \
minix/sysinfo.h minix/syslib.h minix/sysutil.h minix/tty.h \
minix/type.h minix/types.h minix/u64.h minix/vfsif.h \
minix/vm.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 \
net/gen/icmp_hdr.h net/gen/if_ether.h net/gen/inet.h \
net/gen/in.h net/gen/ip_hdr.h net/gen/ip_io.h \
net/gen/nameser.h net/gen/netdb.h net/gen/oneCsum.h \
net/gen/psip_hdr.h net/gen/psip_io.h net/gen/resolv.h \
net/gen/rip.h net/gen/route.h net/gen/socket.h \
net/gen/tcp.h net/gen/tcp_hdr.h net/gen/tcp_io.h \
net/gen/udp.h net/gen/udp_hdr.h net/gen/udp_io.h \
net/gen/vjhc.h
INCS+= netinet/if_ether.h netinet/in.h netinet/tcp.h
all::
.include <minix.own.mk>
clean::
INCSDIR= /usr/include
install::
-rm -rf $(INC)
mkdir -p $(INC)
cpdir . $(INC)
@chown -R bin $(INC)
@rm -f $(INC)/Makefile
SUBDIR= sys arch
gcc: install
SHELL=/bin/sh; if [ -f $(MKHEADERS343) ] ; then sh -e $(MKHEADERS343) ; fi
SHELL=/bin/sh; if [ -f $(MKHEADERS411) ] ; then sh -e $(MKHEADERS411) ; fi
.include <minix.prog.mk>
.include <minix.subdir.mk>

7
include/arch/Makefile Normal file
View File

@@ -0,0 +1,7 @@
.include <minix.own.mk>
SUBDIR= ${ARCH}
INCSYMLINKS= ${MACHINE} /usr/include/machine
.include <minix.kinc.mk>

View File

@@ -0,0 +1,6 @@
INCSDIR= /usr/include/i386
INCS= bios.h cmos.h cpu.h diskparm.h int86.h interrupt.h memory.h \
partition.h pci.h ports.h vm.h
.include <minix.kinc.mk>

View File

@@ -1,7 +1,7 @@
#ifndef __SYS_VM_386_H__
#define __SYS_VM_386_H__
/*
sys/vm_i386.h
i386/vm.h
*/
#define I386_PAGE_SIZE 4096

View File

@@ -179,7 +179,7 @@ struct kmessages {
};
#include <minix/config.h>
#include <ibm/interrupt.h>
#include <machine/interrupt.h>
/* randomness struct: random sources after interrupts: */
#define RANDOM_SOURCES NR_IRQ_VECTORS

14
include/sys/Makefile Normal file
View File

@@ -0,0 +1,14 @@
.include <minix.sys.mk>
INCSDIR= /usr/include/sys
INCS= asynchio.h dir.h file.h fpu.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 \
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 stackframe.h statfs.h stat.h svrctl.h timeb.h \
time.h times.h types.h uio.h un.h utsname.h video.h vm.h \
wait.h
.include <minix.kinc.mk>