11 lines
450 B
Makefile
11 lines
450 B
Makefile
# Sensor node firmware: STM32F407, bare metal, GNU Arm toolchain.
|
|
TARGET = sensor-node
|
|
CC = arm-none-eabi-gcc
|
|
CFLAGS = -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -O2 -Wall \
|
|
-ICore/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc -DSTM32F407xx
|
|
SRCS = Core/Src/main.c Core/Src/comms.c Core/Src/sensors.c \
|
|
Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c
|
|
|
|
$(TARGET).elf: $(SRCS)
|
|
$(CC) $(CFLAGS) $(SRCS) -o $@
|