50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
#----------------------------------------------------------------------------------------------------
|
|
# GTSAM top-level automake file
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
#The option -I m4 tells Autoconf to look for additional Autoconf macros in the m4 subdirectory.
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
# make automake install some standard but missing files
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
# All the sub-directories that need to be built
|
|
SUBDIRS = CppUnitLite colamd ldl spqr_mini base cpp geometry slam . tests wrap
|
|
|
|
# And the corresponding libraries produced
|
|
SUBLIBS = colamd/libcolamd.la ldl/libldl.la \
|
|
base/libbase.la cpp/libcpp.la geometry/libgeometry.la slam/libslam.la
|
|
|
|
if USE_LAPACK
|
|
SUBLIBS += spqr_mini/libspqr_mini.la
|
|
endif
|
|
|
|
EXTRA_DIST = autogen.sh configure.ac THANKS
|
|
|
|
# The following lines specify the actual shared library to be built with libtool
|
|
lib_LTLIBRARIES = libgtsam.la
|
|
libgtsam_la_SOURCES =
|
|
libgtsam_la_LIBADD = $(SUBLIBS)
|
|
libgtsam_la_LDFLAGS = -version-info 0:0:0
|
|
|
|
# TODO: UFconfig, CCOLAMD, and LDL automake magic without adding or touching any file
|
|
# in those directories as to not invalidate the LGPL license
|
|
# See some possibilities in
|
|
# http://www.gnu.org/software/hello/manual/automake/Third_002dParty-Makefiles.html
|
|
|
|
# install the headers and matlab toolbox
|
|
install-exec-hook:
|
|
install -d ${toolbox}/gtsam && \
|
|
cp -rf toolbox/* ${toolbox}/gtsam && \
|
|
install -d ${prefix}/include/wrap && \
|
|
cp -f wrap/wrap-matlab.h ${prefix}/include/wrap/matlab.h
|
|
|
|
# Todo: Also do CppUnitLite with automake
|
|
dist-hook:
|
|
mkdir $(distdir)/config
|
|
mkdir $(distdir)/matlab
|
|
cp -p $(srcdir)/matlab/*.m $(distdir)/matlab
|
|
cp -r $(srcdir)/wrap/expected $(distdir)/wrap
|
|
|
|
|