diff options
Diffstat (limited to 'SD-VBS/benchmarks/mser/src/matlab/Makefile')
| -rwxr-xr-x | SD-VBS/benchmarks/mser/src/matlab/Makefile | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/SD-VBS/benchmarks/mser/src/matlab/Makefile b/SD-VBS/benchmarks/mser/src/matlab/Makefile deleted file mode 100755 index 29c0982..0000000 --- a/SD-VBS/benchmarks/mser/src/matlab/Makefile +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | # file: Makefile | ||
| 2 | # author: Andrea Vedaldi | ||
| 3 | # description: Build mex files | ||
| 4 | |||
| 5 | # -------------------------------------------------------------------- | ||
| 6 | # | ||
| 7 | # -------------------------------------------------------------------- | ||
| 8 | |||
| 9 | # Determine on the flight the system we are running on | ||
| 10 | Darwin_ARCH := mac | ||
| 11 | Linux_ARCH := glx | ||
| 12 | ARCH := $($(shell uname)_ARCH) | ||
| 13 | |||
| 14 | mac_CFLAGS := -I. -pedantic -Wall -Wno-long-long | ||
| 15 | mac_MEX_CFLAGS := -g -O CFLAGS='$$CFLAGS $(mac_CFLAGS)' | ||
| 16 | mac_MEX_SUFFIX := mexmac | ||
| 17 | |||
| 18 | glx_CFLAGS := -I. -pedantic -Wall -Wno-long-long | ||
| 19 | glx_MEX_CFLAGS := -g -O CFLAGS='$$CFLAGS $(glx_CFLAGS)' | ||
| 20 | glx_MEX_SUFFIX := mexglx | ||
| 21 | |||
| 22 | MEX_SUFFIX := $($(ARCH)_MEX_SUFFIX) | ||
| 23 | MEX_CFLAGS := $($(ARCH)_MEX_CFLAGS) | ||
| 24 | |||
| 25 | VER := 0.4 | ||
| 26 | DIST := mser-$(VER) | ||
| 27 | BINDIST := $(DIST)-$(ARCH) | ||
| 28 | |||
| 29 | # -------------------------------------------------------------------- | ||
| 30 | # | ||
| 31 | # -------------------------------------------------------------------- | ||
| 32 | |||
| 33 | vpath %.mex.c . | ||
| 34 | |||
| 35 | src := $(wildcard *.mex.c) | ||
| 36 | msrc := $(wildcard *.m) | ||
| 37 | stem := $(notdir $(basename $(basename $(src)))) | ||
| 38 | tgt := $(addprefix ./, $(addsuffix .$(MEX_SUFFIX),$(stem))) | ||
| 39 | |||
| 40 | %.$(MEX_SUFFIX) : %.mex.c | ||
| 41 | mex -I. $(MEX_CFLAGS) $< -output $* | ||
| 42 | |||
| 43 | .PHONY: all | ||
| 44 | all: $(tgt) | ||
| 45 | |||
| 46 | .PHONY: info | ||
| 47 | info : | ||
| 48 | @echo src = $(src) | ||
| 49 | @echo stem = $(stem) | ||
| 50 | @echo tgt = $(tgt) | ||
| 51 | |||
| 52 | # PDF documentation | ||
| 53 | .PHONY: doc | ||
| 54 | doc: mser.html doc/mser.pdf | ||
| 55 | |||
| 56 | mser.html : $(msrc) | ||
| 57 | mdoc --output=mser.html . \ | ||
| 58 | --exclude='.*(_demo|_compile).*.m' | ||
| 59 | |||
| 60 | .PHONY: clean | ||
| 61 | clean: | ||
| 62 | rm -f $(tgt) | ||
| 63 | find . -name '.DS_Store' -exec rm -f \{\} \; | ||
| 64 | find . -name '.gdb_history' -exec rm -f \{\} \; | ||
| 65 | find . -name '*~' -exec rm -f \{\} \; | ||
| 66 | find . -name '*.bak' -exec rm -f \{\} \; | ||
| 67 | make -C doc/figures clean | ||
| 68 | |||
| 69 | .PHONY: distclean | ||
| 70 | distclean: clean | ||
| 71 | rm -f *.mexmac *.mexglx | ||
| 72 | rm -f mser.html | ||
| 73 | rm -f mser-*.tar.gz | ||
| 74 | rm -f doc/*.log | ||
| 75 | rm -f doc/*.aux | ||
| 76 | rm -f doc/*.toc | ||
| 77 | rm -f doc/*.bbl | ||
| 78 | rm -f doc/*.blg | ||
| 79 | rm -f doc/*.out | ||
| 80 | rm -f $(DIST).tar.gz | ||
| 81 | rm -f $(BINDIST).tar.gz | ||
| 82 | rm -rf $(BINDIST) | ||
| 83 | |||
| 84 | .PHONY: dist | ||
| 85 | dist: distclean | ||
| 86 | echo Version $(VER) >TIMESTAMP | ||
| 87 | echo Archive created on `date` >>TIMESTAMP | ||
| 88 | d=$(notdir $(CURDIR)) ; \ | ||
| 89 | tar chzvf $(DIST).tar.gz \ | ||
| 90 | --exclude mser_demo4.m \ | ||
| 91 | --exclude data/seq.avi \ | ||
| 92 | --exclude results \ | ||
| 93 | ../$${d} | ||
| 94 | |||
| 95 | .PHONY: bindist | ||
| 96 | bindist: all | ||
| 97 | test -e $(BINDIST) || mkdir $(BINDIST) | ||
| 98 | cp *.$(MEX_SUFFIX) $(BINDIST) | ||
| 99 | cd $(BINDIST) ; strip -S *.$(MEX_SUFFIX) | ||
| 100 | tar chzvf $(BINDIST).tar.gz $(BINDIST) | ||
| 101 | |||
| 102 | .PHONY: autorights | ||
| 103 | autorights: | ||
| 104 | autorights . \ | ||
| 105 | --verbose \ | ||
| 106 | --recursive \ | ||
| 107 | --template cal \ | ||
| 108 | --years 2006 \ | ||
| 109 | --authors "Andrea Vedaldi (UCLA VisionLab)" \ | ||
| 110 | --program "Video Extremal Regions" | ||
| 111 | |||
| 112 | doc/mser.pdf : doc/*.tex doc/*.bib doc/figures/*.fig | ||
| 113 | make -C doc/figures all | ||
| 114 | cd doc ; \ | ||
| 115 | for k in 1 2 3 ; \ | ||
| 116 | do \ | ||
| 117 | pdflatex -file-line-error-style -interaction batchmode \ | ||
| 118 | mser.tex ; \ | ||
| 119 | if test "$$k" = '1' ; \ | ||
| 120 | then \ | ||
| 121 | bibtex mser.aux ; \ | ||
| 122 | fi ; \ | ||
| 123 | done | ||
