Binary MEX file-name extension
To use the MEX file-name extension in makefiles or
scripts outside MATLAB®, type one of the following from the system
command prompt. The script is located in the
folder.matlabroot
\bin
mexext.bat
—Windows platform.
mexext.sh
—UNIX® platform.
For example, the following commands are in a GNU® makefile.
ext = $(shell mexext) yprime.$(ext) : yprime.c mex yprime.c