Annotation of sys/kern/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.17 2007/06/01 05:37:14 deraadt Exp $
! 2:
! 3: # Makefile for kernel tags files, init_sysent, etc.
! 4:
! 5: ARCH= alpha aviion hp300 hppa i386 m68k mac68k mvme68k mvme88k \
! 6: mvmeppc powerpc sparc sparc64 vax
! 7:
! 8: all: init_sysent.c vnode_if.c
! 9:
! 10: SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master
! 11: init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC}
! 12: sh makesyscalls.sh syscalls.conf syscalls.master
! 13:
! 14: VNODEIFSRC = vnode_if.sh vnode_if.src
! 15: vnode_if.c ../sys/vnode_if.h: ${VNODEIFSRC}
! 16: sh vnode_if.sh vnode_if.src
! 17:
! 18: # Kernel tags:
! 19: # Tags files are built in the top-level directory for each architecture,
! 20: # with a makefile listing the architecture-dependent files, etc. The list
! 21: # of common files is in ./Make.tags.inc. Links to the correct tags file
! 22: # are placed in each source directory. We need to have links to tags files
! 23: # from the generic directories that are relative to the machine type, even
! 24: # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
! 25: # ${SYSDIR}/${MACHINE}/tags.
! 26:
! 27: SYSTAGS=/var/db/sys_tags
! 28: SYSDIR=/sys
! 29:
! 30: # Directories in which to place tags links (other than machine-dependent)
! 31: DGEN= compat compat/common compat/freebsd compat/hpux compat/ibcs2 \
! 32: compat/linux compat/osf1 compat/sunos compat/svr4 compat/ultrix \
! 33: conf \
! 34: ddb \
! 35: dev dev/eisa dev/ic dev/isa dev/pci dev/pcmcia dev/cardbus dev/rcons \
! 36: dev/sun dev/tc \
! 37: gnu \
! 38: isofs isofs/cd9660 \
! 39: kern \
! 40: lib libkern \
! 41: miscfs miscfs/deadfs miscfs/fifofs \
! 42: miscfs/portal miscfs/procfs miscfs/specfs \
! 43: msdosfs \
! 44: net netinet \
! 45: nfs \
! 46: scsi \
! 47: sys \
! 48: ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \
! 49: vm
! 50:
! 51: tags::
! 52: -for i in ${ARCH}; do \
! 53: (cd ../arch/$$i && make ${MFLAGS} tags); done
! 54:
! 55: links::
! 56: rm -f ${SYSTAGS}
! 57: ln -s ${SYSDIR}/arch/${MACHINE}/tags ${SYSTAGS}
! 58: -for i in ${DGEN}; do \
! 59: (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
! 60: -for i in ${ARCH}; do \
! 61: (cd ../arch/$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done
CVSweb