Hi Wolfgang,

in message <[EMAIL PROTECTED]> you wrote:
> 
> -     gcc $(CFLAGS) -o $@ -c $<
> +     $(CROSS_COMPILE)gcc $(CFLAGS) -o $@ -c $<
...
> -     gcc $(CFLAGS) -o $@ -c $<
> +     $(CROSS_COMPILE)gcc $(CFLAGS) -o $@ -c $<
...
> -     gcc $(CFLAGS) -o $@ -c $<
> +     $(CROSS_COMPILE)gcc $(CFLAGS) -o $@ -c $<
...
> -     gcc $(CFLAGS) -o $@ -c $<
> +     $(CROSS_COMPILE)gcc $(CFLAGS) -o $@ -c $<

Why don't you simply define

        CC = $(CROSS_COMPILE)gcc

_once_ at the beginning of the Makefile, and  then  use  $(CC)  only?
This is IMHO much easier to maintain.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
If you can't beat it or corrupt it, you pretend it was your  idea  in
the first place.                 - Terry Pratchett, _Guards! Guards!_

Reply via email to