openFrameworks-RaspberryPi/openFrameworks — pull request #55 by arturoc (2012-11-28 17:37:54+00:00)
Title: refactor @bakercp Makefiles to simplify and some fixes

don't merge yet, only for review and so we can discuss the structure better

mainly i've joined all the config files in config.make since i found it quite hard to follow the logic with so many files. The naming was also confusing since core files were also used by projects.

Now both the core and projects makefile include config.make for configuration.

Then there's specific rules for each platform as before and rules for compiling that can be overridden by each specific platform optionally:

OF/project/Makefile -> core entry point
OF/project/makefileCommon/config.make -> common core/projects config
OF/project/makefileCommon/compile.core.make
OF/project/makefileCommon/compile.project.make
OF/project/makefileCommon/Makefile.examples -> projects entry point

OF/project/platform/config.variant.make -> same as before, removed redundancy in name
OF/project/platform/compile.core.make -> optional specific compiling for this platform
OF/project/platform/compile.project.make -> optional specific compiling for this platform

project/config.make
project/Makefile
project/addons.make

I've also renamed the makefiles to have a capital M since that's more standard, we actually changed that some versions ago.

for projects i have renamed the config.make and simplified the Makefile so they are compatible with the previous system

I also want to move things that are not common from config.make to their respective makefile, right now (and with the current system in develop-raspberrypi) the projects makefile is creating the list of core sources and the core makefile is creating the libraries sources, for example, which is not needed

i'm also having trouble with some addons, seems to be related with the order in which system and core/project/addons libraries are included when linking