makefile
来自「四元数实现的三维空间的表达形式」· 代码 · 共 33 行
TXT
33 行
# The following Makefile is known to work on# redhat linux 7.3 with Matlab R14## For other versions of MATLAB, the "MATDIR"# variable may have to be changed# Note: this should also work by simply # using "mex" from the MATLAB command window# eg: ">> mex qrot3d.c" TARGET = qrot3d.mexglxSOURCES = qrot3d.cMATDIR = /usr/local/matlab14INCDIR = -I. -I$(MATDIR)/extern/includeLIBDIR = -L$(MATDIR)/bin/glnx86LIBS = -lm -lmx -lmat# The gcc compilerCC = gccCFLAGS = -O3 -fomit-frame-pointer# The Intel compiler# CC = icc# CFLAGS = -xN -O3 -wd1572$(TARGET) : $(patsubst %.c,%.o,$(SOURCES)) $(CC) $(CFLAGS) $(LIBDIR) $(LIBS) -shared $^ -o $@%.o : %.c $(CC) $(CFLAGS) $(INCDIR) -c $< -o $@clean : rm -rf $(patsubst %.c,%.o,$(SOURCES)) $(TARGET)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?