MATLAB Answers


Coder: Create a Makefile for Linux from Windows.

Asked by Brian Degnan on 17 Jan 2019
Latest activity Commented on by Ryan Livingston on 22 Jan 2019
I have the situation where I am the *unix user, and I get C generated from Matlab Coder that is designed for Windows. The signal procesing group verifies the code on Windows, and then I end up with the libraries. I end up updating the Makefile, by hand, to compile the code.
Is there a way for Coder to create a Makefile for both Linux and Windows?


Sign in to comment.




1 Answer

Answer by Ryan Livingston on 18 Jan 2019
 Accepted Answer

Unfortunately there is not a good way to achieve this with MATLAB Coder today. We've made an internal note of your request so we can sondier it for future releases of MATLAB Coder.


Thank you for the information. I'll just have to make it all work with BASH magic.
As an update, I created a BASH script to autogenerate Makefile. I could not upload it here as it's not an image file, but here's the script:
Thanks for sharing, Brian!

Sign in to comment.