make command matlab makefile

조회 수: 17 (최근 30일)
ander
ander 2015년 2월 2일
댓글: Image Analyst 2020년 12월 6일
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

답변 (2개)

xudong liu
xudong liu 2020년 12월 6일
fine
  댓글 수: 1
Image Analyst
Image Analyst 2020년 12월 6일
How is this an answer to the original, 6 year old question about how to compile code into a .lib file?

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 2월 2일
What happens when you run deploytool or run mcc? Do they not compile everything that it needs to?
  댓글 수: 4
Image Analyst
Image Analyst 2015년 2월 2일
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 2015년 2월 2일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by