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