Not really. All you need to do is:
#ifndef __onefilelib__
#define __onefilelib__
#include "onefilelib.c"
#endif
(Also potentially defining "main" as something else, if it happens that the "onefilelib.c" has an entry point for some reason.)