|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NAME := vlfeat |
|
|
VER := 0.9.5 |
|
|
HOST := ganesh.cs.ucla.edu:/var/www/vlfeat.org |
|
|
|
|
|
|
|
|
CC ?= cc |
|
|
MATLABEXE ?= matlab |
|
|
MEX ?= mex |
|
|
LIBTOOL ?= libtool |
|
|
|
|
|
|
|
|
CONVERT ?= convert |
|
|
DOXYGEN ?= doxygen |
|
|
DVIPNG ?= dvipng |
|
|
DVIPS ?= dvips |
|
|
EPSTOPDF ?= epstopdf |
|
|
FIG2DEV ?= fig2dev |
|
|
LATEX ?= latex |
|
|
PYTHON ?= python |
|
|
GROFF ?= groff |
|
|
TIDY ?= tidy |
|
|
|
|
|
|
|
|
GIT ?= git |
|
|
|
|
|
.PHONY : all |
|
|
all : dll all-bin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err_no_arch = |
|
|
err_no_arch +=$(shell echo "** Unknown host architecture '$(UNAME)'. This identifier" 1>&2) |
|
|
err_no_arch +=$(shell echo "** was obtained by running 'uname -sm'. Edit the Makefile " 1>&2) |
|
|
err_no_arch +=$(shell echo "** to add the appropriate configuration." 1>&2) |
|
|
err_no_arch +=config |
|
|
|
|
|
err_internal =$(shell echo Internal error) |
|
|
err_internal +=internal |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Darwin_PPC_ARCH := mac |
|
|
Darwin_Power_Macintosh_ARCH := mac |
|
|
Darwin_i386_ARCH := mci |
|
|
Linux_i386_ARCH := glx |
|
|
Linux_i686_ARCH := glx |
|
|
Linux_unknown_ARCH := glx |
|
|
Linux_x86_64_ARCH := g64 |
|
|
|
|
|
UNAME := $(shell uname -sm) |
|
|
ARCH := $($(shell echo "$(UNAME)" | tr \ _)_ARCH) |
|
|
|
|
|
|
|
|
ifeq ($(ARCH),) |
|
|
die:=$(error $(err_no_arch)) |
|
|
endif |
|
|
|
|
|
MATLABPATH := $(strip $(shell $(MEX) -v 2>&1 | \ |
|
|
sed -n 's/.*MATLAB *= *\(.*\)/\1/gp')) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define if-like |
|
|
$(if $(filter $(1),$(2)),$(3)) |
|
|
endef |
|
|
|
|
|
|
|
|
define dump-var |
|
|
@echo $(1) = |
|
|
@echo $($(1)) | sed 's/\([^ ][^ ]* [^ ][^ ]*\) */\1#/g' | \ |
|
|
tr '#' '\n' | column -t | sed 's/\(.*\)/ \1/g' |
|
|
endef |
|
|
|
|
|
# $(call print-command, CMD, TGT) prints a message |
|
|
define print-command |
|
|
@printf "%10s %s\n" "$(strip $(1))" "$(strip $(2))" |
|
|
endef |
|
|
|
|
|
# $(call C, CMD) runs $(CMD) silently |
|
|
define C |
|
|
@$(call print-command, $(1), "$(@)") |
|
|
@quiet () \ |
|
|
{ \ |
|
|
local cmd out err ; \ |
|
|
cmd="$($(1))"; \ |
|
|
out=$$($${cmd} "$${@}" 2>&1); \ |
|
|
err=$${?}; \ |
|
|
if test $${err} -gt 0 ; then \ |
|
|
echo "******* Offending Command:"; \ |
|
|
echo "$${cmd}" "$${@}"; \ |
|
|
echo "******* Error Code: $${err}"; \ |
|
|
echo "******* Command Output:"; \ |
|
|
echo "$${out}"; \ |
|
|
fi; \ |
|
|
echo "$${out}" | grep arning ; \ |
|
|
return $${err}; \ |
|
|
} ; quiet |
|
|
endef |
|
|
|
|
|
# If verbose print everything |
|
|
ifdef VERB |
|
|
C = $($(1)) |
|
|
endif |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Common UNIX Configuration |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
ifndef NDEBUG |
|
|
DEBUG := yes |
|
|
endif |
|
|
|
|
|
C_CFLAGS = $(CFLAGS) |
|
|
C_CFLAGS += -I$(CURDIR) -pedantic -std=c99 -O3 |
|
|
C_CFLAGS += -Wall -Wno-unused-function -Wno-long-long |
|
|
C_CFLAGS += $(if $(DEBUG), -O0 -g -std=c89) |
|
|
|
|
|
C_LDFLAGS = $(LDFLAGS) |
|
|
C_LDFLAGS += -L$(BINDIR) -l$(DLL_NAME) |
|
|
|
|
|
DLL_NAME = vl |
|
|
DLL_CFLAGS = $(C_CFLAGS) -fvisibility=hidden -fPIC -DVL_BUILD_DLL |
|
|
|
|
|
MEX_FLAGS = $(if $(DEBUG), -g) |
|
|
MEX_CFLAGS = $(C_CFLAGS) -Itoolbox |
|
|
MEX_LDFLAGS = -L$(BINDIR) -l$(DLL_NAME) |
|
|
|
|
|
ifdef MATLABPATH |
|
|
all: all-mex |
|
|
endif |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Architecture-specific Configuration |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
# Mac OS X on PPC processor |
|
|
ifeq ($(ARCH),mac) |
|
|
BINDIR := bin/mac |
|
|
DLL_SUFFIX := dylib |
|
|
MEX_SUFFIX := mexmac |
|
|
C_CFLAGS += -D__BIG_ENDIAN__ -Wno-variadic-macros |
|
|
C_CFLAGS += $(if $(DEBUG), -gstabs+) |
|
|
C_LDFLAGS += -lm |
|
|
DLL_CFLAGS += -fvisibility=hidden |
|
|
MEX_FLAGS += -lm CC='gcc' CXX='g++' LD='gcc' |
|
|
MEX_CFLAGS += |
|
|
MEX_LDFLAGS += |
|
|
endif |
|
|
|
|
|
# Mac OS X on Intel processor |
|
|
ifeq ($(ARCH),mci) |
|
|
BINDIR := bin/maci |
|
|
DLL_SUFFIX := dylib |
|
|
MEX_SUFFIX := mexmaci |
|
|
C_CFLAGS += -D__LITTLE_ENDIAN__ -Wno-variadic-macros |
|
|
C_CFLAGS += -DVL_SUPPORT_SSE2 |
|
|
C_CFLAGS += $(call if-like,%_sse2,$*,-msse2) |
|
|
CFLAGS += $(if $(DEBUG), -gstabs+) |
|
|
LDFLAGS += -lm |
|
|
MEX_FLAGS += -lm |
|
|
MEX_CFLAGS += |
|
|
MEX_LDFLAGS += |
|
|
endif |
|
|
|
|
|
# Linux-32 |
|
|
ifeq ($(ARCH),glx) |
|
|
BINDIR := bin/glx |
|
|
MEX_SUFFIX := mexglx |
|
|
DLL_SUFFIX := so |
|
|
C_CFLAGS += -D__LITTLE_ENDIAN__ -std=c99 |
|
|
C_CFLAGS += -DVL_SUPPORT_SSE2 |
|
|
C_CFLAGS += -march=i686 |
|
|
C_CFLAGS += $(call if-like,%_sse2,$*,-msse2) |
|
|
LDFLAGS += -lm -Wl,--rpath,\$$ORIGIN/ |
|
|
MEX_FLAGS += -lm |
|
|
MEX_CFLAGS += |
|
|
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/ |
|
|
endif |
|
|
|
|
|
# Linux-64 |
|
|
ifeq ($(ARCH),g64) |
|
|
BINDIR := bin/g64 |
|
|
MEX_SUFFIX := mexa64 |
|
|
DLL_SUFFIX := so |
|
|
C_CFLAGS += -D__LITTLE_ENDIAN__ -std=c99 |
|
|
C_CFLAGS += -DVL_SUPPORT_SSE2 |
|
|
C_CFLAGS += $(call if-like,%_sse2,$*,-msse2) |
|
|
LDFLAGS += -lm -Wl,--rpath,\$$ORIGIN/ |
|
|
MEX_FLAGS += -lm -largeArrayDims |
|
|
MEX_CFLAGS += |
|
|
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/ |
|
|
endif |
|
|
|
|
|
DIST := $(NAME)-$(VER) |
|
|
BINDIST := $(DIST)-bin |
|
|
MEX_BINDIR := toolbox/$(MEX_SUFFIX) |
|
|
|
|
|
# Sanity check |
|
|
ifeq ($(DLL_SUFFIX),) |
|
|
die:=$(error $(err_internal)) |
|
|
endif |
|
|
|
|
|
ifdef VERB |
|
|
$(info * *********************************************************** ) |
|
|
$(info * Version: $(VER) ) |
|
|
$(info * Auto arch: $(ARCH) ) |
|
|
$(info * Debug mode: $(if $(DEBUG),yes,no) ) |
|
|
$(info * CFLAGS: $(CFLAGS) ) |
|
|
$(info * C_CFLAGS: $(C_CFLAGS) ) |
|
|
ifdef MATLABPATH |
|
|
$(info * MATLABPATH: $(MATLABPATH) ) |
|
|
$(info * MEX_SUFFIX: $(MEX_SUFFIX) ) |
|
|
$(info * MEX_CFLAGS: $(MEX_CFLAGS) ) |
|
|
else |
|
|
$(info * MATLAB not found. Will not compile MEX files. ) |
|
|
endif |
|
|
$(info * *********************************************************** ) |
|
|
endif |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Make directories |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
.PRECIOUS: %/.dirstamp |
|
|
%/.dirstamp : |
|
|
@printf "%10s %s\n" MK "$(dir $@)" |
|
|
@mkdir -p $(dir $@) |
|
|
@echo "Directory generated by make." > $@ |
|
|
|
|
|
define gendir |
|
|
$(1)-dir=$(foreach x,$(2),$(x)/.dirstamp) |
|
|
endef |
|
|
|
|
|
$(eval $(call gendir, doc, doc doc/demo doc/figures doc/man-src )) |
|
|
$(eval $(call gendir, results, results )) |
|
|
$(eval $(call gendir, bin, $(BINDIR) $(BINDIR)/objs )) |
|
|
$(eval $(call gendir, mex, $(MEX_BINDIR) )) |
|
|
$(eval $(call gendir, noprefix, toolbox/noprefix )) |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Build the shared library |
|
|
# -------------------------------------------------------------------- |
|
|
# |
|
|
# Objects and dependency files are placed in the $(BINDIR)/objs/ |
|
|
# directory. |
|
|
# |
|
|
# MAC/MACI: The library install_name is prefixed with @loader_path/. |
|
|
# At run time this causes the loader to search for a local copy of |
|
|
# the library for any binary which is linked against it. The |
|
|
# install_name can be modified later by install_name_tool. |
|
|
# |
|
|
# LINUX: |
|
|
|
|
|
dll_tgt := $(BINDIR)/lib$(DLL_NAME).$(DLL_SUFFIX) |
|
|
dll_src := $(wildcard vl/*.c) |
|
|
dll_hdr := $(wildcard vl/*.h) $(wildcard vl/*.tc) |
|
|
dll_obj := $(addprefix $(BINDIR)/objs/, $(notdir $(dll_src:.c=.o))) |
|
|
dll_dep := $(dll_obj:.o=.d) |
|
|
|
|
|
.PHONY: dll |
|
|
dll: $(dll_tgt) |
|
|
|
|
|
.PRECIOUS: $(BINDIR)/objs/%.d |
|
|
|
|
|
$(BINDIR)/objs/%.o : vl/%.c $(bin-dir) |
|
|
$(call C,CC) $(DLL_CFLAGS) -c $< -o $@ |
|
|
|
|
|
$(BINDIR)/objs/%.d : vl/%.c $(bin-dir) |
|
|
$(call C,CC) $(DLL_CFLAGS) \ |
|
|
-M -MT '$(BINDIR)/objs/$*.o $(BINDIR)/objs/$*.d' \ |
|
|
$< -MF $@ |
|
|
|
|
|
$(BINDIR)/lib$(DLL_NAME).dylib : $(dll_obj) |
|
|
$(call C,LIBTOOL) -dynamic \ |
|
|
-flat_namespace \ |
|
|
-install_name @loader_path/libvl.dylib \ |
|
|
-compatibility_version $(VER) \ |
|
|
-current_version $(VER) \ |
|
|
-o $@ -undefined suppress $^ |
|
|
|
|
|
$(BINDIR)/lib$(DLL_NAME).so : $(dll_obj) |
|
|
$(call C,CC) $(DLL_CFLAGS) -shared $(^) -o $(@) |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Build command line utilities |
|
|
# -------------------------------------------------------------------- |
|
|
# The executables are stored in $(BINDIR). $(dll_tgt) is not a direct |
|
|
# dependency in order avoiding rebuilding all the executables if only |
|
|
# a part of the library is changed. |
|
|
|
|
|
bin_src := $(wildcard src/*.c) |
|
|
bin_tgt := $(notdir $(bin_src)) |
|
|
bin_tgt := $(addprefix $(BINDIR)/, $(bin_tgt:.c=)) |
|
|
bin_dep := $(addsuffix .d, $(bin_tgt)) |
|
|
|
|
|
.PHONY: all-bin |
|
|
all-bin: $(bin_tgt) |
|
|
|
|
|
$(BINDIR)/% : src/%.c $(bin-dir) |
|
|
@make -s $(dll_tgt) |
|
|
$(call C,CC) $(C_CFLAGS) $< $(C_LDFLAGS) -o $@ |
|
|
|
|
|
$(BINDIR)/%.d : src/%.c $(bin-dir) |
|
|
$(call C,CC) $(C_CFLAGS) -M -MT \ |
|
|
'$(BINDIR)/$* $(MEX_BINDIR)/$*.d' \ |
|
|
$< -MF $@ |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Build MEX files |
|
|
# -------------------------------------------------------------------- |
|
|
# MEX files are placed in toolbox/$(MEX_SUFFIX). MEX files are linked |
|
|
# so that they search for the dynamic libvl in the directory where |
|
|
# they are found. A link is automatically created to the library |
|
|
# binary file. |
|
|
# |
|
|
# On Linux, this is obtained by setting -rpath to $ORIGIN/ for each |
|
|
# MEX file. On Mac OS X this is implicitly obtained since libvl.dylib |
|
|
# has install_name relative to @loader_path/. |
|
|
|
|
|
mex_src := $(shell find toolbox -name "*.c") |
|
|
mex_tgt := $(addprefix $(MEX_BINDIR)/, \ |
|
|
$(notdir $(mex_src:.c=.$(MEX_SUFFIX)) ) ) |
|
|
mex_dep := $(mex_tgt:.$(MEX_SUFFIX)=.d) |
|
|
|
|
|
vpath %.c $(shell find toolbox -type d) |
|
|
vpath vl_%.m $(shell find toolbox -type d) |
|
|
|
|
|
.PHONY: all-mex |
|
|
all-mex : $(mex_tgt) noprefix |
|
|
|
|
|
$(MEX_BINDIR)/%.d : %.c $(mex-dir) |
|
|
$(call C,CC) $(MEX_CFLAGS) \ |
|
|
-I$(MATLABPATH)/extern/include -M -MT \ |
|
|
'$(MEX_BINDIR)/$*.$(MEX_SUFFIX) $(MEX_BINDIR)/$*.d' \ |
|
|
$< -MF $@ |
|
|
|
|
|
$(MEX_BINDIR)/%.$(MEX_SUFFIX) : %.c $(mex-dir) #$(MEX_BINDIR)/lib$(DLL_NAME).$(DLL_SUFFIX) |
|
|
@make -s $(dll_tgt) |
|
|
@ln -sf "../../$(BINDIR)/lib$(DLL_NAME).$(DLL_SUFFIX)" \ |
|
|
"$(MEX_BINDIR)/lib$(DLL_NAME).$(DLL_SUFFIX)" |
|
|
$(call C,MEX) CFLAGS='$$CFLAGS $(MEX_CFLAGS)' \ |
|
|
LDFLAGS='$$LDFLAGS $(MEX_LDFLAGS)' \ |
|
|
$(MEX_FLAGS) \ |
|
|
$< -outdir $(dir $(@)) |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Prefix-less M and MEX files |
|
|
# -------------------------------------------------------------------- |
|
|
# Populate the directory toolbox/noprefix with links to the MEX / M |
|
|
# files without the vl_ prefix. |
|
|
|
|
|
m_src := $(shell find toolbox -name "vl_*.m") |
|
|
m_lnk := $(addprefix toolbox/noprefix/, \ |
|
|
$(filter-out setup.m, \ |
|
|
$(filter-out help.m, \ |
|
|
$(filter-out root.m, \ |
|
|
$(filter-out demo.m, \ |
|
|
$(filter-out compile.m, \ |
|
|
$(filter-out test_%, \ |
|
|
$(filter-out demo_%, \ |
|
|
$(subst vl_,,$(notdir $(m_src))))))))))) |
|
|
m_lnk += $(addprefix toolbox/noprefix/, \ |
|
|
$(subst, $(MEX_SUFFIX),.m,$(subst vl_,,$(notdir $(mex_tgt))))) |
|
|
|
|
|
toolbox/noprefix/%.m : vl_%.m |
|
|
@upperName=`echo "$*" | tr [a-z] [A-Z]` ; \ |
|
|
echo "function varargout = $*(varargin)" > "$@" ; \ |
|
|
cat "$<" | sed -n -e '/^function/b' -e '/^%.*$$/p' \ |
|
|
-e '/^%.*$$/b' -e q >> "$@" ; \ |
|
|
echo "[varargout{1:nargout}] = vl_$*(varargin{:});" >> "$@" ; |
|
|
|
|
|
.PHONY: noprefix |
|
|
noprefix: $(noprefix-dir) $(m_lnk) |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Make clean |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
.PHONY: clean, distclean |
|
|
|
|
|
clean: |
|
|
rm -f `find . -name '*~'` |
|
|
rm -f `find . -name '.DS_Store'` |
|
|
rm -f `find . -name '.gdb_history'` |
|
|
rm -f `find . -name '._*'` |
|
|
rm -rf `find ./bin -name 'objs' -type d` |
|
|
rm -rf ./results |
|
|
rm -rf $(NAME) |
|
|
|
|
|
distclean: clean doc-distclean |
|
|
rm -rf bin |
|
|
for i in mexmac mexmaci mexglx mexw32 mexa64 mexw64 ; \ |
|
|
do \ |
|
|
rm -rf "toolbox/$${i}" ; \ |
|
|
done |
|
|
rm -f $(NAME)-*.tar.gz |
|
|
rm -rf toolbox/noprefix |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Build distribution packages |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
.PHONY: $(NAME), dist, bindist |
|
|
.PHONY: post, post-doc |
|
|
|
|
|
$(NAME): VERSION |
|
|
rm -rf $(NAME) |
|
|
$(GIT) archive --prefix=$(NAME)/ HEAD | tar xvf - |
|
|
rsync -arv VERSION $(NAME)/ |
|
|
|
|
|
dist: $(NAME) |
|
|
COPYFILE_DISABLE=1 \ |
|
|
COPY_EXTENDED_ATTRIBUTES_DISABLE=1 \ |
|
|
tar czvf $(DIST).tar.gz $(NAME) |
|
|
|
|
|
bindist: $(NAME) all doc-bindist |
|
|
find . -iname *.[ed][xl][el] -exec chmod a+x {} \; |
|
|
rsync -arv --exclude=objs --exclude=*.pdb bin $(NAME)/ |
|
|
rsync -arv --include=*mexmaci \ |
|
|
--include=*mexmac \ |
|
|
--include=*mexw32 \ |
|
|
--include=*mexw64 \ |
|
|
--include=*mexglx \ |
|
|
--include=*mexa64 \ |
|
|
--include=noprefix** \ |
|
|
--include=*dll \ |
|
|
--include=*.manifest \ |
|
|
--include=*.dylib \ |
|
|
--include=*.so \ |
|
|
--exclude=* \ |
|
|
toolbox/ $(NAME)/toolbox |
|
|
tar czvf $(BINDIST).tar.gz $(NAME)/ |
|
|
|
|
|
|
|
|
post: |
|
|
rsync -aP $(DIST).tar.gz $(BINDIST).tar.gz \ |
|
|
$(HOST)/download |
|
|
|
|
|
post-doc: doc |
|
|
rsync --recursive \ |
|
|
--perms \ |
|
|
--group=lab \ |
|
|
--chmod=Dg+s,g+w,o-w \ |
|
|
--exclude=*.eps \ |
|
|
--progress \ |
|
|
--exclude=download \ |
|
|
--exclude=man-src \ |
|
|
--exclude=toolbox-src \ |
|
|
--exclude=.htaccess \ |
|
|
--delete \ |
|
|
doc/ $(HOST) |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Includes |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
# Auto-deps |
|
|
ifeq ($(filter doc clean distclean info, $(MAKECMDGOALS)),) |
|
|
include $(dll_dep) $(bin_dep) $(mex_dep) |
|
|
endif |
|
|
|
|
|
# Makefile for documentation |
|
|
include Makefile.doc |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# Debug Makefile |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
.PHONY: info |
|
|
info : |
|
|
$(call dump-var,dll_hdr) |
|
|
$(call dump-var,dll_src) |
|
|
$(call dump-var,dll_obj) |
|
|
$(call dump-var,dll_dep) |
|
|
$(call dump-var,mex_src) |
|
|
$(call dump-var,mex_dep) |
|
|
$(call dump-var,mex_tgt) |
|
|
$(call dump-var,m_src) |
|
|
$(call dump-var,demo_src) |
|
|
$(call dump-var,bin_src) |
|
|
$(call dump-var,bin_tgt) |
|
|
$(call dump-var,bin_dep) |
|
|
@echo "ARCH = $(ARCH)" |
|
|
@echo "DIST = $(DIST)" |
|
|
@echo "BINDIST = $(BINDIST)" |
|
|
@echo "MEX_BINDIR = $(MEX_BINDIR)" |
|
|
@echo "DLL_SUFFIX = $(DLL_SUFFIX)" |
|
|
@echo "MEX_SUFFIX = $(MEX_SUFFIX)" |
|
|
@echo "CFLAGS = $(CFLAGS)" |
|
|
@echo "LDFLAGS = $(LDFLAGS)" |
|
|
@echo "C_CFLAGS = $(C_CFLAGS)" |
|
|
@echo "C_LDFLAGS = $(C_LDFLAGS)" |
|
|
@echo "DLL_NAME = $(DLL_NAME)" |
|
|
@echo "DLL_CFLAGS = $(DLL_CFLAGS)" |
|
|
@echo "MATLABEXE = $(MATLABEXE)" |
|
|
@echo "MEX = $(MEX)" |
|
|
@echo "MATLABPATH = $(MATLABPATH)" |
|
|
@echo "MEX_FLAGS = $(MEX_FLAGS)" |
|
|
@echo "MEX_CFLAGS = $(MEX_CFLAGS)" |
|
|
@echo "MEX_LDFLAGS = $(MEX_LDFLAGS)" |
|
|
@printf "\nThere are %s lines of code.\n" \ |
|
|
`cat $(m_src) $(mex_src) $(dll_src) $(dll_hdr) $(bin_src) | wc -l` |
|
|
|
|
|
# -------------------------------------------------------------------- |
|
|
# X-Code Support |
|
|
# -------------------------------------------------------------------- |
|
|
|
|
|
.PHONY: dox- |
|
|
dox- : dox |
|
|
|
|
|
.PHONY: dox-clean |
|
|
dox-clean: |
|
|
|