dev.ed.am
Arduino Makefile
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Arduino Makefile / Closed Bug report #8 Picking up, compiling and linking *.S files
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
This is probably an extension of this feature request, http://dev.ed.am/arduino-mk/issues/6, however when I try and use a released library, AVRLib, https://github.com/DavyLandman/AESLib, it does not successfully compile using the Makefile as there are a number of assembly files, in this case ending with the extension of *.S. The ardunio GUI successfully pickes up and compiles these files so I was able to figure out what was missing.

I have edited my local make file to pick up *.S as source files and to compile them the same as *.c files and it all works

Thanks for releasing this code, I much perfer working with arduinos using the command line than a clunky GUI

Here is the diff of the changes I made:

244,246c244,246
< $(wildcard *.c *.cc *.cpp *.C) \
< $(wildcard $(addprefix util/, *.c *.cc *.cpp *.C)) \
< $(wildcard $(addprefix utility/, *.c *.cc *.cpp *.C))
---
> $(wildcard *.c *.cc *.cpp *.C *.S) \
> $(wildcard $(addprefix util/, *.c *.cc *.cpp *.C *.S)) \
> $(wildcard $(addprefix utility/, *.c *.cc *.cpp *.C *.S))
276c276
< $(patsubst %, .lib/%.o, $(wildcard $(addprefix $(dir)/, *.c *.cpp))))
---
> $(patsubst %, .lib/%.o, $(wildcard $(addprefix $(dir)/, *.c *.cpp *.S))))
402a403,406
> %.o: %.S
> mkdir -p .dep/$(dir $<)
> $(COMPILE.c) $(CPPDEPFLAGS) -o $@ $<
>
428a433,436
> mkdir -p $(dir $@)
> $(COMPILE.c) -o $@ $<
>
> .lib/%.S.o: %.S
Steps to reproduce this issue
Download AESLib and follow the instructions there for incorporating the code triggers this problem
Todos (0 / 0)
Issue created



Don't worry about URLs - they will automatically be transformed to links.
See more formatting tips in MarkdownFormatting.

To specify bold text put text between two stars, and for underlines put text between two underscores.
See more formatting tips in MarkdownFormatting.

The Bug Genie will automatically add new lines when you add two new lines in your text, whereas one new line is used for formatting as you type. To force a new line, use the <br> tag: "There is a new<br>line here".
See more formatting tips in WikiFormatting.

Cancel
Fixed in r88

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif