RTL00_WEB/USDK/paths.mk

39 lines
928 B
Makefile
Raw Normal View History

2017-06-21 00:00:20 +00:00
#---------------------------
2018-04-20 07:53:32 +00:00
# Set Paths & Tools
2017-06-21 00:00:20 +00:00
#---------------------------
2018-04-20 07:53:32 +00:00
SDK_PATH ?= ../RTL00_WEB/USDK/
#GCC_PATH ?= d:/MCU/GNU_Tools_ARM_Embedded/7.2017-q4-major/bin/# + or set in PATH
TOOLS_PATH ?= $(SDK_PATH)
2017-06-21 00:00:20 +00:00
FLASHER_TYPE ?= Jlink
2018-04-20 07:53:32 +00:00
ifneq ($(shell uname), Linux)
PYTHON ?= C:/Python27/python
OPENOCD ?= d:/MCU/OpenOCD/bin/openocd.exe
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V630g/
else
PYTHON ?= python
OPENOCD ?= /mnt/d/MCU/OpenOCD/bin/openocd.exe
JLINK_PATH ?= /mnt/d/MCU/SEGGER/JLink_V630g/
endif
2017-06-21 00:00:20 +00:00
# Compilation tools
CROSS_COMPILE = $(GCC_PATH)arm-none-eabi-
AR = $(CROSS_COMPILE)ar
CC = $(CROSS_COMPILE)gcc
AS = $(CROSS_COMPILE)as
NM = $(CROSS_COMPILE)nm
LD = $(CROSS_COMPILE)gcc
GDB = $(CROSS_COMPILE)gdb
SIZE = $(CROSS_COMPILE)size
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
# TARGET dirs
TARGET ?= build
OBJ_DIR ?= $(TARGET)/obj
BIN_DIR ?= $(TARGET)/bin
ELFFILE ?= $(OBJ_DIR)/$(TARGET).axf