Commit | Line | Data |
---|---|---|
a503f0a7 | 1 | # @(#)Makefile 7.16 (Berkeley) %G% |
3d62d981 | 2 | |
6a14214f | 3 | # Makefile for kernel tags files, init_sysent, etc. |
3d62d981 | 4 | |
7560c829 | 5 | ARCH= vax tahoe hp300 i386 pmax |
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 MK |
17 | # Tags files are built in the top-level directory for each architecture, |
18 | # with a makefile listing the architecture-dependent files, etc. | |
19 | # The list of common files is in ./Make.tags.inc. Links to the | |
20 | # correct tags file are placed in each source directory. | |
edc0ae01 MK |
21 | # We need to have links to tags files from the generic directories |
22 | # that are relative to the machine type, even via remote mounts; | |
23 | # therefore we use symlinks to $SYSTAGS, which points at | |
24 | # ${SYSDIR}/${MACHINE}/tags. | |
7ba7528e | 25 | |
edc0ae01 MK |
26 | SYSTAGS=/var/db/sys_tags |
27 | SYSDIR=/sys | |
04944f75 | 28 | |
edc0ae01 | 29 | # Directories in which to place tags links (other than machine-dependent) |
a503f0a7 KB |
30 | DGEN= kern sys net netimp netinet netns netccitt nfs ufs/ffs ufs/lfs \ |
31 | ufs/mfs ufs/ufs vm | |
aa25bfa4 | 32 | |
edc0ae01 MK |
33 | tags: FRC |
34 | -for i in ${ARCH}; do \ | |
a503f0a7 | 35 | (cd ../$$i && make ${MFLAGS} tags); done |
d452baa8 | 36 | |
edc0ae01 | 37 | links: ${SYSTAGS} |
04944f75 | 38 | -for i in ${DGEN}; do \ |
a503f0a7 | 39 | (cd ../$$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done |
edc0ae01 | 40 | -for i in ${ARCH}; do \ |
a503f0a7 | 41 | (cd ../$$i && make ${MFLAGS} links); done |
7ba7528e | 42 | |
edc0ae01 MK |
43 | ${SYSTAGS}: |
44 | ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS} | |
45 | ||
46 | FRC: |