26 lines
728 B
Makefile
26 lines
728 B
Makefile
INSTALL = install
|
|
|
|
AM_CXXFLAGS = -MMD -I$(boost) -I.. -O5
|
|
|
|
noinst_PROGRAMS = wrap
|
|
wrap_SOURCES = utilities.cpp Argument.cpp Constructor.cpp Method.cpp Class.cpp Module.cpp wrap.cpp
|
|
|
|
# generate local toolbox dir
|
|
interfacePath = ../cpp
|
|
moduleName = gtsam
|
|
toolboxpath = ../toolbox
|
|
nameSpace = "gtsam"
|
|
mexFlags = "-I${boost} -I${prefix}/include -I${prefix}/include/gtsam -L${exec_prefix}/lib -lgtsam"
|
|
all:
|
|
./wrap ${interfacePath} ${moduleName} ${toolboxpath} ${nameSpace} ${mexFlags}
|
|
|
|
# install the header files
|
|
include_HEADERS = utilities.h Argument.h Constructor.h Method.h Class.h Module.h wrap-matlab.h
|
|
|
|
install: all
|
|
|
|
# clean local toolbox dir
|
|
clean:
|
|
@test -z "wrap" || rm -f wrap
|
|
@test -z "../toolbox" || rm -rf ../toolbox
|