[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undocumented implicit rules for C++ [.cpp suffix]
From: |
Manoj Srivastava |
Subject: |
undocumented implicit rules for C++ [.cpp suffix] |
Date: |
Sun, 23 Oct 2005 15:51:09 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) (i686-pc-linux-gnu) |
Hi,
[Please retain the CC to address@hidden
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'.
--
To keep your friends treat them kindly; to kill them, treat them
often.
Manoj Srivastava <address@hidden> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- undocumented implicit rules for C++ [.cpp suffix],
Manoj Srivastava <=