Commit | Line | Data |
---|---|---|
742c4cd4 | 1 | # @(#)Makefile 8.2 (Berkeley) %G% |
3d62d981 | 2 | |
6a14214f | 3 | # Makefile for kernel tags files, init_sysent, etc. |
3d62d981 | 4 | |
c1afc30e | 5 | ARCH= hp300 i386 luna68k news3400 pmax sparc tahoe vax |
d452baa8 | 6 | |
edc0ae01 MK |
7 | all: |
8 | @echo "make tags, make links or init_sysent.c only" | |
aa25bfa4 | 9 | |
edc0ae01 MK |
10 | init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master |
11 | -mv -f init_sysent.c init_sysent.c.bak | |
12 | -mv -f syscalls.c syscalls.c.bak | |
13 | -mv -f ../sys/syscall.h ../sys/syscall.h.bak | |
14 | sh makesyscalls.sh syscalls.master | |
7ba7528e | 15 | |
edc0ae01 | 16 | # Kernel tags: |
6a14214f | 17 | # Tags files are built in the top-level directory for each architecture, |
c1afc30e KB |
18 | # with a makefile listing the architecture-dependent files, etc. The list |
19 | # of common files is in ./Make.tags.inc. Links to the correct tags file | |
20 | # are placed in each source directory. We need to have links to tags files | |
21 | # from the generic directories that are relative to the machine type, even | |
22 | # via remote mounts; therefore we use symlinks to $SYSTAGS, which points at | |
edc0ae01 | 23 | # ${SYSDIR}/${MACHINE}/tags. |
7ba7528e | 24 | |
edc0ae01 MK |
25 | SYSTAGS=/var/db/sys_tags |
26 | SYSDIR=/sys | |
04944f75 | 27 | |
edc0ae01 | 28 | # Directories in which to place tags links (other than machine-dependent) |
c1afc30e KB |
29 | DGEN= conf \ |
30 | dev dev/scsi \ | |
31 | hp hp/dev hp/hpux \ | |
32 | kern libkern \ | |
33 | miscfs miscfs/deadfs miscfs/fdesc miscfs/fifofs miscfs/kernfs \ | |
742c4cd4 KB |
34 | miscfs/lofs miscfs/nullfs miscfs/portal miscfs/procfs \ |
35 | miscfs/specfs miscfs/umapfs miscfs/union \ | |
c1afc30e KB |
36 | net netccitt netinet netiso netns nfs scripts sys \ |
37 | ufs ufs/ffs ufs/lfs ufs/mfs ufs/ufs \ | |
38 | vm | |
39 | ||
40 | tags:: | |
edc0ae01 | 41 | -for i in ${ARCH}; do \ |
a503f0a7 | 42 | (cd ../$$i && make ${MFLAGS} tags); done |
d452baa8 | 43 | |
c1afc30e KB |
44 | links:: |
45 | rm -f ${SYSTAGS} | |
46 | ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} | |
04944f75 | 47 | -for i in ${DGEN}; do \ |
a503f0a7 | 48 | (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done |
edc0ae01 | 49 | -for i in ${ARCH}; do \ |
c1afc30e | 50 | (cd ../$$i && make ${MFLAGS} SYSTAGS=${SYSTAGS} links); done |