source: vis_dev/vl2mv-2.3/helpers/dependency.make @ 104

Last change on this file since 104 was 18, checked in by cecile, 13 years ago

vl2mv added

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 2001/07/09 23:22:45 fabio 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.