diff options
author | px4dev <px4@purgatory.org> | 2013-05-11 11:32:05 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-05-11 11:32:05 -0700 |
commit | 196ee8b16fcd42fca04d1fb7e11ec46dd45c8421 (patch) | |
tree | e6e4b9c4f601cc7fa4981f4ad83bd4ec7cefce02 /src/modules | |
parent | 15aae728e5bba7ac255e2f0266d39c5e9d95fc6a (diff) | |
download | px4-firmware-196ee8b16fcd42fca04d1fb7e11ec46dd45c8421.tar.gz px4-firmware-196ee8b16fcd42fca04d1fb7e11ec46dd45c8421.tar.bz2 px4-firmware-196ee8b16fcd42fca04d1fb7e11ec46dd45c8421.zip |
Change the way modules are built so that object paths are relative and use vpath for locating sources (so source paths are also shorter).
Add some basic documentation for the build system files while we're at it.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mathlib/CMSIS/module.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/mathlib/CMSIS/module.mk b/src/modules/mathlib/CMSIS/module.mk index c676f3261..ba45b159e 100644 --- a/src/modules/mathlib/CMSIS/module.mk +++ b/src/modules/mathlib/CMSIS/module.mk @@ -38,8 +38,9 @@ # # Find sources # -DSPLIB_SRCDIR := $(PX4_MODULE_SRC)/modules/mathlib/CMSIS -ABS_SRCS := $(wildcard $(DSPLIB_SRCDIR)/DSP_Lib/Source/*/*.c) +DSPLIB_SRCDIR := $(dir $(lastword $(MAKEFILE_LIST))) +SRCLIST := $(wildcard $(DSPLIB_SRCDIR)DSP_Lib/Source/*/*.c) +SRCS := $(patsubst $(DSPLIB_SRCDIR)%,%,$(SRCLIST)) zork.c INCLUDE_DIRS += $(DSPLIB_SRCDIR)/Include \ $(DSPLIB_SRCDIR)/Device/ARM/ARMCM4/Include \ |