1 |
jgs |
82 |
# $Id$ |
2 |
|
|
|
3 |
|
|
# Implicit dependencies |
4 |
|
|
|
5 |
|
|
ifneq (${MAKECMDGOALS},clean) |
6 |
|
|
ifneq (${strip ${CC_SRC} ${CPP_SRC} ${SWIG_SRC}},) |
7 |
|
|
-include ${addprefix ${L_DEP_DIR}/, ${CC_SRC:.c=.d} ${CPP_SRC:.cpp=.d} ${SWIG_SRC:.i=.d}} |
8 |
|
|
endif |
9 |
|
|
endif |
10 |
|
|
|
11 |
|
|
# implicit automatic dependencies |
12 |
|
|
${L_DEP_DIR}/%.d: %.c |
13 |
|
|
@echo ---------------------------------------------------------------------------- |
14 |
|
|
@if test ! -e "${@D}"; then mkdir -p ${@D}; fi |
15 |
|
|
${strip ${CC} ${CC_DEP_FLAGS} ${CC_FLAGS} $<} \ |
16 |
|
|
| sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.c, %.o, $<}} ${@}:|g' > $@ |
17 |
|
|
@[ -s $@ ] || rm -f $@; [ -f $@ ] |
18 |
|
|
@echo Implicitly Generated \"$@: $<\". |
19 |
|
|
|
20 |
|
|
# implicit automatic dependencies |
21 |
|
|
${L_DEP_DIR}/%.d: %.cpp |
22 |
|
|
@echo ---------------------------------------------------------------------------- |
23 |
|
|
@if test ! -e "${@D}"; then mkdir -p ${@D}; fi |
24 |
|
|
${strip ${CPP} ${CPP_DEP_FLAGS} ${CPP_FLAGS} $<} \ |
25 |
|
|
| sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.cpp, %.o, $<}} ${@}:|g' > $@ |
26 |
|
|
@[ -s $@ ] || rm -f $@; [ -f $@ ] |
27 |
|
|
@echo Implicitly Generated \"$@: $<\". |
28 |
|
|
|
29 |
|
|
# $Log$ |
30 |
|
|
# Revision 1.1 2004/10/26 06:53:58 jgs |
31 |
|
|
# Initial revision |
32 |
|
|
# |
33 |
|
|
# Revision 1.1.2.1 2004/09/27 06:29:16 jgs |
34 |
|
|
# moved from make/hosts |
35 |
|
|
# |
36 |
|
|
# Revision 1.1.1.1 2004/06/24 04:00:39 johng |
37 |
|
|
# Initial version of eys using boost-python. |
38 |
|
|
# |
39 |
|
|
# Revision 1.2 2003/08/25 02:18:40 davies |
40 |
|
|
# Do not build source dependencies when simply cleaning. |
41 |
|
|
# |
42 |
|
|
# Revision 1.1.1.1 2003/08/21 00:58:20 davies |
43 |
|
|
# Imported sources from Lutz Gross. |
44 |
|
|
# |