Fix make generated_assembly
Before, .ino and .pde files would be converted to .cpp files and there
is a rule to convert those .cpp files to .s files for make
generated_assembly. However, since 1f043bb
(Compile .ino and .pde files
directly) these intermediate .cpp files are no longer generated,
breaking the rule to generate .s files.
This fixes this by also generating .s files from .ino and .pde files
directly.
Closes #76
This commit is contained in:
parent
a289fd7132
commit
09840089fd
1 changed files with 5 additions and 2 deletions
|
@ -772,8 +772,11 @@ $(OBJDIR)/%.o: %.ino $(COMMON_DEPS) | $(OBJDIR)
|
|||
$(CXX) -x c++ -include Arduino.h -MMD -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||
|
||||
# generated assembly
|
||||
$(OBJDIR)/%.s: $(OBJDIR)/%.cpp $(COMMON_DEPS) | $(OBJDIR)
|
||||
$(CXX) -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||
$(OBJDIR)/%.s: %.pde $(COMMON_DEPS) | $(OBJDIR)
|
||||
$(CXX) -x c++ -include $(ARDUINO_HEADER) -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(OBJDIR)/%.s: %.ino $(COMMON_DEPS) | $(OBJDIR)
|
||||
$(CXX) -x c++ -include Arduino.h -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||
|
||||
#$(OBJDIR)/%.lst: $(OBJDIR)/%.s
|
||||
# $(AS) -mmcu=$(MCU) -alhnd $< > $@
|
||||
|
|
Loading…
Reference in a new issue