Makefile revision 1.7
11.7Sperry# $NetBSD: Makefile,v 1.7 1998/09/13 23:50:39 perry Exp $ 21.6Sperry# 31.6Sperry# from: @(#)Makefile 8.2 (Berkeley) 3/21/94 41.1Scgd 51.1Scgd# Makefile for kernel tags files, init_sysent, etc. 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.7Sperry# XXX 261.7Sperry# [Note by Perry Metzger, Sept. 1998] 271.7Sperry# As it stands, the tags support below is hopelessly 281.7Sperry# broken. Just look at the names of the architectures it is dealing 291.7Sperry# with and where it expects to find the support for them to see why. 301.7Sperry# I've left the stuff in this Makefile alone in the hope that someone 311.7Sperry# will fix it someday -- I am assuming that it might help that 321.7Sperry# person if they have the old Makefile goo left in place as a starting 331.7Sperry# point. 341.7Sperry# XXX 351.7Sperry 361.1Scgd# Kernel tags: 371.1Scgd# Tags files are built in the top-level directory for each architecture, 381.1Scgd# with a makefile listing the architecture-dependent files, etc. The list 391.1Scgd# of common files is in ./Make.tags.inc. Links to the correct tags file 401.1Scgd# are placed in each source directory. We need to have links to tags files 411.1Scgd# from the generic directories that are relative to the machine type, even 421.1Scgd# via remote mounts; therefore we use symlinks to $SYSTAGS, which points at 431.1Scgd# ${SYSDIR}/${MACHINE}/tags. 441.7Sperry 451.7SperryARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax 461.1Scgd 471.1ScgdSYSTAGS=/var/db/sys_tags 481.1ScgdSYSDIR=/sys 491.1Scgd 501.1Scgd# Directories in which to place tags links (other than machine-dependent) 511.1ScgdDGEN= conf \ 521.1Scgd dev dev/scsi \ 531.1Scgd hp hp/dev hp/hpux \ 541.1Scgd kern libkern \ 551.1Scgd miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ 561.1Scgd miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ 571.1Scgd miscfs/specfs miscfs/umapfs miscfs/union \ 581.1Scgd net netccitt netinet netiso netns nfs scripts sys \ 591.1Scgd ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ 601.1Scgd vm 611.1Scgd 621.1Scgdtags:: 631.1Scgd -for i in ${ARCH}; do \ 641.1Scgd (cd ../$$i && make ${MFLAGS} tags); done 651.1Scgd 661.1Scgdlinks:: 671.1Scgd rm -f ${SYSTAGS} 681.1Scgd ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} 691.1Scgd -for i in ${DGEN}; do \ 701.1Scgd (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done 711.1Scgd -for i in ${ARCH}; do \ 721.1Scgd (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done 73