<?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: Makefile help</title>
		<link>http://forums.leaflabs.com/topic.php?id=74370</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:17:53 +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=74370" rel="self" type="application/rss+xml" />

		<item>
			<title>mallyj on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105516</link>
			<pubDate>Wed, 17 Sep 2014 23:02:32 +0000</pubDate>
			<dc:creator>mallyj</dc:creator>
			<guid isPermaLink="false">105516@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;okay found the solution. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://en.wikipedia.org/wiki/Nm_(Unix)&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Nm_(Unix)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;needs to be C not C++. because in C++ object files the function names are all weird. well, actually it seems like it needs to be C++ for libmaple and just has to be compiled as C&#60;br /&#62;
with some:&#60;/p&#62;
&#60;p&#62;#ifdef __cplusplus&#60;br /&#62;
extern &#34;C&#34;&#60;br /&#62;
#endif&#60;/p&#62;
&#60;p&#62;as shown on the wikipedia page&#60;br /&#62;
it works!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mallyj on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105515</link>
			<pubDate>Tue, 16 Sep 2014 15:30:02 +0000</pubDate>
			<dc:creator>mallyj</dc:creator>
			<guid isPermaLink="false">105515@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Nevermind, it it looks as though i needed a capital s instead of a lower case s as the source file's extension. i dunno why that made the difference but what ever.&#60;/p&#62;
&#60;p&#62;now its just that the linker doesn't recognize the function i'm calling in C from ASM.&#60;br /&#62;
I got them to link up without error using the make file at the top of this page. &#60;/p&#62;
&#60;p&#62;anyone had experience with that?? i'd love to hear about it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mallyj on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105514</link>
			<pubDate>Tue, 16 Sep 2014 15:21:18 +0000</pubDate>
			<dc:creator>mallyj</dc:creator>
			<guid isPermaLink="false">105514@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;again, thank you, everything is almost running smoothly. But I keep getting the error: &#60;/p&#62;
&#60;p&#62;make[1]: *** No rule to make target &#60;code&#62;build//Users/malcolm/goodjob/FFTCM3.o&#38;#39;, needed by&#60;/code&#62;build/maple.elf'.  Stop.&#60;br /&#62;
make: *** [sketch] Error 2&#60;/p&#62;
&#60;p&#62;what could that mean? any suggestions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mallyj on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105512</link>
			<pubDate>Mon, 15 Sep 2014 06:59:55 +0000</pubDate>
			<dc:creator>mallyj</dc:creator>
			<guid isPermaLink="false">105512@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Amazing! Thank you, ventosus.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105511</link>
			<pubDate>Mon, 15 Sep 2014 02:57:52 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">105511@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;There is a ready to use template for libmaple projects where you can just fill in your C, C++, ASM sources and it'll take care of everything else.&#60;/p&#62;
&#60;p&#62;In case you have missed it. Here the link.&#60;/p&#62;
&#60;p&#62;&#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;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mallyj on "Makefile help"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74370#post-105510</link>
			<pubDate>Sun, 14 Sep 2014 19:48:29 +0000</pubDate>
			<dc:creator>mallyj</dc:creator>
			<guid isPermaLink="false">105510@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I've only recently began familiarizing myself with UNIX, GCC and Make.&#60;br /&#62;
I've have learned a wonderful amount l since I started but feel at the moment that I am pretty hung up.&#60;/p&#62;
&#60;p&#62;My immediate goals right now are:&#60;/p&#62;
&#60;p&#62;-Link an object file from an asm source with an object file from a cpp source with out error&#60;br /&#62;
-Upload to maple&#60;/p&#62;
&#60;p&#62;I've been making very small steps toward the first item's completion but am all out of ideas. my calls in main.cpp for delay() and SerialUSB.println() produce errors of the kind&#60;/p&#62;
&#60;p&#62;main.cpp: In function 'void loop()':&#60;br /&#62;
main.cpp:27: error: 'SerialUSB' was not declared in this scope&#60;/p&#62;
&#60;p&#62;So i assume the i am not properly linking against libmaple.a as its been said i should do. or that i haven't properly modified the include path. maybe i'm misunderstanding what is meant by &#34; your include path should contain the directories ~/libmaple/libmaple and ~/libmaple/wirish/&#34;. Someone please set me straight.  I should note that when i comment out the calls for SerialUSB.println() and delay() make does produce all the target files. Whether or not they are produced correctly, I don't know. Also, the actual program i will finally upload to Maple will be alot more dependent on libmaple than just using SerialUSB.println() and delay(). I'll be using the register map for ADC and DMA stuff. so i cant just replace them with a more standard implementation.&#60;/p&#62;
&#60;p&#62;this is the Makefile:&#60;/p&#62;
&#60;p&#62;###############################################################&#60;br /&#62;
OBJ = main.o asm.o&#60;br /&#62;
INC = -I~/libmaple/libmaple -I~/libmaple/wirish -I~/libmaple/wirish/wirish.h&#60;br /&#62;
CC = ~/libmaple/arm/bin/arm-none-eabi-gcc&#60;/p&#62;
&#60;p&#62;program : $(OBJ)&#60;br /&#62;
	$(CC) -Wall -L ~/libmaple/build/ -l maple \&#60;br /&#62;
	-o program.elf&#60;/p&#62;
&#60;p&#62;main.o : main.cpp&#60;br /&#62;
	$(CC) -Wall $(INC) -c main.cpp &#60;/p&#62;
&#60;p&#62;asm.o : asm.s&#60;br /&#62;
	$(CC) -Wall $(INC) -x assembler-with-cpp asm.s&#60;br /&#62;
###############################################################&#60;/p&#62;
&#60;p&#62;Yes, it's true, i don't know what i'm doing. but I am desperately trying to figure that out. Any guidance is much appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
