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