How to Integrate code generated by simulink in Arduino IDE

I have generated the code from MATLAB simulink. I am getting 'undefined reference to' errors while compiling the integrated code? Ho to resolve this issue?

ert_main.c (1.69 KB)

TestApp1.c (2.69 KB)

TestApp1.h (3.17 KB)

MW_target_hardware_resources.h (2.22 KB)

rtmodel.h (907 Bytes)

I have designed the application part in simulink and generated code fro it. I just want to integrate all generated file in Arduino IDE and compile it. i have attached the simulink generated code with above post. Kindly suggest me how to compile it.