типа так ?
.........
#if VIC_cfg_drvEnable == 1
#include "vic.h"
#endif //VIC_cfg_drvEnable == 1
//------------------------------------------------------------------------------
#if DMA_cfg_drvEnable > 0
#include "dma.h"
#endif //DMA_cfg_drvEnable > 1
//------------------------------------------------------------------------------
#if TIMER_cfg_drvEnable > 0
#include "timer.h"
#endif //TIMER_cfg_drvEnable > 0
//------------------------------------------------------------------------------
#if UART_cfg_drvEnable > 0
#include "uart.h"
#endif //UART_cfg_drvEnable > 0
...........
это один общий для проекта файл, его во все С вставляю.
В нем же настройки проекта определены.