Author Topic: To makefile or not to makefile  (Read 1149 times)

0 Members and 1 Guest are viewing this topic.

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
To makefile or not to makefile
« on: May 12, 2009, 07:06:37 PM »
This is a two part question.

First, I have been able to compile my applications using AVR Studio in C with no problems so far, but it has always been with the make file provided with the Axon source code.  Is it possible to compile and create the hex file without using the make file?  If so, can anyone direct me to a tutorial or forum thread that explains it as I cannot find anything.

This leads into my second question.  I have started to explore using alternative IDEs for developing that provide features like intellisense.  I found a thread in AVR Freaks that describes how to set Visual C++ Express up to compile the code.  The code starts to compile but complains about the make file, which is the same make file that works in AVR Studio.  When i go to the application directory and run make from command line, I get the same error i get from Visual Studio.  My question is this: aren't I supposed to be able to just do a make or make all in the program directory with the make file?  Let me know if you need any further details, like the command line output.

Thank you,

Mark Brown
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: To makefile or not to makefile
« Reply #1 on: May 13, 2009, 03:42:30 PM »
Quote
First, I have been able to compile my applications using AVR Studio in C with no problems so far, but it has always been with the make file provided with the Axon source code.  Is it possible to compile and create the hex file without using the make file?  If so, can anyone direct me to a tutorial or forum thread that explains it as I cannot find anything.
I see no reason in fixing what ain't broken :P
Any reason to not use a makefile? The advantage of it is that it allows you to customize the build. Which brings me to . . .

Quote
I found a thread in AVR Freaks that describes how to set Visual C++ Express up to compile the code.  The code starts to compile but complains about the make file, which is the same make file that works in AVR Studio.  When i go to the application directory and run make from command line, I get the same error i get from Visual Studio.  My question is this: aren't I supposed to be able to just do a make or make all in the program directory with the make file?  Let me know if you need any further details, like the command line output.
I'm not familiar with it, but I'd assume the commands to make something compile in C++ Express won't be the same for AVR Studio. Try to find makefiles for it to compare and see if anything makes sense.

Sorry for not being of much help . . .

 


Get Your Ad Here