Re: [cc65] Building with custom CC and CFLAGS

From: Per Olofsson <magervalp1gmail.com>
Date: 2009-09-10 22:32:05
Currently the gcc.mak files contain this:

CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON) -DCC65_INC=$(CC65_INC)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON) -D$(SPAWN)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON) -DCC65_LIB=$(CC65_LIB)
CFLAGS = -O4 -Wall -std=c89
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON) -I$(SIM65) -fpic
CFLAGS = -O4 -Wall -W -std=c89 -I$(COMMON)

This can be replaced by:

CFLAGS = -O4 -Wall -W -std=c89

in the top level makefile, and:

CFLAGS += -I$(COMMON)
CFLAGS += -I$(COMMON) -DCC65_INC=$(CC65_INC)
CFLAGS += -I$(COMMON) -D$(SPAWN)
CFLAGS += -I$(COMMON) -DCC65_LIB=$(CC65_LIB)
CFLAGS += -I$(COMMON) -I$(SIM65) -fpic

in the "child" makefiles. CC does not need to be set at all, as the
system default is probably what you want. If you want to use an
alternate compiler, set CC yourself.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Sep 10 22:32:15 2009

This archive was generated by hypermail 2.1.8 : 2009-09-10 22:32:17 CEST