Skip to content

Commit

Permalink
rmv makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsiiaPine committed Nov 19, 2024
1 parent d4d56f7 commit ca623d3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -80,4 +74,4 @@ clean_releases:
clean:
-rm -fR ${BUILD_DIR}/*/obj
distclean:
-rm -fR ${BUILD_DIR}/
-rm -fR ${BUILD_DIR}/

0 comments on commit ca623d3

Please sign in to comment.