Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 1998/01/09 08:05:20 perry Exp $ 2# 3# from: @(#)Makefile 8.2 (Berkeley) 3/21/94 4 5# Makefile for kernel tags files, init_sysent, etc. 6 7ARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax 8 9all: 10 @echo "make tags, links, init_sysent.c, or vnode_if.c only" 11 @false 12 13SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master 14init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC} 15 -mv -f init_sysent.c init_sysent.c.bak 16 -mv -f syscalls.c syscalls.c.bak 17 -mv -f ../sys/syscall.h ../sys/syscall.h.bak 18 -mv -f ../sys/syscallargs.h ../sys/syscallargs.h.bak 19 sh makesyscalls.sh syscalls.conf syscalls.master 20 21VNODEIFSRC = vnode_if.sh vnode_if.src 22vnode_if.c ../sys/vnode_if.h: ${VNODEIFSRC} 23 -mv -f vnode_if.c vnode_if.c.bak 24 -mv -f ../sys/vnode_if.h ../sys/vnode_if.h.bak 25 sh vnode_if.sh vnode_if.src 26 27# Kernel tags: 28# Tags files are built in the top-level directory for each architecture, 29# with a makefile listing the architecture-dependent files, etc. The list 30# of common files is in ./Make.tags.inc. Links to the correct tags file 31# are placed in each source directory. We need to have links to tags files 32# from the generic directories that are relative to the machine type, even 33# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 34# ${SYSDIR}/${MACHINE}/tags. 35 36SYSTAGS=/var/db/sys_tags 37SYSDIR=/sys 38 39# Directories in which to place tags links (other than machine-dependent) 40DGEN= conf \ 41 dev dev/scsi \ 42 hp hp/dev hp/hpux \ 43 kern libkern \ 44 miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 45 miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 46 miscfs/specfs miscfs/umapfs miscfs/union \ 47 net netccitt netinet netiso netns nfs scripts sys \ 48 ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 49 vm 50 51tags:: 52 -for i in ${ARCH}; do \ 53 (cd ../$$i && make ${MFLAGS} tags); done 54 55links:: 56 rm -f ${SYSTAGS} 57 ln -s ${SYSDIR}/${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 ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 62