003 File Manager
Current Path:
/usr/src/contrib/bmake/mk
usr
/
src
/
contrib
/
bmake
/
mk
/
📁
..
📄
ChangeLog
(52.99 KB)
📄
FILES
(858 B)
📄
README
(12.8 KB)
📄
auto.dep.mk
(1.95 KB)
📄
auto.obj.mk
(2.41 KB)
📄
autoconf.mk
(1.89 KB)
📄
autodep.mk
(5.72 KB)
📄
compiler.mk
(1.13 KB)
📄
cython.mk
(2.49 KB)
📄
dep.mk
(2.98 KB)
📄
dirdeps-cache-update.mk
(5.86 KB)
📄
dirdeps-options.mk
(2.92 KB)
📄
dirdeps-targets.mk
(5.26 KB)
📄
dirdeps.mk
(28.03 KB)
📄
doc.mk
(1.08 KB)
📄
dpadd.mk
(9.42 KB)
📄
files.mk
(2.13 KB)
📄
final.mk
(403 B)
📄
gendirdeps.mk
(12.02 KB)
📄
host-target.mk
(1.49 KB)
📄
host.libnames.mk
(700 B)
📄
inc.mk
(2.2 KB)
📄
init.mk
(2.14 KB)
📄
install-mk
(3.92 KB)
📄
install-new.mk
(1.28 KB)
📄
java.mk
(2.09 KB)
📄
ldorder.mk
(4.64 KB)
📄
lib.mk
(15.83 KB)
📄
libnames.mk
(585 B)
📄
libs.mk
(2.11 KB)
📄
links.mk
(1.63 KB)
📄
man.mk
(3.53 KB)
📄
manifest.mk
(2.37 KB)
📄
meta.autodep.mk
(9.41 KB)
📄
meta.stage.mk
(11.01 KB)
📄
meta.subdir.mk
(2.11 KB)
📄
meta.sys.mk
(4.03 KB)
📄
meta2deps.py
(23.86 KB)
📄
meta2deps.sh
(9.43 KB)
📄
mk-files.txt
(14.24 KB)
📄
mkopt.sh
(2.31 KB)
📄
nls.mk
(802 B)
📄
obj.mk
(2.15 KB)
📄
options.mk
(2.61 KB)
📄
own.mk
(5.85 KB)
📄
prlist.mk
(907 B)
📄
prog.mk
(5.28 KB)
📄
progs.mk
(2.23 KB)
📄
rst2htm.mk
(1.53 KB)
📄
scripts.mk
(2.4 KB)
📄
srctop.mk
(1.66 KB)
📄
stage-install.sh
(2.85 KB)
📄
subdir.mk
(2.2 KB)
📁
sys
📄
sys.clean-env.mk
(3.56 KB)
📄
sys.debug.mk
(1.19 KB)
📄
sys.dependfile.mk
(2.08 KB)
📄
sys.mk
(3.55 KB)
📄
sys.vars.mk
(2.91 KB)
📄
target-flags.mk
(1.55 KB)
📄
warnings.mk
(4.12 KB)
📄
whats.mk
(1.99 KB)
📄
yacc.mk
(1.38 KB)
Editing: dep.mk
# $Id: dep.mk,v 1.17 2014/08/04 05:12:27 sjg Exp $ .if !target(__${.PARSEFILE}__) __${.PARSEFILE}__: # handle Proc*C as well... .if defined(SRCS) .if !empty(SRCS:M*.pc) .include <proc.mk> .endif # it would be nice to be able to query .SUFFIXES OBJ_EXTENSIONS+= .o .po .lo .So # explicit dependencies help short-circuit .SUFFIX searches SRCS_DEP_FILTER+= N*.[hly] .for s in ${SRCS:${SRCS_DEP_FILTER:O:u:ts:}} .for e in ${OBJ_EXTENSIONS:O:u} .if !target(${s:T:R}$e) ${s:T:R}$e: $s .endif .endfor .endfor .endif .if exists(/usr/bin/mkdep) MKDEP_CMD?= mkdep .elif exists(/usr/local/share/bin/mkdeps.sh) MKDEP_CMD?= /usr/local/share/bin/mkdeps.sh -N .endif MKDEP_CMD?= mkdep MKDEP ?= ${MKDEP_CMD} .NOPATH: .depend .if ${MKDEP_MK:Uno} == "auto.dep.mk" && make(depend) # auto.dep.mk does not "do" depend MK_AUTODEP= no .endif .if ${MK_AUTODEP} == yes MKDEP_MK ?= autodep.mk .include <${MKDEP_MK}> .else MKDEP_ENV_VARS += CC CXX .for v in ${MKDEP_ENV_VARS:O:u} .if !empty($v) MKDEP_ENV += $v='${$v}' .endif .endfor _MKDEP = ${MKDEP_ENV} ${MKDEP} # some of the rules involve .h sources, so remove them from mkdep line .if !target(depend) depend: beforedepend .depend _SUBDIRUSE afterdepend .if defined(SRCS) # libs can have too many SRCS for a single command line # so do them one at a time. .depend: ${SRCS} ${.PARSEDIR}/${.PASEFILE} @rm -f .depend .ifdef LIB @files="${.ALLSRC:M*.[sS]}"; \ set -x; for f in $$files; do ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$f; done @files="${.ALLSRC:M*.c} ${.ALLSRC:M*.pc:T:.pc=.c}"; \ set -x; for f in $$files; do ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$f; done @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ set -x; for f in $$files; do ${_MKDEP} -a ${MKDEPFLAGS} \ ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$f; done .else @files="${.ALLSRC:M*.[Ss]}"; \ case "$$files" in *.[Ss]*) \ echo ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files; \ ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files;; \ esac @files="${.ALLSRC:M*.c} ${.ALLSRC:M*.pc:T:.pc=.c}"; \ case "$$files" in *.c*) \ echo ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ ${_MKDEP} -a ${MKDEPFLAGS} \ ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files;; \ esac @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ case "$$files" in *.[Cc]*) \ echo ${_MKDEP} -a ${MKDEPFLAGS} \ ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ ${_MKDEP} -a ${MKDEPFLAGS} \ ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files;; \ esac .endif .else .depend: .endif .if !target(beforedepend) beforedepend: .endif .if !target(afterdepend) afterdepend: .endif .endif .endif .if !target(tags) .if defined(SRCS) tags: ${SRCS} _SUBDIRUSE -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ sed "s;\${.CURDIR}/;;" > tags .else tags: .endif .endif .if defined(SRCS) cleandir: cleandepend .if !target(cleandepend) cleandepend: rm -f .depend ${.CURDIR}/tags .endif .endif .endif
Upload File
Create Folder