source: vis_dev/vis-2.3/helpers/dependency.make @ 53

Last change on this file since 53 was 14, checked in by cecile, 13 years ago

vis2.3

File size: 1022 bytes
RevLine 
[14]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.3 1998/09/18 18:30:23 hsv 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.