1*68307Scgd# @(#)Makefile 8.3 (Berkeley) 02/14/95 229378Smckusick 353013Skarels# Makefile for kernel tags files, init_sysent, etc. 429378Smckusick 563380SbosticARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax 630629Sbostic 748409Skarelsall: 848409Skarels @echo "make tags, make links or init_sysent.c only" 943396Skarels 10*68307Scgdinit_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: makesyscalls.sh syscalls.master 1148409Skarels -mv -f init_sysent.c init_sysent.c.bak 1248409Skarels -mv -f syscalls.c syscalls.c.bak 1348409Skarels -mv -f ../sys/syscall.h ../sys/syscall.h.bak 14*68307Scgd sh makesyscalls.sh syscalls.conf syscalls.master 1547646Swilliam 1648409Skarels# Kernel tags: 1753013Skarels# Tags files are built in the top-level directory for each architecture, 1863380Sbostic# with a makefile listing the architecture-dependent files, etc. The list 1963380Sbostic# of common files is in ./Make.tags.inc. Links to the correct tags file 2063380Sbostic# are placed in each source directory. We need to have links to tags files 2163380Sbostic# from the generic directories that are relative to the machine type, even 2263380Sbostic# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 2348409Skarels# ${SYSDIR}/${MACHINE}/tags. 2430629Sbostic 2548409SkarelsSYSTAGS=/var/db/sys_tags 2648409SkarelsSYSDIR=/sys 2729378Smckusick 2848409Skarels# Directories in which to place tags links (other than machine-dependent) 2963380SbosticDGEN= conf \ 3063380Sbostic dev dev/scsi \ 3163380Sbostic hp hp/dev hp/hpux \ 3263380Sbostic kern libkern \ 3363380Sbostic miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 3466418Sbostic miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 3566418Sbostic miscfs/specfs miscfs/umapfs miscfs/union \ 3663380Sbostic net netccitt netinet netiso netns nfs scripts sys \ 3763380Sbostic ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 3863380Sbostic vm 3938725Sbostic 4063380Sbostictags:: 4148409Skarels -for i in ${ARCH}; do \ 4254702Sbostic (cd ../$$i && make ${MFLAGS} tags); done 4343396Skarels 4463380Sbosticlinks:: 4563380Sbostic rm -f ${SYSTAGS} 4663380Sbostic ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 4738725Sbostic -for i in ${DGEN}; do \ 4854702Sbostic (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done 4948409Skarels -for i in ${ARCH}; do \ 5063380Sbostic (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 51