bsd.dep.mk revision 1.1
1#	$Id: bsd.dep.mk,v 1.1 1993/08/15 19:37:04 mycroft Exp $
2
3# some of the rules involve .h sources, so remove them from mkdep line
4.if !target(depend)
5depend: beforedepend .depend afterdepend
6.if defined(SRCS)
7.depend: ${SRCS}
8	rm -f .depend
9	files="${.ALLSRC:M*.c}"; \
10	if [ "$$files" != "" ]; then \
11	  mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \
12	fi
13	files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
14	if [ "$$files" != "  " ]; then \
15	  mkdep -a ${MKDEP} -+ ${CXXFLAGS:M-[ID]*} $$files; \
16	fi
17.endif
18.endif
19