oliverschmidt/cc65 — pull request #66 by groessler (2013-12-18 21:02:17+00:00)
Title: New src/Makefile variables: USER_CFLAGS and PROGEXT

USER_CFLAGS can be used to specify additional compiler switches on the "make" command line. I tried to compile the Windows version with the Mingw compiler, but it gives warnings when it encounters "%m" printf formats.
One can disable the warnings now e.g. with "make USER_CFLAGS=-Wno-format".

When I tried to cross-compile the Windows version on Linux, I've noticed that the exe files don't have an ".exe" extension. You can add an extension with PROGEXT.
For example, to compile Windows version on Linux, type

make CC="i686-w64-mingw32-gcc" AR=i686-w64-mingw32-ar USER_CFLAGS=-Wno-format PROGEXT=.exe