Re: [cc65] Building with custom CC and CFLAGS

From: Greg King <greg.king41verizon.net>
Date: 2009-09-30 11:38:12
From: "Per Olofsson"; on Monday, Sept. 28, 2009; at 09:54 AM -0400
> On Mon, Sep 28, 2009 at 2:17 PM, Greg King wrote:
> > You just will have to settle for two commands:
> >
> > make -f make/gcc.mak bins docs CC=clang CFLAGS=-O4
>
> That doesn't work, because gcc.mak, itself, calls make,
> without CC and CFLAGS.

Try it again.  I "tore down" a fence that used to block those assignments.

>
> The makefiles really should be redone, so that we mortals just can
> type 'make' in the root, and build; and, Uz can do his makes down in the
> source tree, to do his daily work.

The simplest first step is to move "cc65/make/gcc.mak" to "cc65/Makefile".
Then, you can type:

make bins docs CC=clang CFLAGS=-O4
make libs

Hmm, I just had a thought:  maybe, I can ask Gnu make about the origin of
CC.  When it does not come from the command line, the make-file can run the
"libs" rule.  I'll check the docs...

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Sep 30 11:39:03 2009

This archive was generated by hypermail 2.1.8 : 2009-09-30 11:39:05 CEST