Jump to content

how to use makefile?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
simplytuff

simplytuff

    Newbie

  • Members
  • Pip
  • 3 posts
I am working on a project which includes programming MSP430-449STK2 development board by Olimex,


i am totally new to programming, i need to know how to make binary file using the header files which came with the program?

the project instructions say

"The software is written in C using the MSPGCC (mspgcc - GCC toolchain for MSP430), a port of the GCC to the MSP platform. The JTAG debugger is from Olimex (MSP430-JTAG OLIMEX Ltd. - Electronic Design and PCB sub-contract assembly OEM/ODM service) and is used to download the firmware into the MSP430.

The firmware comes with a makefile – unzip the sources to any directory and run make"


Command Prompt doesn't seem to recognize any of the commands, i have tried several !

below is a screen shot from instructions, when i try "make" nothing happens

[IMG]http://forum.allaboutcircuits.com/cache.php?url=http://farm5.static.flickr.com/4116/4931984210_5e4f78f1b4_b.jpg[/IMG]

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
You need to download "make" with either Cygwin or MingGW (Cygwin has GCC so I'd recommend that), set make.exe into your PATH enviornment variable and you should be good to go.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
simplytuff

simplytuff

    Newbie

  • Members
  • Pip
  • 3 posts
thnx for the reply, it would be more helpful if you can further explain it, as i am new to this stuff so i dont know these things i.e ad "make", "Cygwin", "MingGW", "GCC" "make.exe" or "PATH enviornment variable"

#4
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
Cygwin is an environment that simulates Linux. It includes GCC, which is a compiler. MinGW is similar to Cygwin, but when you build a program with Cygwin, it can only be executed under the Cygwin environment. When you compile with MinGW, it can be run from Windows. Make is simply a program that reads makefiles, which contain instructions on how to build everything in the project, and follows those instructions.
Latinamne loqueris?

#5
simplytuff

simplytuff

    Newbie

  • Members
  • Pip
  • 3 posts
Finally done it

Thnx guys for your help,

I needed to change the Path to Compiler's bin directory and then it worked




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users