make command matlab makefile

20 views (last 30 days)
ander
ander on 2 Feb 2015
Commented: Image Analyst on 6 Dec 2020
hi everybody, is possible to compile a makefile using make command in matlab. I need to generate .lib file and it will be formidable doing that from matlab from a .m file.
normally in windows (cygwin) a used to make makefile.
thanks for all

Answers (2)

xudong liu
xudong liu on 6 Dec 2020
fine
  1 Comment
Image Analyst
Image Analyst on 6 Dec 2020
How is this an answer to the original, 6 year old question about how to compile code into a .lib file?

Sign in to comment.


Image Analyst
Image Analyst on 2 Feb 2015
What happens when you run deploytool or run mcc? Do they not compile everything that it needs to?
  4 Comments
Image Analyst
Image Analyst on 2 Feb 2015
ander's "Answer" moved here:
The makefile is something external, is not nothing relationated to get .exe or something similar. I need to use a make command to get and .lib library. only that.
Image Analyst
Image Analyst on 2 Feb 2015
Did you see makefile mentioned in the help for mcc? I didn't. Perhaps you mean a bundle file or option file. See the -B and -f options in the help for mcc. If that's not it and you can't find it elsewhere in the help, then call the Mathworks (who will probably recommend the -B or -f option to you).
-B Specify Bundle File
Replace the file on the mcc command line with the contents of the specified file. Use
-B filename[:<a1>,<a2>,...,<an>]
The bundle file filename should contain only mcc command-line options and corresponding arguments and/or other file names. The file might contain other -B options. A bundle file can include replacement parameters for Compiler options that accept names and version numbers. See Using Bundle Files to Build MATLAB Code for a list of the bundle files included with MATLAB Compiler.
-f Specified Options File
Override the default options file with the specified options file. Use
-f filename
to specify filename as the options file when calling mbuild. This option lets you use different ANSI compilers for different invocations of MATLAB Compiler. This option is a direct pass-through to mbuild.

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!