forked from 3drobotics/DriverFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 697 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: linux qurt rpi2
.PHONY update:
update:
git submodule update --init --recursive
define df_cmake_generate
mkdir -p build_$(1) && cd build_$(1) && cmake .. -DDF_TARGET=$(1) -DCMAKE_TOOLCHAIN_FILE=$(2) -DDF_ENABLE_TESTS=1
endef
rpi2 linux nuttx: update
$(call df_cmake_generate,$@,cmake/toolchains/Toolchain-$@.cmake)
cd build_$@ && make
qurt: update
$(call df_cmake_generate,qurt,cmake/cmake_hexagon/toolchain/Toolchain-qurt.cmake)
cd build_qurt && make
run: linux
build_linux/test/df_testapp
helgrind: linux
valgrind --tool=helgrind build_linux/test/df_testapp
clean:
rm -rf build_*
fix-style:
./dspal/tools/fix_code_style.sh -p ".git dspal build_qurt build_linux build_nuttx"