make command matlab makefile

17 vues (au cours des 30 derniers jours)
ander
ander le 2 Fév 2015
Commenté : Image Analyst le 6 Déc 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

Réponses (2)

xudong liu
xudong liu le 6 Déc 2020
fine
  1 commentaire
Image Analyst
Image Analyst le 6 Déc 2020
How is this an answer to the original, 6 year old question about how to compile code into a .lib file?

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 2 Fév 2015
What happens when you run deploytool or run mcc? Do they not compile everything that it needs to?
  4 commentaires
Image Analyst
Image Analyst le 2 Fév 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 le 2 Fév 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by