<?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: How do you use the Static libmaple Library?</title>
		<link>http://forums.leaflabs.com/topic.php?id=11576</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:06:01 +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=11576" rel="self" type="application/rss+xml" />

		<item>
			<title>bnewbold on "How do you use the Static libmaple Library?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11576#post-26010</link>
			<pubDate>Tue, 14 May 2013 14:02:24 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">26010@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar doesn't like them (&#38;lt;/troll&#38;gt;) but you could also try using git submodules to include (version controlled) library dependencies:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://git-scm.com/book/en/Git-Tools-Submodules&#34; rel=&#34;nofollow&#34;&#62;http://git-scm.com/book/en/Git-Tools-Submodules&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "How do you use the Static libmaple Library?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11576#post-26009</link>
			<pubDate>Tue, 14 May 2013 10:42:20 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">26009@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The example libmaple project is exactly what I was hoping to get! Thanks.&#60;/p&#62;
&#60;p&#62;I love the fact that it supports libraries that are compatible with libraries in the libmaple libraries folder, and how the entire project itself is compiled as a library. Very nifty.&#60;/p&#62;
&#60;p&#62;I'll be sure to give it a try when I get home.&#60;/p&#62;
&#60;p&#62;If you want to create your own customer directory of libraries, you can simply modify the Makefile:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;# Custom modules listed here.
USER_MODULES := $(BASEDIR)/libfoo&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and replace $(BASEDIR) to some other environment variable that points to your custom directory?&#60;/p&#62;
&#60;p&#62;I've gotten to the point where I have a handful of libraries that I want to include in all of my Maple projects, without having to copy+paste them between folders and having out-of-date versions.&#60;/p&#62;
&#60;p&#62;This example will really help a lot.&#60;/p&#62;
&#60;p&#62;Thanks!!&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "How do you use the Static libmaple Library?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11576#post-25962</link>
			<pubDate>Mon, 13 May 2013 17:20:54 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">25962@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;No examples (I think using &#60;a href=&#34;https://github.com/mbolivar/example-libmaple-project&#34; rel=&#34;nofollow&#34;&#62;https://github.com/mbolivar/example-libmaple-project&#60;/a&#62; is easier), but you might try:&#60;/p&#62;
&#60;p&#62;1. Running &#60;code&#62;$ make library&#60;/code&#62; and linking against the generated build/libmaple.a&#60;br /&#62;
2. Adding the following target to the libmaple Makefile:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo-flags:
	@echo &#38;quot;libmaple proper includes: &#38;quot; $(LIBMAPLE_INCLUDES)
	@echo &#38;quot;wirish includes: &#38;quot; $(WIRISH_INCLUDES)
	@echo &#38;quot;cflags: &#38;quot; $(CFLAGS)
	@echo &#38;quot;cxxflags: &#38;quot; $(CXXFLAGS)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which on my system gives:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;libmaple proper includes:  -I/home/mbolivar/leaf/libmaple/libmaple/include -I/home/mbolivar/leaf/libmaple/libmaple/stm32f1/include
wirish includes:  -I/home/mbolivar/leaf/libmaple/wirish/include -I/home/mbolivar/leaf/libmaple/wirish/boards/maple/include
cflags:  -Os -g3 -gdwarf-2 -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -mcpu=cortex-m3 -march=armv7-m -mthumb -DBOARD_maple -DMCU_STM32F103RB -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=5 -DVECT_TAB_FLASH -I/home/mbolivar/leaf/libmaple/libmaple/include/libmaple -I/home/mbolivar/leaf/libmaple/wirish/include/wirish -I/home/mbolivar/leaf/libmaple/libraries
cxxflags:  -fno-rtti -fno-exceptions -Wall -mcpu=cortex-m3 -march=armv7-m -mthumb -DBOARD_maple -DMCU_STM32F103RB -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=5 -DVECT_TAB_FLASH -I/home/mbolivar/leaf/libmaple/libmaple/include/libmaple -I/home/mbolivar/leaf/libmaple/wirish/include/wirish -I/home/mbolivar/leaf/libmaple/libraries&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You may try adding those to your project build's flags. Note that I haven't tested the above, but something like it will probably work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "How do you use the Static libmaple Library?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11576#post-25916</link>
			<pubDate>Sun, 12 May 2013 22:49:13 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">25916@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Howdy,&#60;/p&#62;
&#60;p&#62;Some time ago a &#60;code&#62;library&#60;/code&#62; command was added to &#60;code&#62;make&#60;/code&#62; to create a &#60;code&#62;libmaple.a&#60;/code&#62; static library for use in &#34;larger&#34; projects with many source files.&#60;/p&#62;
&#60;p&#62;How exactly does one set that up after running &#60;code&#62;make library&#60;/code&#62; and compiling the library?&#60;/p&#62;
&#60;p&#62;Is there an example Makefile, or a simple example project that uses it?&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
