aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/Makefile
diff options
context:
space:
mode:
authorjgoppert <james.goppert@gmail.com>2013-01-06 14:20:24 -0500
committerjgoppert <james.goppert@gmail.com>2013-01-06 14:20:24 -0500
commit4f3b17f53b120cd54112097f4217a90863013c1f (patch)
tree7bdd022758798363544130322b60cd4b935c4a4f /apps/systemlib/Makefile
parentdb3fabc3baccdeef3108544b4e9da9c8f0895a58 (diff)
downloadpx4-firmware-4f3b17f53b120cd54112097f4217a90863013c1f.tar.gz
px4-firmware-4f3b17f53b120cd54112097f4217a90863013c1f.tar.bz2
px4-firmware-4f3b17f53b120cd54112097f4217a90863013c1f.zip
Added math library to build.
Diffstat (limited to 'apps/systemlib/Makefile')
-rw-r--r--apps/systemlib/Makefile30
1 files changed, 28 insertions, 2 deletions
diff --git a/apps/systemlib/Makefile b/apps/systemlib/Makefile
index 5778c552e..b3e7f6ac9 100644
--- a/apps/systemlib/Makefile
+++ b/apps/systemlib/Makefile
@@ -48,14 +48,40 @@ CSRCS = err.c \
# ppm_decode.c \
+CXXSRCS = test/test.cpp \
+ math/Vector.cpp \
+ math/Vector3.cpp \
+ math/EulerAngles.cpp \
+ math/Quaternion.cpp \
+ math/Dcm.cpp \
+ math/Matrix.cpp
+
+CXXHDRS = test/test.hpp \
+ math/Vector.hpp \
+ math/Vector3.hpp \
+ math/EulerAngles.hpp \
+ math/Quaternion.hpp \
+ math/Dcm.hpp \
+ math/Matrix.hpp
#
# XXX this really should be a CONFIG_* test
#
ifeq ($(TARGET),px4fmu)
+INCLUDES += math/arm
CSRCS += systemlib.c \
- pid/pid.c \
- geo/geo.c
+ pid/pid.c \
+ geo/geo.c
+CXXSRCS += math/arm/Vector.cpp \
+ math/arm/Matrix.cpp
+CXXHDRS += math/arm/Vector.hpp \
+ math/arm/Matrix.hpp
+else
+INCLUDES += math/generic
+CXXSRCS += math/generic/Vector.cpp \
+ math/generic/Matrix.cpp
+CXXHDRS += math/generic/Vector.hpp \
+ math/generic/Matrix.hpp
endif
include $(APPDIR)/mk/app.mk