/[escript]/trunk/make/Makefile.depend
ViewVC logotype

Contents of /trunk/make/Makefile.depend

Parent Directory Parent Directory | Revision Log Revision Log


Revision 155 - (show annotations)
Wed Nov 9 02:02:19 2005 UTC (13 years, 10 months ago) by jgs
File size: 2227 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

1 # $Id$
2
3 # Implicit dependencies
4 # Generate rules which specify source file dependencies
5
6 # If we're not doing a clean, and some source files have been found, include the autogenerated
7 # dependency rules for those source files. If the makefiles containing these rules cannot be found
8 # make will attempt to remake them.
9 ifneq (${MAKECMDGOALS},clean)
10 ifneq (${MAKECMDGOALS},uninstall)
11 ifneq (${strip ${CC_SRC} ${CPP_SRC} ${SWIG_SRC}},)
12 -include ${addprefix ${L_DEP_DIR}/, ${CC_SRC:.c=.d} ${CPP_SRC:.cpp=.d} ${SWIG_SRC:.i=.d}}
13 endif
14 endif
15 endif
16
17 # Rules to autogenerate dependency rules for .c files
18 ${L_DEP_DIR}/%.d: %.c
19 @echo ----------------------------------------------------------------------------
20 @if test ! -e "${@D}"; then mkdir -p ${@D}; fi
21 ${strip ${CC} ${CC_DEP_FLAGS} ${CC_FLAGS} $<} \
22 | sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.c, %.o, $<}} ${@}:|g' > $@
23 @[ -s $@ ] || rm -f $@; [ -f $@ ]
24 @echo Generated \"$@: $<\".
25
26 # Rules to autogenerate dependency rules for .cpp files
27 ${L_DEP_DIR}/%.d: %.cpp
28 @echo ----------------------------------------------------------------------------
29 @if test ! -e "${@D}"; then mkdir -p ${@D}; fi
30 ${strip ${CPP} ${CPP_DEP_FLAGS} ${CPP_FLAGS} $<} \
31 | sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.cpp, %.o, $<}} ${@}:|g' > $@
32 @[ -s $@ ] || rm -f $@; [ -f $@ ]
33 @echo Generated \"$@: $<\".
34
35 # $Log$
36 # Revision 1.2 2005/06/09 05:38:02 jgs
37 # Merge of development branch back to main trunk on 2005-06-09
38 #
39 # Revision 1.1.1.1.2.1 2005/05/18 06:38:39 jgs
40 # don't make dependencies on target uninstall
41 #
42 # Revision 1.1.1.1 2004/10/26 06:53:58 jgs
43 # initial import of project esys2
44 #
45 # Revision 1.2 2004/09/23 01:48:45 jgs
46 # make: augmented Makefiles with comments throughout
47 #
48 # Makefile.default - changed order of includes for clarity
49 # Makfile.phony - reordered phony targets
50 # - added target "all" - now first target to be encountered
51 #
52 # Revision 1.1.1.1 2004/06/24 04:00:39 johng
53 # Initial version of eys using boost-python.
54 #
55 # Revision 1.2 2003/08/25 02:18:40 davies
56 # Do not build source dependencies when simply cleaning.
57 #
58 # Revision 1.1.1.1 2003/08/21 00:58:20 davies
59 # Imported sources from Lutz Gross.
60 #
61

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26