[hatari-devel] CC/HOSTCC

Eero Tamminen oak at helsinkinet.fi
Tue Mar 9 21:52:02 CET 2010


Hi,

Nicolas:

http://hg.berlios.de/repos/hatari/rev/c784976559db
-HOSTCC = $(CC)
+HOSTCC = gcc


However, in Makefile-default.cnf this is done like this:
CC = gcc
HOSTCC ?= $(CC)

This way it's still overridable from command line.


Btw. I don't understand this change/comment from Thomas:
	http://hg.berlios.de/repos/hatari/rev/58a6b35826e5

Of cource CC is predefined by Make.  The point of using "?=" is that then
it can be overridden by user (as still document at the top of Makefile)
with:
	CC=my-own-cc make
Or:
	export CC=my-own-cc
	make
?


	- Eero



More information about the hatari-devel mailing list