18 lines
473 B
Makefile
18 lines
473 B
Makefile
OOCD ?= openocd
|
|
OOCD_INTERFACE ?= stlink-v2
|
|
OOCD_TARGET ?= stm32f4x
|
|
BMP_PORT ?= /dev/ttyBmpGdb
|
|
|
|
COMFLAGS=-g -Os -pedantic -Wall
|
|
|
|
CFLAGS=$(COMFLAGS) -std=c99 -D_POSIX_C_SOURCE=200809L
|
|
CXXFLAGS=$(COMFLAGS) -std=c++17
|
|
|
|
OBJS = usb.o adc.o ringbuffer.o uart.o buttons.o printf.o encoder.o
|
|
BINARY ?= main
|
|
DEVICE=STM32F405RG
|
|
|
|
printf.o: CFLAGS:=$(CFLAGS) -Wno-parentheses -Wno-char-subscripts -Wno-sign-compare -Wno-implicit-fallthrough
|
|
|
|
include ../rules.mk
|