Makefile revision 1.2
11.1Scgd# @(#)Makefile 8.2 (Berkeley) 3/21/94 21.1Scgd 31.1Scgd# Makefile for kernel tags files, init_sysent, etc. 41.1Scgd 51.1ScgdARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax 61.1Scgd 71.1Scgdall: 81.1Scgd @echo "make tags, make links or init_sysent.c only" 91.1Scgd 101.2ScgdSYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master 111.2Scgdinit_sysent.c syscalls.c ../sys/syscall.h: ${SYSCALLSRC} 121.1Scgd -mv -f init_sysent.c init_sysent.c.bak 131.1Scgd -mv -f syscalls.c syscalls.c.bak 141.1Scgd -mv -f ../sys/syscall.h ../sys/syscall.h.bak 151.2Scgd sh makesyscalls.sh syscalls.conf syscalls.master 161.1Scgd 171.1Scgd# Kernel tags: 181.1Scgd# Tags files are built in the top-level directory for each architecture, 191.1Scgd# with a makefile listing the architecture-dependent files, etc. The list 201.1Scgd# of common files is in ./Make.tags.inc. Links to the correct tags file 211.1Scgd# are placed in each source directory. We need to have links to tags files 221.1Scgd# from the generic directories that are relative to the machine type, even 231.1Scgd# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 241.1Scgd# ${SYSDIR}/${MACHINE}/tags. 251.1Scgd 261.1ScgdSYSTAGS=/var/db/sys_tags 271.1ScgdSYSDIR=/sys 281.1Scgd 291.1Scgd# Directories in which to place tags links (other than machine-dependent) 301.1ScgdDGEN= conf \ 311.1Scgd dev dev/scsi \ 321.1Scgd hp hp/dev hp/hpux \ 331.1Scgd kern libkern \ 341.1Scgd miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 351.1Scgd miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 361.1Scgd miscfs/specfs miscfs/umapfs miscfs/union \ 371.1Scgd net netccitt netinet netiso netns nfs scripts sys \ 381.1Scgd ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 391.1Scgd vm 401.1Scgd 411.1Scgdtags:: 421.1Scgd -for i in ${ARCH}; do \ 431.1Scgd (cd ../$$i && make ${MFLAGS} tags); done 441.1Scgd 451.1Scgdlinks:: 461.1Scgd rm -f ${SYSTAGS} 471.1Scgd ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 481.1Scgd -for i in ${DGEN}; do \ 491.1Scgd (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done 501.1Scgd -for i in ${ARCH}; do \ 511.1Scgd (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 52