Home | History | Annotate | Line # | Download | only in kern
Makefile revision 1.2
      1 #	@(#)Makefile	8.2 (Berkeley) 3/21/94
      2 
      3 # Makefile for kernel tags files, init_sysent, etc.
      4 
      5 ARCH=	hp300 i386 luna68k news3400 pmax sparc tahoe vax
      6 
      7 all:
      8 	@echo "make tags, make links or init_sysent.c only"
      9 
     10 SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master
     11 init_sysent.c syscalls.c ../sys/syscall.h: ${SYSCALLSRC}
     12 	-mv -f init_sysent.c init_sysent.c.bak
     13 	-mv -f syscalls.c syscalls.c.bak
     14 	-mv -f ../sys/syscall.h ../sys/syscall.h.bak
     15 	sh makesyscalls.sh syscalls.conf syscalls.master
     16 
     17 # Kernel tags:
     18 # Tags files are built in the top-level directory for each architecture,
     19 # with a makefile listing the architecture-dependent files, etc.  The list
     20 # of common files is in ./Make.tags.inc.  Links to the correct tags file
     21 # are placed in each source directory.  We need to have links to tags files
     22 # from the generic directories that are relative to the machine type, even
     23 # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
     24 # ${SYSDIR}/${MACHINE}/tags.
     25 
     26 SYSTAGS=/var/db/sys_tags
     27 SYSDIR=/sys
     28 
     29 # Directories in which to place tags links (other than machine-dependent)
     30 DGEN=	conf \
     31 	dev dev/scsi \
     32 	hp hp/dev hp/hpux \
     33 	kern libkern \
     34 	miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \
     35 	miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \
     36 	miscfs/specfs miscfs/umapfs miscfs/union \
     37 	net netccitt netinet netiso netns nfs scripts sys \
     38 	ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \
     39 	vm
     40 
     41 tags::
     42 	-for i in ${ARCH}; do \
     43 	    (cd ../$$i && make ${MFLAGS} tags); done
     44 
     45 links::
     46 	rm -f ${SYSTAGS}
     47 	ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
     48 	-for i in ${DGEN}; do \
     49 	    (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
     50 	-for i in ${ARCH}; do \
     51 	    (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done
     52