Specifying a framework path for addons in OS X Makefiles

So I’m a huge fan of the makefiles. However, some of the addons I rely on are dependent on frameworks. My workaround to get rid of the linker errors when using these addons with makefiles has been:

  1. copy the framework into /Library/Frameworks
  2. add an addon_config.mk file to the addon directory if it doesn’t exist
  3. specify the framework in addon_config.mk using ADDON_FRAMEWORKS = SomeFramework

This is working but I’m wondering if it’s the right way to include project specific frameworks. I’ve tried adding a path into the project’s config.make using C_FLAGS = -F$(OF_ROOT)/path/to/framework -framework TheFramework but clang spits out some framework not found errors.

thanks in advance!