Makefile revision 1.7 1 # $NetBSD: Makefile,v 1.7 1998/09/13 23:50:39 perry Exp $
2 #
3 # from: @(#)Makefile 8.2 (Berkeley) 3/21/94
4
5 # Makefile for kernel tags files, init_sysent, etc.
6
7 all:
8 @echo "make tags, links, init_sysent.c, or vnode_if.c only"
9 @false
10
11 SYSCALLSRC = makesyscalls.sh syscalls.conf syscalls.master
12 init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscallargs.h: ${SYSCALLSRC}
13 -mv -f init_sysent.c init_sysent.c.bak
14 -mv -f syscalls.c syscalls.c.bak
15 -mv -f ../sys/syscall.h ../sys/syscall.h.bak
16 -mv -f ../sys/syscallargs.h ../sys/syscallargs.h.bak
17 sh makesyscalls.sh syscalls.conf syscalls.master
18
19 VNODEIFSRC = vnode_if.sh vnode_if.src
20 vnode_if.c ../sys/vnode_if.h: ${VNODEIFSRC}
21 -mv -f vnode_if.c vnode_if.c.bak
22 -mv -f ../sys/vnode_if.h ../sys/vnode_if.h.bak
23 sh vnode_if.sh vnode_if.src
24
25 # XXX
26 # [Note by Perry Metzger, Sept. 1998]
27 # As it stands, the tags support below is hopelessly
28 # broken. Just look at the names of the architectures it is dealing
29 # with and where it expects to find the support for them to see why.
30 # I've left the stuff in this Makefile alone in the hope that someone
31 # will fix it someday -- I am assuming that it might help that
32 # person if they have the old Makefile goo left in place as a starting
33 # point.
34 # XXX
35
36 # Kernel tags:
37 # Tags files are built in the top-level directory for each architecture,
38 # with a makefile listing the architecture-dependent files, etc. The list
39 # of common files is in ./Make.tags.inc. Links to the correct tags file
40 # are placed in each source directory. We need to have links to tags files
41 # from the generic directories that are relative to the machine type, even
42 # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at
43 # ${SYSDIR}/${MACHINE}/tags.
44
45 ARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax
46
47 SYSTAGS=/var/db/sys_tags
48 SYSDIR=/sys
49
50 # Directories in which to place tags links (other than machine-dependent)
51 DGEN= conf \
52 dev dev/scsi \
53 hp hp/dev hp/hpux \
54 kern libkern \
55 miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \
56 miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \
57 miscfs/specfs miscfs/umapfs miscfs/union \
58 net netccitt netinet netiso netns nfs scripts sys \
59 ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \
60 vm
61
62 tags::
63 -for i in ${ARCH}; do \
64 (cd ../$$i && make ${MFLAGS} tags); done
65
66 links::
67 rm -f ${SYSTAGS}
68 ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
69 -for i in ${DGEN}; do \
70 (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
71 -for i in ${ARCH}; do \
72 (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done
73