Sat 31 Dec 2005 03:23:44 PM UTC, original submission:
Hi,
[Please retain the CC to -unavailable- so that the Debian Bug Tracking system can record your input]
This was reported by a debian user
manoj
Make has an implicit rule for .cpp files, but this is not documented. Observe:
,----
| __> cd /tmp; rm -f Makefile makefile
| __> touch foo.cpp
| __> make foo.o
| g++ -c -o foo.o foo.cpp
`----
The following sections of the documentation need to be updated:
10.2 Catalogue of Implicit Rules
================================
[snip]
target `.SUFFIXES'). The default suffix list is: `.out', `.a', `.ln', `.o', `.c', `.cc', `.C', `.p', `.f', `.F', `.r', `.y', `.l', `.s', `.S', `.mod', `.sym', `.def', `.h', `.info', `.dvi', `.tex', `.texinfo', `.texi', `.txinfo', `.w', `.ch' `.web', `.sh', `.elc', `.el'. All of
[snip]
Compiling C++ programs
`N.o' is made automatically from `N.cc' or `N.C' with a command of the form `$(CXX) -c $(CPPFLAGS) $(CXXFLAGS)'. We encourage you to use the suffix `.cc' for C++ source files instead of `.C'.
|