I didn't become aware of this until recently, thought I would post it here: http://wiki.cc65.org/doku.php?id=cc65:project_setup
It's an "universal" Makefile for use with CC65 (+CA65) projects. Basically all you have to do is take that Makefile, drop it in a directory, make a directory called "src", add your sources in there (extension .s or .c) and invoke "make". The cool thing is that it automatically keeps track of dependencies, so if for example you .incbin "foo.chr" in "bar.s", whenever "foo.chr" changes, it'll automatically recompile "bar.s". This requires the dev version of CC65 however.
To adapt it to NES projects where we usually use a customized memory config, set TARGETS to "nes" and add "-t none -C foo.cfg" to LDFLAGS.
It's an "universal" Makefile for use with CC65 (+CA65) projects. Basically all you have to do is take that Makefile, drop it in a directory, make a directory called "src", add your sources in there (extension .s or .c) and invoke "make". The cool thing is that it automatically keeps track of dependencies, so if for example you .incbin "foo.chr" in "bar.s", whenever "foo.chr" changes, it'll automatically recompile "bar.s". This requires the dev version of CC65 however.
To adapt it to NES projects where we usually use a customized memory config, set TARGETS to "nes" and add "-t none -C foo.cfg" to LDFLAGS.