source: vis_dev/cusp-1.1/helpers/dependency.make @ 89

Last change on this file since 89 was 12, checked in by cecile, 13 years ago

cusp added

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1# FileName      [dependency.make]
2#
3# PackageName   [vis]
4#
5# Synopsis      [Makefile to automatically create the dependency files.]
6#
7# Description   [This file is called from the main Makefile.]
8#
9# SeeAlso       [Makefile.in]
10#
11# Author        [Abelardo Pardo <abel@boulder.colorado.edu>]
12#
13# Copyright     [This file was created at the University of Colorado at Boulder.
14#  The University of Colorado at Boulder makes no warranty about the suitability
15#  of this software for any purpose.  It is presented on an AS IS basis.]
16#
17# Revision      [$Id: dependency.make,v 1.1.1.1 2008-11-14 20:40:10 hhkim Exp $]
18
19include $(PKGNAME).make
20
21ifdef DEPENDENCYFILES
22$(PKGNAME).d : $(DEPENDENCYFILES) $(HEADERS) $(PKGNAME).make
23        @echo -n "Dependency file $(PKGNAME).d->"
24        @$(CC) -MM $(CFLAGS) $(AC_FLAGS) $(INCLUDEDIRS) \
25        $(filter %.c, $^) | \
26        sed 's/^[a-zA-Z0-9_]*\.o[ :]*/$(objectdir)\/&/g' > $@
27        @echo "Created."
28else
29$(PKGNAME).d :
30        @echo "No dependency files given in $(PKGNAME).make"
31        @echo "Define the variable DEPENDENCYFILES to create the dependencies"
32endif
Note: See TracBrowser for help on using the repository browser.