main.cに
#include "sub1.c"
#include "sub2.c"
とか書けばOK