Home | History | Annotate | Line # | Download | only in kern
Makefile revision 1.7
      1  1.7    perry #	$NetBSD: Makefile,v 1.7 1998/09/13 23:50:39 perry Exp $
      2  1.6    perry #
      3  1.6    perry #	from: @(#)Makefile	8.2 (Berkeley) 3/21/94
      4  1.1      cgd 
      5  1.1      cgd # Makefile for kernel tags files, init_sysent, etc.
      6  1.1      cgd 
      7  1.1      cgd all:
      8  1.5      cgd 	@echo "make tags, links, init_sysent.c, or vnode_if.c only"
      9  1.5      cgd 	@false
     10  1.1      cgd 
     11  1.2      cgd SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master
     12  1.4  mycroft init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC}
     13  1.1      cgd 	-mv -f init_sysent.c init_sysent.c.bak
     14  1.1      cgd 	-mv -f syscalls.c syscalls.c.bak
     15  1.1      cgd 	-mv -f ../sys/syscall.h ../sys/syscall.h.bak
     16  1.3      cgd 	-mv -f ../sys/syscallargs.h ../sys/syscallargs.h.bak
     17  1.2      cgd 	sh makesyscalls.sh syscalls.conf syscalls.master
     18  1.5      cgd 
     19  1.5      cgd VNODEIFSRC = vnode_if.sh vnode_if.src
     20  1.5      cgd vnode_if.c ../sys/vnode_if.h: ${VNODEIFSRC}
     21  1.5      cgd 	-mv -f vnode_if.c vnode_if.c.bak
     22  1.5      cgd 	-mv -f ../sys/vnode_if.h ../sys/vnode_if.h.bak
     23  1.5      cgd 	sh vnode_if.sh vnode_if.src
     24  1.1      cgd 
     25  1.7    perry # XXX 
     26  1.7    perry # [Note by Perry Metzger, Sept. 1998]
     27  1.7    perry # As it stands, the tags support below is hopelessly
     28  1.7    perry # broken. Just look at the names of the architectures it is dealing
     29  1.7    perry # with and where it expects to find the support for them to see why.
     30  1.7    perry # I've left the stuff in this Makefile alone in the hope that someone
     31  1.7    perry # will fix it someday -- I am assuming that it might help that
     32  1.7    perry # person if they have the old Makefile goo left in place as a starting
     33  1.7    perry # point. 
     34  1.7    perry # XXX
     35  1.7    perry 
     36  1.1      cgd # Kernel tags:
     37  1.1      cgd # Tags files are built in the top-level directory for each architecture,
     38  1.1      cgd # with a makefile listing the architecture-dependent files, etc.  The list
     39  1.1      cgd # of common files is in ./Make.tags.inc.  Links to the correct tags file
     40  1.1      cgd # are placed in each source directory.  We need to have links to tags files
     41  1.1      cgd # from the generic directories that are relative to the machine type, even
     42  1.1      cgd # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
     43  1.1      cgd # ${SYSDIR}/${MACHINE}/tags.
     44  1.7    perry 
     45  1.7    perry ARCH=	hp300 i386 luna68k news3400 pmax sparc tahoe vax
     46  1.1      cgd 
     47  1.1      cgd SYSTAGS=/var/db/sys_tags
     48  1.1      cgd SYSDIR=/sys
     49  1.1      cgd 
     50  1.1      cgd # Directories in which to place tags links (other than machine-dependent)
     51  1.1      cgd DGEN=	conf \
     52  1.1      cgd 	dev dev/scsi \
     53  1.1      cgd 	hp hp/dev hp/hpux \
     54  1.1      cgd 	kern libkern \
     55  1.1      cgd 	miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \
     56  1.1      cgd 	miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \
     57  1.1      cgd 	miscfs/specfs miscfs/umapfs miscfs/union \
     58  1.1      cgd 	net netccitt netinet netiso netns nfs scripts sys \
     59  1.1      cgd 	ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \
     60  1.1      cgd 	vm
     61  1.1      cgd 
     62  1.1      cgd tags::
     63  1.1      cgd 	-for i in ${ARCH}; do \
     64  1.1      cgd 	    (cd ../$$i && make ${MFLAGS} tags); done
     65  1.1      cgd 
     66  1.1      cgd links::
     67  1.1      cgd 	rm -f ${SYSTAGS}
     68  1.1      cgd 	ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
     69  1.1      cgd 	-for i in ${DGEN}; do \
     70  1.1      cgd 	    (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
     71  1.1      cgd 	-for i in ${ARCH}; do \
     72  1.1      cgd 	    (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done
     73