Revamp the initial lwkt_abortmsg() support to normalize the abstraction. Now
[dragonfly.git] / sys / kern / Makefile.misc
1 # $DragonFly: src/sys/kern/Makefile.misc,v 1.1 2003/08/21 20:08:26 dillon Exp $
2 #
3 # Makefile for kernel tags files, init_sysent, etc.
4
5 TAGARCH= i386 # luna68k news3400 pmax sparc tahoe vax
6
7 all:
8         @echo "make sysent, tags, or links target only"
9
10 sysent: ${.CURDIR}/init_sysent.c
11
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
24
25 # Kernel tags:
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}/${MACHINE_ARCH}/tags.
33
34 SYSTAGS=/var/db/sys_tags
35 SYSDIR=${.CURDIR:H}
36 MFLAGS=SYS=${SYSDIR}
37
38 # Directories in which to place tags links (other than machine-dependent)
39 DGEN=   conf \
40         dev \
41         kern libkern \
42         vfs vfs/deadfs vfs/fdesc vfs/fifofs \
43         vfs/nullfs vfs/portal vfs/procfs \
44         vfs/specfs vfs/umapfs vfs/union \
45         vfs/ufs vfs/mfs vfs/nfs \
46         net netinet netns sys \
47         vm
48
49 #tags::
50 #       -cd ${.CURDIR} && for i in ${TAGARCH}; do \
51 #           (cd ../$$i && make ${MFLAGS} tags); done
52 #
53 #links::
54 #       rm -f ${.CURDIR}/${SYSTAGS}
55 #       -ln -s ${SYSDIR}/${MACHINE_ARCH}/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
60