Subject: Re: Embedded development platform
To: Hubert Feyrer <hubert@feyrer.de>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-embed
Date: 08/05/2004 18:27:44
hubert@feyrer.de said:
> translation into a S19 file

objcopy should do it.
A very simple Makefile to do all this could look like:

CROSS=  # cross tool prefix

AS=     ${CROSS}as
LD=     ${CROSS}ld
OBJCOPY= ${CROSS}objcopy

LDOPTS= # eg. linker script

xxx.srec: xxx
        ${OBJCOPY} -O srec xxx $@

xxx: mist.o
        ${LD} ${LDOPTS} mist.o -o $@

.s.o:
        ${AS} $< -o $@

(use gcc instead of as if you want to use cpp)

best regards
Matthias