aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorstijn2020-10-08 16:19:26 +0200
committerDamien George2020-10-29 15:27:18 +1100
commitf1666419a8aaee846f7175ccdb8799ab9deea376 (patch)
treeed5aa9080c46c15ba34f76260f42fd4a17e78946 /ports
parent2b9f0586e7a37a673aa2c8ef298751c8d30b2667 (diff)
py/mkrules.mk: Add target for compiling C++ files.
Move the target from the ESP32 Makefile since that does what is needed already, but also include files from user C modules as is done for the C files.
Diffstat (limited to 'ports')
-rw-r--r--ports/esp32/Makefile16
1 files changed, 0 insertions, 16 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index be2825772..94374eb1c 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -781,22 +781,6 @@ $(BUILD)/application.elf: $(OBJ) $(LIB) $(BUILD)/esp32_out.ld $(BUILD)/esp32.pro
$(Q)$(LD) $(LDFLAGS) -o $@ $(APP_LD_ARGS)
$(Q)$(SIZE) $@
-define compile_cxx
-$(ECHO) "CXX $<"
-$(Q)$(CXX) $(CXXFLAGS) -c -MD -o $@ $<
-@# The following fixes the dependency file.
-@# See http://make.paulandlesley.org/autodep.html for details.
-@# Regex adjusted from the above to play better with Windows paths, etc.
-@$(CP) $(@:.o=.d) $(@:.o=.P); \
- $(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \
- -e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \
- $(RM) -f $(@:.o=.d)
-endef
-
-vpath %.cpp . $(TOP)
-$(BUILD)/%.o: %.cpp
- $(call compile_cxx)
-
################################################################################
# Declarations to build the bootloader