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

Contents of /trunk/esys2/make/Makefile.depend

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (15 years, 11 months ago) by jgs
File size: 1965 byte(s)
Initial revision

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 (${strip ${CC_SRC} ${CPP_SRC} ${SWIG_SRC}},)
11 -include ${addprefix ${L_DEP_DIR}/, ${CC_SRC:.c=.d} ${CPP_SRC:.cpp=.d} ${SWIG_SRC:.i=.d}}
12 endif
13 endif
14
15 # Rules to autogenerate dependency rules for .c files
16 ${L_DEP_DIR}/%.d: %.c
17 @echo ----------------------------------------------------------------------------
18 @if test ! -e "${@D}"; then mkdir -p ${@D}; fi
19 ${strip ${CC} ${CC_DEP_FLAGS} ${CC_FLAGS} $<} \
20 | sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.c, %.o, $<}} ${@}:|g' > $@
21 @[ -s $@ ] || rm -f $@; [ -f $@ ]
22 @echo Generated \"$@: $<\".
23
24 # Rules to autogenerate dependency rules for .cpp files
25 ${L_DEP_DIR}/%.d: %.cpp
26 @echo ----------------------------------------------------------------------------
27 @if test ! -e "${@D}"; then mkdir -p ${@D}; fi
28 ${strip ${CPP} ${CPP_DEP_FLAGS} ${CPP_FLAGS} $<} \
29 | sed 's|.*:|${strip ${patsubst ${L_SRC_DIR}/%.cpp, %.o, $<}} ${@}:|g' > $@
30 @[ -s $@ ] || rm -f $@; [ -f $@ ]
31 @echo Generated \"$@: $<\".
32
33 # $Log$
34 # Revision 1.1 2004/10/26 06:53:58 jgs
35 # Initial revision
36 #
37 # Revision 1.2 2004/09/23 01:48:45 jgs
38 # make: augmented Makefiles with comments throughout
39 #
40 # Makefile.default - changed order of includes for clarity
41 # Makfile.phony - reordered phony targets
42 # - added target "all" - now first target to be encountered
43 #
44 # Revision 1.1.1.1 2004/06/24 04:00:39 johng
45 # Initial version of eys using boost-python.
46 #
47 # Revision 1.2 2003/08/25 02:18:40 davies
48 # Do not build source dependencies when simply cleaning.
49 #
50 # Revision 1.1.1.1 2003/08/21 00:58:20 davies
51 # Imported sources from Lutz Gross.
52 #
53

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26