From 9b62282c9cb66faf94db76040badca95bdd9556e Mon Sep 17 00:00:00 2001
From: Sergi Hernandez <shernand@iri103.users.iri.prv>
Date: Fri, 15 Apr 2016 16:59:50 +0200
Subject: [PATCH] Modified the Makefile to add path variables for the STM32_hal
 and STM32_libraries repositories.

---
 Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index b40c7b5..b45c2be 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 # setup
 # modified by zerom for WinARM 8/2010
 
+STM32_HAL_PATH=/home/shernand/humanoids/stm32_hal
+STM32_LIBRARIES_PATH=/home/shernand/humanoids/stm32_libraries
+
 PROJECT_NAME=darwin_firmware
 #TARGET_FILES=$(wildcard src/*.c)
 TARGET_FILES=src/cm730_fw.c
@@ -23,16 +26,16 @@ TARGET_FILES+=src/darwin_kinematics.c
 
 TARGET_PROCESSOR=STM32F103RE
 
-HAL_PATH=../../STM32_processor/hal/f1
+HAL_PATH=$(STM32_HAL_PATH)/f1
 
 include $(HAL_PATH)/select_processor.mk
 
 STM32_STARTUP_FILES_PATH = $(HAL_PATH)/startup_code/
 STM32_LINKER_SCRIPTS_PATH = ./linker_script
-UTILS_PATH=../../STM32_processor/libraries/utils
-COMM_PATH=../../STM32_processor/libraries/comm
-USART_PATH=../../STM32_processor/libraries/f1/usart
-DYNAMIXEL_PATH=../../STM32_processor/libraries/dynamixel_base
+UTILS_PATH=$(STM32_LIBRARIES_PATH)/utils
+COMM_PATH=$(STM32_LIBRARIES_PATH)/comm
+USART_PATH=$(STM32_LIBRARIES_PATH)/f1/usart
+DYNAMIXEL_PATH=$(STM32_LIBRARIES_PATH)/dynamixel_base
 BUILD_PATH=build
 
 COMPILE_OPTS = -mlittle-endian -mcpu=cortex-m3 -mthumb -mthumb-interwork 
-- 
GitLab