From c5ccf598a6e23909dead9ac8b413fb42925ee5f4 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 10 Oct 2021 11:54:35 +0200 Subject: Share flags between lib and test programs --- Makefile.lib | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'Makefile.lib') diff --git a/Makefile.lib b/Makefile.lib index ce5787c..d776318 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -1,13 +1,7 @@ -MCU = IMXRT1062 -MCU_DEF = ARDUINO_TEENSY40 +include flags.mk -OPTIONS = -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -OPTIONS += -D__$(MCU)__ -DARDUINO=10813 -DTEENSYDUINO=154 -D$(MCU_DEF) - -CPU_OPTIONS = -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb - -CPPFLAGS = -Wall -g -O2 $(CPU_OPTIONS) -MMD $(OPTIONS) -I. -ffunction-sections -fdata-sections -I. -CXXFLAGS = -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing +CPPFLAGS += -I. +CXXFLAGS += -std=gnu++14 C_FILES := $(wildcard *.c) CPP_FILES := $(wildcard *.cpp) -- cgit v1.2.3