1 # Makefile for kernel tags files, init_sysent, etc.
3 TAGARCH= i386 # luna68k news3400 pmax sparc tahoe vax
6 @echo "make sysent, tags, or links target only"
8 sysent: ${.CURDIR}/init_sysent.c
10 ${.CURDIR}/init_sysent.c ${.CURDIR}/syscalls.c \
11 ${.CURDIR}/../sys/syscall.mk ${.CURDIR}/../sys/sysproto.h \
12 ${.CURDIR}/../sys/sysunion.h: ${.CURDIR}/makesyscalls.sh ${.CURDIR}/syscalls.master
13 -mv -f ${.CURDIR}/init_sysent.c ${.CURDIR}/init_sysent.c.bak
14 -mv -f ${.CURDIR}/syscalls.c ${.CURDIR}/syscalls.c.bak
15 -mv -f ${.CURDIR}/../sys/syscall.h ${.CURDIR}/../sys/syscall.h.bak
16 -mv -f ${.CURDIR}/../sys/syscall.mk ${.CURDIR}/../sys/syscall.mk.bak
17 -mv -f ${.CURDIR}/../sys/sysproto.h ${.CURDIR}/../sys/sysproto.h.bak
18 -mv -f ${.CURDIR}/../sys/sysunion.h ${.CURDIR}/../sys/sysunion.h.bak
19 cd ${.CURDIR} && sh makesyscalls.sh syscalls.master
22 # Tags files are built in the top-level directory for each architecture,
23 # with a makefile listing the architecture-dependent files, etc. The list
24 # of common files is in ./Make.tags.inc. Links to the correct tags file
25 # are placed in each source directory. We need to have links to tags files
26 # from the generic directories that are relative to the machine type, even
27 # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
28 # ${SYSDIR}/platform/${MACHINE_PLATFORM}/tags.
30 SYSTAGS=/var/db/sys_tags
34 # Directories in which to place tags links (other than machine-dependent)
38 vfs vfs/deadfs vfs/fdesc vfs/fifofs \
39 vfs/nullfs vfs/portal vfs/procfs \
40 vfs/specfs vfs/union \
41 vfs/ufs vfs/mfs vfs/nfs vfs/tmpfs \
46 # -cd ${.CURDIR} && for i in ${TAGARCH}; do \
47 # (cd ../$$i && make ${MFLAGS} tags); done
50 # rm -f ${.CURDIR}/${SYSTAGS}
51 # -${LN} -s ${SYSDIR}/platform/${MACHINE_PLATFORM}/tags ${.CURDIR}/${SYSTAGS}
52 # -cd ${.CURDIR} && for i in ${DGEN}; do \
53 # (cd ../$$i && { rm -f tags; ${LN} -s ${SYSTAGS} tags; }) done
54 # -cd ${.CURDIR} && for i in ${TAGARCH}; do \
55 # (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done