The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/Makefile

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 # $FreeBSD: releng/11.2/sys/Makefile 329145 2018-02-12 01:08:44Z kevans $
    2 
    3 # Directories to include in cscope name file and TAGS.
    4 CSCOPEDIRS=     bsm cam cddl compat conf contrib crypto ddb dev fs gdb \
    5                 geom gnu isa kern libkern modules net net80211 \
    6                 netgraph netinet netinet6 netipsec netnatm netpfil \
    7                 netsmb nfs nfsclient nfsserver nlm ofed opencrypto \
    8                 rpc security sys ufs vm xdr xen ${CSCOPE_ARCHDIR}
    9 .if !defined(CSCOPE_ARCHDIR)
   10 .if defined(ALL_ARCH)
   11 CSCOPE_ARCHDIR = amd64 arm arm64 i386 mips pc98 powerpc riscv sparc64 x86
   12 .else
   13 CSCOPE_ARCHDIR = ${MACHINE}
   14 .if ${MACHINE} != ${MACHINE_CPUARCH}
   15 CSCOPE_ARCHDIR += ${MACHINE_CPUARCH}
   16 .endif
   17 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
   18 CSCOPE_ARCHDIR += x86
   19 .endif
   20 .endif
   21 .endif
   22 
   23 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
   24 
   25 # You need the devel/cscope port for this.
   26 cscope: cscope.out
   27 cscope.out: ${.CURDIR}/cscope.files
   28         cd ${.CURDIR}; cscope -k -buq -p4 -v
   29 
   30 ${.CURDIR}/cscope.files: .PHONY
   31         cd ${.CURDIR}; \
   32                 find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET}
   33 
   34 cscope-clean:
   35         cd ${.CURDIR}; \
   36             rm -f cscope.files cscope.out cscope.in.out cscope.po.out
   37 
   38 #
   39 # Installs SCM hooks to update the cscope database every time the source tree
   40 # is updated.
   41 # cscope understands incremental updates, so it's considerably faster when only
   42 # a few files have changed.
   43 #
   44 HG_DIR=${.CURDIR}/../.hg
   45 HG_HOOK=if [ \$$HG_ERROR -eq 0 ]; then cd sys && make -m ../share/mk cscope; fi
   46 cscope-hook:
   47         @if [ -d ${HG_DIR} ]; then                                      \
   48                 if [ "`grep hooks ${HG_DIR}/hgrc`" = "" ]; then         \
   49                         echo "[hooks]" >> ${HG_DIR}/hgrc;               \
   50                         echo "update = ${HG_HOOK}" >> ${HG_DIR}/hgrc;   \
   51                         echo "Hook installed in ${HG_DIR}/hgrc";        \
   52                 else                                                    \
   53                         echo "Mercurial update hook already exists.";   \
   54                 fi;                                                     \
   55         fi
   56 
   57 # You need the devel/global and one of editor/emacs* ports for that.
   58 TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
   59         rm -f ${.CURDIR}/TAGS
   60         cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files
   61 
   62 .if !(make(cscope) || make(cscope-clean) || make(cscope-hook) || make(TAGS))
   63 .include <src.opts.mk>
   64 
   65 # Loadable kernel modules
   66 
   67 .if defined(MODULES_WITH_WORLD)
   68 SUBDIR+=modules
   69 .endif
   70 
   71 .include <bsd.subdir.mk>
   72 .endif

Cache object: 80e8469e6d5a12b2b20ce4449f2a7da7


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.