<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Minimal Makefile</title>
		<link>http://forums.leaflabs.com/topic.php?id=2136</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:13 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=2136" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Minimal Makefile"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2136#post-11876</link>
			<pubDate>Fri, 20 Jul 2012 17:19:19 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11876@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
I don't want a good part of my processor/memory busy without me knowing.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Then don't call init(), or just replicate the pieces you want.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Minimal Makefile"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2136#post-11746</link>
			<pubDate>Sun, 15 Jul 2012 10:54:12 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">11746@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Read through all of the documentation, and you'll be aware of it.&#60;/p&#62;
&#60;p&#62;libmaple and wirish is no different to the LeafLabs boards as Wiring and the Arduino stuff is to Arduino. Both platforms have timers used for millis, etc. It's nothing unknown.&#60;/p&#62;
&#60;p&#62;If you're going to avr-libc to libmaple, and have no previous experience with Arduino then maybe some of the things libmaple does by default will come as a surprise.. But here are pretty good &#60;a href=&#34;http://leaflabs.com/docs/&#34;&#62;docs&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mh555 on "Minimal Makefile"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2136#post-11742</link>
			<pubDate>Sun, 15 Jul 2012 01:01:31 +0000</pubDate>
			<dc:creator>mh555</dc:creator>
			<guid isPermaLink="false">11742@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks, I already found that. If I want to remove libmaple as well, I first need a add an &#34;mkdir build&#34; in the Makefile. And after that, I get an &#34;undefined symbol `_start'&#34; error from the linker that I cannot resolve.&#60;/p&#62;
&#60;p&#62;Could you help me on that? Or suggest another Maple-compatible toolchain?&#60;/p&#62;
&#60;p&#62;As to the question why I started with libmaple, you have to know that my expectation of what a device library should be, is heavily influenced by avr-libc. Take interrupts, for example. avr-libc gives me easy macros and a well-written documentation on how to create my own interrupt handlers. libmaple, on the other side, &#34;secretly&#34; implements a few interrupt handlers just in case somebody might need a millis() function. I am happy to cherry-pick some parts of libmaple, but I don't want a good part of my processor/memory busy without me knowing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Minimal Makefile"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2136#post-11738</link>
			<pubDate>Sat, 14 Jul 2012 19:58:22 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">11738@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;If you open up the Makefile, you'll see this section:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;# Official libraries:
LIBMAPLE_MODULES += $(SRCROOT)/libraries/Servo
LIBMAPLE_MODULES += $(SRCROOT)/libraries/LiquidCrystal
LIBMAPLE_MODULES += $(SRCROOT)/libraries/Wire
# Experimental libraries:
LIBMAPLE_MODULES += $(SRCROOT)/libraries/FreeRTOS&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This includes some of the libraries, which you probably don't need. You can comment them out, by placing a # in front of each line you don't want included. For example, to not compile the FreeRTOS library:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;# Official libraries:
LIBMAPLE_MODULES += $(SRCROOT)/libraries/Servo
LIBMAPLE_MODULES += $(SRCROOT)/libraries/LiquidCrystal
LIBMAPLE_MODULES += $(SRCROOT)/libraries/Wire
# Experimental libraries:
#LIBMAPLE_MODULES += $(SRCROOT)/libraries/FreeRTOS&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Right above that there's also:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;LIBMAPLE_MODULES += $(SRCROOT)/wirish&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which includes all of the C++ wirish support. You can elect to not include it if you only plan to use libmaple.&#60;/p&#62;
&#60;p&#62;That's about it... You can remove libmaple if you want, but then why are you using libmaple to begin with?&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mh555 on "Minimal Makefile"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2136#post-11737</link>
			<pubDate>Sat, 14 Jul 2012 15:23:18 +0000</pubDate>
			<dc:creator>mh555</dc:creator>
			<guid isPermaLink="false">11737@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;When it comes to microcontrollers, I am a kind of &#34;control freak&#34;. I don't like hundreds of things working simultaneously without me knowing. I was horrified to see how much gets compiled for a simple blinking of a LED, resulting in a codesize of more than 14 kB!&#60;/p&#62;
&#60;p&#62;I want to start with the bare metal and then add a few things, but only those that I need and understand.&#60;/p&#62;
&#60;p&#62;Unfortunately, I have almost no experiences with setting up toolchains, so I was not successful with modifying the supplied Makefile to get rid of all libmaple and wiring and still keep the linker happy.&#60;/p&#62;
&#60;p&#62;Could anyone help me here with a minimal Makefile?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
