hi Elliot,

> I am now looking at using avra under linux. Avra doesn't compile for me, 
> so I am trying the static version. As recommended, I have downloaded 
> amforth by svn, ... Accordingly, it appears that the makefile lines
> 
> DIR_ATMEL=../../Atmel
> 
> and
> 
> AVRA=avra -I $(DIR_ATMEL)/Appnotes2
> 
> need to be changed.

Absolutly. They contain a few files from the Atmel Studio (I copied
them 1:1 from a windows box). The location may be different for others

Mine is as follows:
--------------
mt@ayla:~/avr/forth/amforth$ ls
appl  Atmel  core  doc  lib  misc  test  tools
mt@ayla:~/avr/forth/amforth$ ls Atmel
Appnotes  Appnotes2  avrasm2.exe  docs  Help  Partdescriptionfiles  STK500
mt@ayla:~/avr/forth/amforth$
--------------

other people may place the Atmel files at /usr/share/Atmel or so.

> I think  the first should end "core", and the other 
> should end "devices"; and thus that the early MCU line should read 
> MCU=devices/<device name>/device.inc.

not really. The final command line is composed from
many variables in the Makefile. among them is

AMFORTH=../../core
INCLUDE=-I $(AMFORTH) -I $(AMFORTH)/devices/$(MCU)

the result is that 3 different include directories
are used: one with the Atmel files, one with the
core/ words and finally the core/device specific
things. The fourth include directory is . (current
working directory) which may contain a directory
words/ that is searched first for include files.
That way you can "overwrite" existing words
with your own ones. A feature I use alot for
testing new implementations/variants.

It's difficult, yes. But it works for me and I did
not found a better solution (yet).

Matthias

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Amforth-devel mailing list
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to