source: vis_dev/glu-2.3/helpers/dependency.make @ 33

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

library glu 2.3

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 1998/05/04 02:12:26 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.