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