STM32F4DoorControl/Makefile

18 lines
473 B
Makefile
Raw Normal View History

2021-01-31 18:26:40 +00:00
OOCD ?= openocd
OOCD_INTERFACE ?= stlink-v2
OOCD_TARGET ?= stm32f4x
BMP_PORT ?= /dev/ttyBmpGdb
2021-02-19 17:01:56 +00:00
COMFLAGS=-g -Os -pedantic -Wall
2021-01-31 18:26:40 +00:00
2021-02-19 17:01:56 +00:00
CFLAGS=$(COMFLAGS) -std=c99 -D_POSIX_C_SOURCE=200809L
CXXFLAGS=$(COMFLAGS) -std=c++17
2021-02-19 20:30:23 +00:00
OBJS = usb.o adc.o ringbuffer.o uart.o buttons.o printf.o encoder.o
2021-01-31 18:26:40 +00:00
BINARY ?= main
DEVICE=STM32F405RG
2021-02-19 17:01:56 +00:00
printf.o: CFLAGS:=$(CFLAGS) -Wno-parentheses -Wno-char-subscripts -Wno-sign-compare -Wno-implicit-fallthrough
2021-01-31 18:26:40 +00:00
2021-02-19 17:01:56 +00:00
include ../rules.mk