1# $OpenBSD: Makefile,v 1.33 2011/07/07 22:02:17 tedu Exp $ 2 3# Makefile for kernel tags files, init_sysent, etc. 4 5ARCH= alpha amd64 armish aviion beagle hp300 \ 6 hppa hppa64 i386 landisk loongson \ 7 luna88k mac68k macppc mvme68k \ 8 mvme88k palm sgi socppc \ 9 solbourne sparc sparc64 vax zaurus 10 11all: 12 @echo "Doing nothing. Did you want make syscalls?" 13 14syscalls: init_sysent.c 15 16SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master 17init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC} 18 sh makesyscalls.sh syscalls.conf syscalls.master 19 20# Kernel tags: 21# tags files are built in the top-level directory for each architecture. 22# Links to the correct tags file are placed in each source directory. 23# We need to have links to tags files 24# from the generic directories that are relative to the machine type, even 25# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 26# ${SYSDIR}/${MACHINE}/tags. 27 28SYSTAGS=/var/db/sys_tags 29SYSDIR=/sys 30 31# Directories in which to place tags links (other than machine-dependent) 32DGEN= compat compat/common \ 33 compat/linux \ 34 conf \ 35 ddb \ 36 dev dev/eisa dev/ic dev/isa dev/pci dev/pcmcia dev/cardbus \ 37 dev/sun dev/tc \ 38 isofs isofs/cd9660 \ 39 kern \ 40 lib/libkern lib/libkern/arch/${MACHINE} \ 41 lib/libkern/arch/${MACHINE_ARCH} \ 42 miscfs miscfs/deadfs miscfs/fifofs miscfs/procfs \ 43 msdosfs \ 44 net netinet netmpls \ 45 nfs \ 46 scsi \ 47 sys \ 48 ufs ufs/ffs ufs/mfs ufs/ufs \ 49 uvm 50 51tags:: 52 -for i in ${ARCH}; do \ 53 (cd ../arch/$$i && make ${MFLAGS} tags); done 54 55links:: 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 62