emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: etags for C++


From: Tak Ota
Subject: Re: etags for C++
Date: Wed, 20 Feb 2002 23:34:36 -0800 (PST)

Thu, 21 Feb 2002 08:47:11 +0200 (IST): Eli Zaretskii <address@hidden> wrote:

> 
> On Wed, 20 Feb 2002, Richard Stallman wrote:
> 
> >      find . -name "*.[chCH]" -print | etags -
> > 
> >     I suppose use of C++ is very common these days.
> > 
> > .C and .H were used for C++ files.  Has that convention changed?
> 
> No, it didn't change.
> 
> However, it's possible that capital .C and .H are not used on 
> case-insensitive filesystems such as on Windows.

GNU make 3.79.1 knows .C, .cc and .cpp as the C++ files.  And it seems
to treat .cc as the canonical one and consolidate .C and .cpp into
.cc.

-Tak


COMPILE.cpp = $(COMPILE.cc)
COMPILE.C = $(COMPILE.cc)
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c

%.o: %.cc
#  commands to execute (built-in):
        $(COMPILE.cc) $(OUTPUT_OPTION) $<

%.o: %.C
#  commands to execute (built-in):
        $(COMPILE.C) $(OUTPUT_OPTION) $<

%.o: %.cpp
#  commands to execute (built-in):
        $(COMPILE.cpp) $(OUTPUT_OPTION) $<

.cc.o:
        $(COMPILE.cc) $(OUTPUT_OPTION) $<

.C.o:
        $(COMPILE.C) $(OUTPUT_OPTION) $<

.cpp.o:
        $(COMPILE.cpp) $(OUTPUT_OPTION) $<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]