Skip to content

Commit 64ea2e8

Browse files
ladyadadeanm1278
authored andcommitted
makefile now compiles from within Roaming/Arduino15 subfolder
1 parent f8481c1 commit 64ea2e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bootloaders/zero/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
IDE_PATH="../../../../.."
2-
ARM_GCC_PATH=$(IDE_PATH)/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin
1+
IDE_PATH=../../../../..
2+
ARM_GCC_PATH=$(IDE_PATH)/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin
33
CC=$(ARM_GCC_PATH)/arm-none-eabi-gcc
44
CFLAGS=-mthumb -mcpu=cortex-m0plus -Wall -c -g -Os -w -std=gnu99 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500
55
LDFLAGS=-mthumb -mcpu=cortex-m0plus -Wall -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols
66
BLD_EXTA_FLAGS=-D__SAMD21G18A__
77
BUILD_PATH=build
8-
INCLUDES=-I$(IDE_PATH)/hardware/tools/CMSIS/CMSIS/Include/ -I$(IDE_PATH)/hardware/tools/CMSIS/Device/ATMEL/ -I./drivers/ -I./utils/ -I./utils/preprocessor/ -I./utils/interrupt
8+
INCLUDES=-I$(IDE_PATH)/tools/CMSIS/CMSIS/Include/ -I$(IDE_PATH)/tools/CMSIS/4.0.0-atmel/Device/ATMEL/ -I$(IDE_PATH)/tools/CMSIS/4.0.0-atmel/CMSIS/Include/ -I./drivers/ -I./utils/ -I./utils/preprocessor/ -I./utils/interrupt
99
SOURCES=main.c sam_ba_monitor.c startup_samd21.c usart_sam_ba.c drivers/cdc_enumerate.c drivers/uart_driver.c utils/interrupt/interrupt_sam_nvic.c
1010
OBJECTS=$(addprefix $(BUILD_PATH)/, $(SOURCES:.c=.o))
1111
DEPS=$(addprefix $(BUILD_PATH)/, $(SOURCES:.c=.d))
@@ -24,14 +24,14 @@ EXECUTABLE=$(NAME).bin
2424
all: print_info $(SOURCES) $(BIN) $(HEX) $(AS_BUILD)
2525

2626
all: $(SOURCES) $(EXECUTABLE)
27-
27+
2828
$(EXECUTABLE): $(OBJECTS)
2929
$(CC) -L$(BUILD_PATH) $(LDFLAGS) -Os -Wl,--gc-sections -save-temps -Tsamd21j18a_flash.ld -Wl,-Map,$(BUILD_PATH)/$(NAME).map --specs=nano.specs --specs=nosys.specs -o $(BUILD_PATH)/$(NAME).elf $(OBJECTS) -Wl,--start-group -lm -Wl,--end-group
3030
$(ARM_GCC_PATH)/arm-none-eabi-objcopy -O binary $(BUILD_PATH)/$(NAME).elf $@
3131

3232
$(BUILD_PATH)/%.o: %.c
3333
-@mkdir -p $(@D)
3434
$(CC) $(CFLAGS) $(BLD_EXTA_FLAGS) $(INCLUDES) $< -o $@
35-
35+
3636
clean:
3737
del $(EXECUTABLE) $(subst /,\,$(OBJECTS)) $(subst /,\,$(BUILD_PATH)/$(NAME).*)

0 commit comments

Comments
 (0)