Makefile revision 1.5
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.5Scgd @echo "make tags, links, init_sysent.c, or vnode_if.c only" 91.5Scgd @false 101.1Scgd 111.2ScgdSYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master 121.4Smycroftinit_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC} 131.1Scgd -mv -f init_sysent.c init_sysent.c.bak 141.1Scgd -mv -f syscalls.c syscalls.c.bak 151.1Scgd -mv -f ../sys/syscall.h ../sys/syscall.h.bak 161.3Scgd -mv -f ../sys/syscallargs.h ../sys/syscallargs.h.bak 171.2Scgd sh makesyscalls.sh syscalls.conf syscalls.master 181.5Scgd 191.5ScgdVNODEIFSRC = vnode_if.sh vnode_if.src 201.5Scgdvnode_if.c ../sys/vnode_if.h: ${VNODEIFSRC} 211.5Scgd -mv -f vnode_if.c vnode_if.c.bak 221.5Scgd -mv -f ../sys/vnode_if.h ../sys/vnode_if.h.bak 231.5Scgd sh vnode_if.sh vnode_if.src 241.1Scgd 251.1Scgd# Kernel tags: 261.1Scgd# Tags files are built in the top-level directory for each architecture, 271.1Scgd# with a makefile listing the architecture-dependent files, etc. The list 281.1Scgd# of common files is in ./Make.tags.inc. Links to the correct tags file 291.1Scgd# are placed in each source directory. We need to have links to tags files 301.1Scgd# from the generic directories that are relative to the machine type, even 311.1Scgd# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 321.1Scgd# ${SYSDIR}/${MACHINE}/tags. 331.1Scgd 341.1ScgdSYSTAGS=/var/db/sys_tags 351.1ScgdSYSDIR=/sys 361.1Scgd 371.1Scgd# Directories in which to place tags links (other than machine-dependent) 381.1ScgdDGEN= conf \ 391.1Scgd dev dev/scsi \ 401.1Scgd hp hp/dev hp/hpux \ 411.1Scgd kern libkern \ 421.1Scgd miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 431.1Scgd miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 441.1Scgd miscfs/specfs miscfs/umapfs miscfs/union \ 451.1Scgd net netccitt netinet netiso netns nfs scripts sys \ 461.1Scgd ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 471.1Scgd vm 481.1Scgd 491.1Scgdtags:: 501.1Scgd -for i in ${ARCH}; do \ 511.1Scgd (cd ../$$i && make ${MFLAGS} tags); done 521.1Scgd 531.1Scgdlinks:: 541.1Scgd rm -f ${SYSTAGS} 551.1Scgd ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 561.1Scgd -for i in ${DGEN}; do \ 571.1Scgd (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done 581.1Scgd -for i in ${ARCH}; do \ 591.1Scgd (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 60