Merging Multiple libraries in a single file

I have a task to do and I am new to Arduino. The task is to create a project in Arduino IDE, using the FreeRtos library. Then I have to find all the library files that are included (that belong to RTOS) and combine those parts that are needed into a single file together with the code. How can I do it, any help would be really greatful.

If you are supposed to work with Arduino IDE, ask in This forum is for the PlatformIO IDE.