📄 makefile
字号:
# file: Makefile# author: Andrea Vedaldi# description: Build mex files# --------------------------------------------------------------------## --------------------------------------------------------------------# Determine on the flight the system we are running onDarwin_ARCH := macLinux_ARCH := glxARCH := $($(shell uname)_ARCH)mac_CFLAGS := -O -I. -pedantic -Wallmac_MEX_CFLAGS := -g CFLAGS='$$CFLAGS $(mac_CFLAGS)'mac_MEX_SUFFIX := mexmacglx_CFLAGS := -O -I. -pedantic -Wallglx_MEX_CFLAGS := -g CFLAGS='$$CFLAGS $(glx_CFLAGS)'glx_MEX_SUFFIX := mexglxMEX_SUFFIX := $($(ARCH)_MEX_SUFFIX)MEX_CFLAGS := $($(ARCH)_MEX_CFLAGS)VER := 0.1.6DIST := bag-$(VER)# --------------------------------------------------------------------## --------------------------------------------------------------------vpath %.mex.c .src := $(wildcard *.mex.c)msrc := $(wildcard *.m)stem := $(notdir $(basename $(basename $(src))))tgt := $(addprefix mex/, $(addsuffix .$(MEX_SUFFIX),$(stem)))mex/%.$(MEX_SUFFIX) : %.mex.c mex -I. $(MEX_CFLAGS) $< -outdir 'mex' @mv mex/$*.mex.$(MEX_SUFFIX) mex/$*.$(MEX_SUFFIX).PHONY: allall: $(tgt).PHONY: infoinfo : @echo src = $(src) @echo stem = $(stem) @echo tgt = $(tgt)# PDF documentation.PHONY: docdoc: vlutil.htmlvlutil.html : $(msrc) mdoc --output=vlutil.html vl.PHONY: cleanclean: rm -f $(tgt) rm -f .DS_Store .gdb_history find . -name '*~' -exec rm -f \{\} \;.PHONY: distcleandistclean: clean rm -f mex/*.mexmac mex/*.mexglx rm -f vlutil.html rm -f bag-*.tar.gz.PHONY: distdist: distclean echo Version $(VER) >TIMESTAMP echo Archive created on `date` >>TIMESTAMP d=$(notdir $(CURDIR)) ; \ tar chzvf $(DIST).tar.gz ../$${d} .PHONY: autorightsautorights: autorights . \ --verbose \ --recursive \ --template cal \ --years 2006 \ --authors "Andrea Vedaldi (UCLA VisionLab)" \ --program "Bags"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -