Remove old {pccard,pci,usb}devs.h via 'make upgrade'.
[dragonfly.git] / sys / kern / Makefile.misc
1 # Makefile for kernel tags files, init_sysent, etc.
2
3 TAGARCH= i386 # luna68k news3400 pmax sparc tahoe vax
4
5 all:
6         @echo "make sysent, tags, or links target only"
7
8 sysent: ${.CURDIR}/init_sysent.c
9
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
20
21 # Kernel tags:
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.
29
30 SYSTAGS=/var/db/sys_tags
31 SYSDIR=${.CURDIR:H}
32 MFLAGS=SYS=${SYSDIR}
33
34 # Directories in which to place tags links (other than machine-dependent)
35 DGEN=   conf \
36         dev \
37         kern libkern \
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 \
42         net netinet sys \
43         vm
44
45 #tags::
46 #       -cd ${.CURDIR} && for i in ${TAGARCH}; do \
47 #           (cd ../$$i && make ${MFLAGS} tags); done
48 #
49 #links::
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
56