Society of Robots - Robot Forum

Software => Software => Topic started by: Jdog on January 07, 2009, 08:42:46 PM

Title: Makefile Questions
Post by: Jdog on January 07, 2009, 08:42:46 PM
Can I use the same makefile for every program I compile as long as it's for the same mcu?
The reason I ask this is because on the Axon source code page, the most recent version of the photovore code does not have a makefile, so I tried to use this code, but with the makefile from the older version, and I got 7 errors.

These were the errors:
Axon.o: In function `reset_timer_1':
SoR_Utils.h:174: undefined reference to `timer1ClearOverflowCount'
Axon.o: In function `reset_timer_3':
SoR_Utils.h:186: undefined reference to `timer3ClearOverflowCount'
Axon.o: In function `reset_timer_4':
SoR_Utils.h:192: undefined reference to `timer4ClearOverflowCount'
Axon.o: In function `reset_timer_5':
SoR_Utils.h:198: undefined reference to `timer5ClearOverflowCount'
Axon.o: In function `main':
Axon.c:51: undefined reference to `timer3Init'
Axon.c:52: undefined reference to `timer4Init'
Axon.c:53: undefined reference to `timer5Init'
make: *** [Axon.elf] Error 1
Build failed with 7 errors and 0 warnings...
Title: Re: Makefile Questions
Post by: pomprocker on January 08, 2009, 12:08:56 AM
Your makefile has to reference all the files included in your project
Title: Re: Makefile Questions
Post by: yerbie on January 08, 2009, 10:24:18 AM
i think you need to change your makefile SRCS to use timer640.c instead of timer8x.c.
Title: Re: Makefile Questions
Post by: Jdog on January 08, 2009, 07:05:42 PM
Your makefile has to reference all the files included in your project
How do I do that?
Title: Re: Makefile Questions
Post by: Admin on January 09, 2009, 04:27:25 AM
my bad . . .

http://www.societyofrobots.com/robotforum/index.php?topic=6318.msg48423#msg48423