bsd.dep.mk (17b227229c42069c1b13facb4e04c0ef6b7c2b09) | bsd.dep.mk (9c851217b6d0d7a2d80f1d379654cae8ce045744) |
---|---|
1# $FreeBSD$ 2# 3# The include file <bsd.dep.mk> handles Makefile dependencies. 4# 5# 6# +++ variables +++ 7# 8# CTAGS A tags file generation program [gtags] --- 115 unchanged lines hidden (view full) --- 124# libelf is currently needed for drti.o 125.if ${SRCS:M*.d} 126LDFLAGS+= -lelf 127LDADD+= ${LIBELF} 128CFLAGS+= -D_DTRACE_VERSION=1 -I${.OBJDIR} 129.endif 130.for _DSRC in ${SRCS:M*.d:N*/*} 131.for _D in ${_DSRC:R} | 1# $FreeBSD$ 2# 3# The include file <bsd.dep.mk> handles Makefile dependencies. 4# 5# 6# +++ variables +++ 7# 8# CTAGS A tags file generation program [gtags] --- 115 unchanged lines hidden (view full) --- 124# libelf is currently needed for drti.o 125.if ${SRCS:M*.d} 126LDFLAGS+= -lelf 127LDADD+= ${LIBELF} 128CFLAGS+= -D_DTRACE_VERSION=1 -I${.OBJDIR} 129.endif 130.for _DSRC in ${SRCS:M*.d:N*/*} 131.for _D in ${_DSRC:R} |
132DHDRS+= ${_D}.h |
|
132${_D}.h: ${_DSRC} 133 ${DTRACE} -xnolibs -h -s ${.ALLSRC} 134SRCS:= ${SRCS:S/${_DSRC}/${_D}.h/} 135OBJS+= ${_D}.o 136CLEANFILES+= ${_D}.h ${_D}.o 137${_D}.o: ${_D}.h ${OBJS:S/${_D}.o//} 138 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 139 ${OBJS:S/${_D}.o//} 140.if defined(LIB) 141CLEANFILES+= ${_D}.So ${_D}.po 142${_D}.So: ${_D}.h ${SOBJS:S/${_D}.So//} 143 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 144 ${SOBJS:S/${_D}.So//} 145${_D}.po: ${_D}.h ${POBJS:S/${_D}.po//} 146 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 147 ${POBJS:S/${_D}.po//} 148.endif 149.endfor 150.endfor | 133${_D}.h: ${_DSRC} 134 ${DTRACE} -xnolibs -h -s ${.ALLSRC} 135SRCS:= ${SRCS:S/${_DSRC}/${_D}.h/} 136OBJS+= ${_D}.o 137CLEANFILES+= ${_D}.h ${_D}.o 138${_D}.o: ${_D}.h ${OBJS:S/${_D}.o//} 139 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 140 ${OBJS:S/${_D}.o//} 141.if defined(LIB) 142CLEANFILES+= ${_D}.So ${_D}.po 143${_D}.So: ${_D}.h ${SOBJS:S/${_D}.So//} 144 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 145 ${SOBJS:S/${_D}.So//} 146${_D}.po: ${_D}.h ${POBJS:S/${_D}.po//} 147 ${DTRACE} -xnolibs -G -o ${.TARGET} -s ${.CURDIR}/${_DSRC} \ 148 ${POBJS:S/${_D}.po//} 149.endif 150.endfor 151.endfor |
152beforedepend: ${DHDRS} 153beforebuild: ${DHDRS} |
|
151.endif 152 153.if !target(depend) 154.if defined(SRCS) 155depend: beforedepend ${DEPENDFILE} afterdepend 156 157# Tell bmake not to look for generated files via .PATH 158.NOPATH: ${DEPENDFILE} --- 65 unchanged lines hidden --- | 154.endif 155 156.if !target(depend) 157.if defined(SRCS) 158depend: beforedepend ${DEPENDFILE} afterdepend 159 160# Tell bmake not to look for generated files via .PATH 161.NOPATH: ${DEPENDFILE} --- 65 unchanged lines hidden --- |