bsd.dep.mk (24bf3585ae49955b5d065afd9ae3b8aabe1f04a1) | bsd.dep.mk (0815243c3937b61db8b5a10cc652900d4df4acb0) |
---|---|
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] --- 88 unchanged lines hidden (view full) --- 97.if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h) 98.ORDER: ${_YC} y.tab.h 99${_YC} y.tab.h: ${_YSRC} 100 ${YACC} ${YFLAGS} ${.ALLSRC} 101 cp y.tab.c ${_YC} 102CLEANFILES+= y.tab.c y.tab.h 103.elif !empty(YFLAGS:M-d) 104.for _YH in ${_YC:R}.h | 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] --- 88 unchanged lines hidden (view full) --- 97.if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h) 98.ORDER: ${_YC} y.tab.h 99${_YC} y.tab.h: ${_YSRC} 100 ${YACC} ${YFLAGS} ${.ALLSRC} 101 cp y.tab.c ${_YC} 102CLEANFILES+= y.tab.c y.tab.h 103.elif !empty(YFLAGS:M-d) 104.for _YH in ${_YC:R}.h |
105.ORDER: ${_YC} ${_YH} 106${_YC} ${_YH}: ${_YSRC} | 105${_YH}: ${_YC} 106${_YC}: ${_YSRC} |
107 ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC} 108SRCS+= ${_YH} 109CLEANFILES+= ${_YH} 110.endfor 111.else 112${_YC}: ${_YSRC} 113 ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC} 114.endif 115.if !exists(${.OBJDIR}/${DEPENDFILE}) 116${_YC:R}.o: ${_YC} 117.endif 118.endfor 119.endfor 120.endif 121 122.if !target(depend) 123.if defined(SRCS) 124depend: beforedepend ${DEPENDFILE} afterdepend 125 | 107 ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC} 108SRCS+= ${_YH} 109CLEANFILES+= ${_YH} 110.endfor 111.else 112${_YC}: ${_YSRC} 113 ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC} 114.endif 115.if !exists(${.OBJDIR}/${DEPENDFILE}) 116${_YC:R}.o: ${_YC} 117.endif 118.endfor 119.endfor 120.endif 121 122.if !target(depend) 123.if defined(SRCS) 124depend: beforedepend ${DEPENDFILE} afterdepend 125 |
126# Tell bmake not to look for generated files via .PATH 127.NOPATH: ${DEPENDFILE} 128 |
|
126# Different types of sources are compiled with slightly different flags. 127# Split up the sources, and filter out headers and non-applicable flags. 128MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*} \ 129 ${CFLAGS:M-ansi} 130MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} \ 131 ${CXXFLAGS:M-std=*} ${CXXFLAGS:M-ansi} ${CXXFLAGS:M-stdlib=*} 132 133DPSRCS+= ${SRCS} --- 56 unchanged lines hidden --- | 129# Different types of sources are compiled with slightly different flags. 130# Split up the sources, and filter out headers and non-applicable flags. 131MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*} \ 132 ${CFLAGS:M-ansi} 133MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} \ 134 ${CXXFLAGS:M-std=*} ${CXXFLAGS:M-ansi} ${CXXFLAGS:M-stdlib=*} 135 136DPSRCS+= ${SRCS} --- 56 unchanged lines hidden --- |