You need to do more than just #include it - it is implemented in one .c file but that is not a header, so you'd still need to compile that separately and link it in somehow.
#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.)