Skip to content

Commit

Permalink
test with Matlab R2020b
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrmnn committed Feb 18, 2021
1 parent 2831683 commit 21f5cf9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ CC ?= c++
CXX ?= c++
LD ?= c++
MEX ?= mex
CFLAGS ?= -DMX_COMPAT_32
mexext := $(shell mexext)

all: xml2struct.${mexext}
all: xml2struct.$(mexext)

xml2struct.${mexext}: xml2struct.cc | rapidxml
$(MEX) CC=${CC} CXX=${CXX} LD=${LD} -I./rapidxml $<
xml2struct.$(mexext): xml2struct.cc | rapidxml
$(MEX) $(CFLAGS) CC=$(CC) CXX=$(CXX) LD=$(LD) -I./rapidxml $<

rapidxml:
mkdir -p rapidxml && wget -O - http://iweb.dl.sourceforge.net/project/rapidxml/rapidxml/rapidxml%201.13/rapidxml-1.13.zip | tar -C rapidxml -zx --strip-components 1

clean:
-rm *.${mexext}
rm -f *.$(mexext)

distclean: clean
-rm -r rapidxml
rm -rf rapidxml

test:
matlab -nojvm -r "tic; disp(xml2struct('test.xml')); toc; exit"
matlab -nodisplay -nojvm -r "tic; disp(xml2struct('test.xml')); toc; exit"

0 comments on commit 21f5cf9

Please sign in to comment.