Change all .cpp suffix to .cxx suffix
follow the coding standard requirement Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
1673df81d1
commit
2f1ecbaf74
@ -94,7 +94,7 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a
|
||||
all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5)
|
||||
.PHONY: all clean install
|
||||
|
||||
$(OBJS): %$(OBJEXT): %.cpp
|
||||
$(OBJS): %$(OBJEXT): %.cxx
|
||||
@echo "CC: $<"
|
||||
$(Q) $(CXX) -c $(CXXELFFLAGS) $< -o $@
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/elf/tests/helloxx/hello++1.c
|
||||
// apps/examples/elf/tests/helloxx/hello++1.cxx
|
||||
//
|
||||
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/elf/tests/helloxx/hello++2.c
|
||||
// apps/examples/elf/tests/helloxx/hello++2.cxx
|
||||
//
|
||||
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/elf/tests/helloxx/hello++3.c
|
||||
// apps/examples/elf/tests/helloxx/hello++3.cxx
|
||||
//
|
||||
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/elf/tests/helloxx/hello++4.c
|
||||
// apps/examples/elf/tests/helloxx/hello++4.cxx
|
||||
//
|
||||
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/elf/tests/helloxx/hello++5.c
|
||||
// apps/examples/elf/tests/helloxx/hello++5.cxx
|
||||
//
|
||||
// Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -70,7 +70,7 @@ LIBSTDC_STUBS_LIB = $(LIBSTDC_STUBS_DIR)/liblibxx.a
|
||||
|
||||
all: $(BIN1) $(BIN2) $(BIN3) # $(BIN4)
|
||||
|
||||
$(R1CXXOBJS): %.o: %.cpp
|
||||
$(R1CXXOBJS): %.o: %.cxx
|
||||
@echo "CC: $<"
|
||||
$(Q) $(CXX) -c $(CXXPICFLAGS) $< -o $@
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/nxflat/tests/hello++/hello++1.c
|
||||
// apps/examples/nxflat/tests/hello++/hello++1.cxx
|
||||
//
|
||||
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/nxflat/tests/hello++/hello++2.c
|
||||
// apps/examples/nxflat/tests/hello++/hello++2.cxx
|
||||
//
|
||||
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/nxflat/tests/hello++/hello++3.c
|
||||
// apps/examples/nxflat/tests/hello++/hello++3.cxx
|
||||
//
|
||||
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// examples/nxflat/tests/hello++/hello++4.c
|
||||
// apps/examples/nxflat/tests/hello++/hello++4.cxx
|
||||
//
|
||||
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -25,8 +25,7 @@ PRIORITY = $(CONFIG_TESTING_IRTEST_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_IRTEST_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_IRTEST)
|
||||
|
||||
CXXEXT = .cpp
|
||||
MAINSRC = main.cpp
|
||||
CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.cpp))
|
||||
MAINSRC = main.cxx
|
||||
CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.cxx))
|
||||
|
||||
include $(APPDIR)/Application.mk
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* testing/irtest/cmd.cpp
|
||||
* apps/testing/irtest/cmd.cxx
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* testing/irtest/enum.cpp
|
||||
* apps/testing/irtest/enum.cxx
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* testing/irtest/main.cpp
|
||||
* apps/testing/irtest/main.cxx
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
Loading…
x
Reference in New Issue
Block a user