Re: [cc65] Building with custom CC and CFLAGS

From: Per Olofsson <>
Date: 2009-09-28 08:57:48
A little more testing revealed that the current scheme of CFLAGS= and
CFLAGS+= in the makefiles doesn't quite work, as the += is *also*
overridden. Fortunately there's a fairly simple fix:

CFLAGS  = -g -O2 -Wall -W -std=c89
override CFLAGS += -I$(COMMON)

With the override directive the += assignment works even when
specifying CFLAGS on the commandline.

I really like makefiles less and less... still no decent alternative though :/
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 28 08:57:57 2009

This archive was generated by hypermail 2.1.8 : 2009-09-28 08:57:59 CEST