1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 # This fragment is probably only useful for maintainers. It relies on
19 # GNU make and gcc. It is only included in the generated Makefile.in
20 # if `automake' is not passed the `--include-deps' flag.
22 MKDEP = gcc -MM $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
24 ## We use ".P" as the name of our placeholder because it can't be
25 ## duplicated by any C source file. (Well, there could be ".c", but
26 ## no one does that in practice)
27 -include $(srcdir)/.deps/.P
28 $(srcdir)/.deps/.P: $(BUILT_SOURCES)
29 cd $(srcdir) && test -d .deps || mkdir .deps
30 ## Use ":" here and not "echo timestamp". Otherwise GNU Make barfs:
31 ## .deps/.P:1: *** missing separator. Stop.
35 $(DEP_FILES): $(srcdir)/.deps/.P
37 $(srcdir)/.deps/%.P: $(srcdir)/%.c
38 @echo "mkdeps $< > $@"
39 ## Use funny regexp because otherwise too much can be matched when
40 ## srcdir begins with ".". Can't use \< since sed doesn't recognize
41 ## "." as a word start. Regexp-quote srcdir because "." is a matching
42 ## operator which commonly appears in filenames.
43 @re=`echo 's,^$(srcdir)/*,,g;s, $(srcdir)/*, ,g' | sed 's,\.,\\\\.,g'`; \
44 $(MKDEP) $< | sed "$$re" > $@-tmp
45 @if test -n "$o"; then \
46 sed 's/\.o:/$$o:/' $@-tmp > $@; \
52 # End of maintainer-only section