Author Topic: Makefile Questions  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Makefile Questions
« 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...

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
Re: Makefile Questions
« Reply #1 on: January 08, 2009, 12:08:56 AM »
Your makefile has to reference all the files included in your project

Offline yerbie

  • Full Member
  • ***
  • Posts: 62
  • Helpful? 3
Re: Makefile Questions
« Reply #2 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.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: Makefile Questions
« Reply #3 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?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • Helpful? 169
    • Society of Robots

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1839 Views
Last post August 07, 2007, 11:02:13 AM
by Admin
5 Replies
3238 Views
Last post March 15, 2008, 06:59:41 PM
by javafiend
1 Replies
974 Views
Last post May 13, 2009, 03:42:30 PM
by Admin
5 Replies
1243 Views
Last post June 30, 2009, 04:42:00 PM
by Webbot


Get Your Ad Here

data_list