Use GCC pre-processor to select platform-dependent files.
#ifdef TEST
This is ASM or something intended for the TEST platform.
#endif
gcc -DTEST -E test.c | grep -v ^# | sed '/^[[:blank:]]*$/ d'
#ifdef TEST
This is ASM or something intended for the TEST platform.
#endif
gcc -DTEST -E test.c | grep -v ^# | sed '/^[[:blank:]]*$/ d'