diff options
author | px4dev <px4@purgatory.org> | 2013-01-12 12:10:06 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-12 12:10:06 -0800 |
commit | 5b07efdbeb8b6c6e7c3e5a86a2e55a2de345b579 (patch) | |
tree | 87165e029de68b3726710717cdce55814c3d1613 /apps/mathlib/Makefile | |
parent | 6d301710d97c3812a5f1e6c26415461b2fe92f58 (diff) | |
download | px4-firmware-5b07efdbeb8b6c6e7c3e5a86a2e55a2de345b579.tar.gz px4-firmware-5b07efdbeb8b6c6e7c3e5a86a2e55a2de345b579.tar.bz2 px4-firmware-5b07efdbeb8b6c6e7c3e5a86a2e55a2de345b579.zip |
Automatically generate depdencies for source files as they are compiled, rather than using the NuttX dependency generator tool.
Diffstat (limited to 'apps/mathlib/Makefile')
-rw-r--r-- | apps/mathlib/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/mathlib/Makefile b/apps/mathlib/Makefile index e5fab1e35..e3aa9275e 100644 --- a/apps/mathlib/Makefile +++ b/apps/mathlib/Makefile @@ -31,8 +31,6 @@ # ############################################################################ -include $(TOPDIR)/.config - # # Math library # @@ -52,7 +50,13 @@ CXXHDRS = math/test/test.hpp \ math/Dcm.hpp \ math/Matrix.hpp -# XXX this really should be a CONFIG_* test +# +# In order to include .config we first have to save off the +# current makefile name, since app.mk needs it. +# +APP_MAKEFILE := $(lastword $(MAKEFILE_LIST)) +-include $(TOPDIR)/.config + ifeq ($(CONFIG_ARCH_CORTEXM4)$(CONFIG_ARCH_FPU),yy) INCLUDES += math/arm CXXSRCS += math/arm/Vector.cpp \ |