# $Header: /CVSROOT/tinolib/old/Makefile.d.proto,v 1.6 2005/12/05 02:11:12 tino Exp $ # # Makefile to create the dependencies for the generated Makefile # # Copyright (C)2004-2005 Valentin Hilbig, webmaster@scylla-charybdis.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Log: Makefile.d.proto,v $ # Revision 1.6 2005/12/05 02:11:12 tino # Copyright and COPYLEFT added # # Revision 1.5 2005/08/01 17:53:28 tino # C++ additions # # Revision 1.4 2004/09/30 20:21:09 tino # Added ADD_CFLAGS for generation of .d files # # Revision 1.3 2004/09/04 22:37:08 tino # Fix against empty dependencies file # # Revision 1.2 2004/09/04 14:25:20 tino # typos corrected # # Revision 1.1 2004/09/04 14:12:15 tino # Automated dependencies added and other make improvements. %.d: %.c $(CC) -MM $(ADD_CFLAGS) -I$(HERE) $(CPPFLAGS) $< | \ sed 's/^[^:]*:/ /' >$@ [ -s "$@" ] || $(RM) "$@" %.d: %.cc $(CXX) -MM $(ADD_CFLAGS) -I$(HERE) $(CPPFLAGS) $< | \ sed 's/^[^:]*:/ /' >$@ [ -s "$@" ] || $(RM) "$@" all: \ #S PROG PROGS #R #v#.d \ #S PROG PROGS #R #R#v#.d:#include(#v#.d)