#include <stdio.h>
#include <stdint.h>

#if PROJECT == 1
#    include "project_1.h"
#else
#    error Unsupported project number in PROJECT macro. Valid values: 1
#endif

int main(int argc, char **argv)
{
    printf("Hello, world!\n");

#   if PROJECT == 1
    project_1_report();
#   endif

    return 0;
}

#include <stdio.h>
#include <stdint.h>

#if PROJECT == 0
#    // NOTE(bja, 2017-02): Building main with no project code.
#elif PROJECT == 1
#    include "project_1.h"
#else
#    error "Unsupported project number in PROJECT macro. Valid values: 0, 1"
#endif

int main(int argc, char **argv)
{
    printf("Hello, world!\n");

#   if PROJECT == 1
    project_1_report();
#   endif

    return 0;
}

Allow building executable without any project code.
Allow building executable without any project code.

Change the logic in main to allow building an executable without any project
code.

Testing: pass
  macOS:
    make clean; make test
    make clean; make project=0 test
    make clean; make project=1 test
    make clean; make project=2 test
    make clean; make platform=frdm project=0 all
    make clean; make platform=frdm project=1 all
    make clean; make platform=frdm project=2 all
