From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <40C42A0D.5070501@domain.hid> Date: Mon, 07 Jun 2004 10:40:45 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 Subject: Re: [Adeos-main] Re: Patch/Code maintanance References: <20040604155437.6D41AC109F@atlas.denx.de> In-Reply-To: <20040604155437.6D41AC109F@atlas.denx.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: adeos-main-admin@domain.hid Errors-To: adeos-main-admin@domain.hid List-Help: List-Post: List-Subscribe: , List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: To: Wolfgang Denk Cc: rpm@xenomai.org, adeos-main On 06/04/2004 05:54 PM Wolfgang Denk wrote: > Hi Wolfgang, > > in message <40C03997.5040805@domain.hid> 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. Of course. Thanks for the hint. Wolfgang.