summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-10-10 11:54:35 +0200
committerAdrian Kummerlaender2021-10-10 11:54:35 +0200
commitc5ccf598a6e23909dead9ac8b413fb42925ee5f4 (patch)
tree4c9d11edd9371f9e8afaa47b8bc748cc65941299 /test
parentb006b3c355616c89d66084880b5a5a87f0241009 (diff)
downloadteensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar.gz
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar.bz2
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar.lz
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar.xz
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.tar.zst
teensy-env-c5ccf598a6e23909dead9ac8b413fb42925ee5f4.zip
Share flags between lib and test programs
Diffstat (limited to 'test')
-rw-r--r--test/Makefile13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/Makefile b/test/Makefile
index 0891b70..3bf5a70 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,15 +1,6 @@
-MCU = IMXRT1062
-MCU_DEF = ARDUINO_TEENSY40
+include $(TEENSY_PATH)/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 = $(NIX_CFLAGS_COMPILE) -Wall -g -O2 $(CPU_OPTIONS) -MMD $(OPTIONS) -I. -ffunction-sections -fdata-sections
-CXXFLAGS = -std=gnu++20 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing
-
-LDFLAGS += -Os -Wl,--gc-sections,--relax $(CPU_OPTIONS)
+CXXFLAGS += -std=gnu++20
LIBS = -lm -lstdc++ -lteensy-core