Created
March 11, 2017 15:39
-
-
Save wdwalker/a84ecfb17ac947995fee42e3addc36f5 to your computer and use it in GitHub Desktop.
DEBUG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define DEBUG to anything if you want debug enabled. | |
# | |
# https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Optimize-Options.html#Optimize-Options | |
# http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0205g/Bgbjjgij.html | |
# https://mcuoneclipse.com/2015/05/27/semihosting-for-kinetis-design-studio-v3-0-0-and-gnu-arm-embedded-launchpad/ | |
DEBUG= | |
ifdef DEBUG | |
OPTIMIZE=-Os -g -DDEBUG | |
RDIMONSPECS = --specs=rdimon.specs | |
RDIMONLIB = -lrdimon | |
MULDEFS = -Wl,-z,muldefs | |
else | |
OPTIMIZE=-O2 | |
RDIMONSPECS = --specs=nosys.specs | |
RDIMONLIB = -lnosys | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment