From 9a6b0ef75f2ca43fb495945dde5014ccae934c58 Mon Sep 17 00:00:00 2001 From: Simon John Date: Fri, 22 Aug 2014 17:57:30 +0200 Subject: [PATCH] Added *.cpp to extensions supported by "make generate_assembly" --- Arduino.mk | 5 +++-- HISTORY.md | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Arduino.mk b/Arduino.mk index ea5b798..c1981d0 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1092,8 +1092,9 @@ $(OBJDIR)/%.s: %.ino $(COMMON_DEPS) | $(OBJDIR) @$(MKDIR) $(dir $@) $(CXX) -x c++ -include $(ARDUINO_HEADER) -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@ -#$(OBJDIR)/%.lst: $(OBJDIR)/%.s -# $(AS) -$(MCU_FLAG_NAME)=$(MCU) -alhnd $< > $@ +$(OBJDIR)/%.s: %.cpp $(COMMON_DEPS) | $(OBJDIR) + @$(MKDIR) $(dir $@) + $(CXX) -x c++ -include $(ARDUINO_HEADER) -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@ # core files $(OBJDIR)/core/%.o: $(ARDUINO_CORE_PATH)/%.c $(COMMON_DEPS) | $(OBJDIR) diff --git a/HISTORY.md b/HISTORY.md index 0ab7e61..bef7176 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -17,6 +17,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it - Add: Allow "make clean" target to be extended (Issue #239). (https://github.com/sej7278) - Fix: Update "make show_boards" regex to work with the Due in 1.5. (https://github.com/sej7278) - Fix: Allow user libaries/sketches to have the same name as system libs. (Issue #244, #229). (https://github.com/sej7278) +- Tweak: Add cpp to extensions supported by "make generate_assembly". (https://github.com/sej7278) ### 1.3.4 (2014-07-12) - Tweak: Allow spaces in "Serial.begin (....)". (Issue #190) (https://github.com/pdav)