Makefile for a simple program
"Bob Brusa" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Organization | private |
| Message-ID | <op.t52anjf18qukij@localhost> |
Hi
Hm, it seems simple, but it is not. I have tried a lot and get errors only.
I use a COBRA5282-board (with dBUG ready) and I want to compile, link,
download and execute the simple helloworld-program shown below:
----------------------------------
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
-----------------------------------
I use the toolchain installed by executing the script
m68k-uclinux-tools-20061214.sh (downloaded from
http://www.uclinux.org/pub/uClinux/m68k-elf-tools/)
My present understanding is, that the makefile should use a prefix of
m68k-uclinux and hence invoke gcc as m68k-uclinux-gcc. But there are
options (and more) required and I do not really see which ones. Does
anyone have a "proposal" how my makefile should look like?
Thank you and best regards
Bob
PS: Download to the board using tftp works fine, but the binaries I get
from my makefile do not work.
--
Bob Brusa [email protected]
Chapfwiesenstr. 14 ph: +4144 926 74 74
CH-8712 Stäfa fx: +4144 926 73 34
---
[email protected] Send a post to the list.
[email protected] Join the list.
[email protected] Join the list in digest mode.
[email protected] Leave the list.