Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Created March 11, 2017 15:39
Show Gist options
  • Save wdwalker/a84ecfb17ac947995fee42e3addc36f5 to your computer and use it in GitHub Desktop.
Save wdwalker/a84ecfb17ac947995fee42e3addc36f5 to your computer and use it in GitHub Desktop.
DEBUG
# 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