I think the problem was that the platform Makefile must be included after the APPS Makefiles, so they needed to be separated.