-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
# Copyright (C) 2023-2024 Dmitry Ponomarev <[email protected]> | ||
# Distributed under the terms of the GPL v3 license, available in the file LICENSE. | ||
# Variables | ||
CC := arm-none-eabi-gcc | ||
CFLAGS := -g -Og | ||
|
||
# Add compile flags to cmake | ||
CMAKE_FLAGS := "-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CC} -DCMAKE_BUILD_TYPE=Debug" | ||
|
||
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
BUILD_DIR:=$(ROOT_DIR)/build | ||
|
@@ -44,7 +38,7 @@ sitl_dronecan: checks clean | |
cd ${BUILD_DIR}/dronecan_sitl/obj && cmake -DCAN_PROTOCOL=dronecan -DUSE_PLATFORM_UBUNTU=ON -G "Unix Makefiles" ../../.. && make | ||
dronecan_v3: checks clean | ||
mkdir -p ${BUILD_DIR}/dronecan_v3/obj | ||
cd ${BUILD_DIR}/dronecan_v3/obj && cmake -DCAN_PROTOCOL=dronecan -DUSE_PLATFORM_NODE_V3=ON ${CMAKE_FLAGS} -G "Unix Makefiles" ../../.. && make | ||
cd ${BUILD_DIR}/dronecan_v3/obj && cmake -DCAN_PROTOCOL=dronecan -DUSE_PLATFORM_NODE_V3=ON -G "Unix Makefiles" ../../.. && make | ||
|
||
# Cyphal & DroneCAN | ||
v2: checks generate_dsdl clean | ||
|
@@ -80,4 +74,4 @@ clean_releases: | |
clean: | ||
-rm -fR ${BUILD_DIR}/*/obj | ||
distclean: | ||
-rm -fR ${BUILD_DIR}/ | ||
-rm -fR ${BUILD_DIR}/ |