src/config.mk generation.

This commit is contained in:
NIIBE Yutaka
2017-08-11 21:02:43 +09:00
parent 328766af12
commit 11afbdde14
4 changed files with 23 additions and 12 deletions

View File

@@ -5,6 +5,8 @@ PROJECT = regnual
OBJS = regnual.o usb-stm32f103.o reset.o
LDSCRIPT= regnual.ld
include ../src/config.mk
###################################
MCU = cortex-m3
@@ -19,7 +21,7 @@ TOPT = -mthumb -DTHUMB -mno-thumb-interwork
# Define C warning options here
CWARN = -Wall -Wextra -Wstrict-prototypes
MCFLAGS= -mcpu=$(MCU)
DEFS = -DFREE_STANDING
DEFS += -DFREE_STANDING
CFLAGS = -O2 -g
CFLAGS += -Wa,-alms=$(notdir $(<:.c=.lst)) -fpie