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.3 cgd -mv -f ../sys/syscallargs.h ../sys/syscallargs.h.bak 16 1.2 cgd sh makesyscalls.sh syscalls.conf syscalls.master 17 1.1 cgd 18 1.1 cgd # Kernel tags: 19 1.1 cgd # Tags files are built in the top-level directory for each architecture, 20 1.1 cgd # with a makefile listing the architecture-dependent files, etc. The list 21 1.1 cgd # of common files is in ./Make.tags.inc. Links to the correct tags file 22 1.1 cgd # are placed in each source directory. We need to have links to tags files 23 1.1 cgd # from the generic directories that are relative to the machine type, even 24 1.1 cgd # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 25 1.1 cgd # ${SYSDIR}/${MACHINE}/tags. 26 1.1 cgd 27 1.1 cgd SYSTAGS=/var/db/sys_tags 28 1.1 cgd SYSDIR=/sys 29 1.1 cgd 30 1.1 cgd # Directories in which to place tags links (other than machine-dependent) 31 1.1 cgd DGEN= conf \ 32 1.1 cgd dev dev/scsi \ 33 1.1 cgd hp hp/dev hp/hpux \ 34 1.1 cgd kern libkern \ 35 1.1 cgd miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 36 1.1 cgd miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 37 1.1 cgd miscfs/specfs miscfs/umapfs miscfs/union \ 38 1.1 cgd net netccitt netinet netiso netns nfs scripts sys \ 39 1.1 cgd ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 40 1.1 cgd vm 41 1.1 cgd 42 1.1 cgd tags:: 43 1.1 cgd -for i in ${ARCH}; do \ 44 1.1 cgd (cd ../$$i && make ${MFLAGS} tags); done 45 1.1 cgd 46 1.1 cgd links:: 47 1.1 cgd rm -f ${SYSTAGS} 48 1.1 cgd ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 49 1.1 cgd -for i in ${DGEN}; do \ 50 1.1 cgd (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done 51 1.1 cgd -for i in ${ARCH}; do \ 52 1.1 cgd (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 53