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