# Set default C flags. If theese are set elsewhere (e.g. on a command
# line), these default flags are not used.
DEBUG ?= -ggdb
-OPTIMIZE ?= -O2
+#OPTIMIZE ?= -O2
# Set default C flags. If theese are set elsewhere (e.g. on a command
# line), these default flags are not used.
#DEBUG ?= -g
-#OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
-#LDFLAGS += -Wl,--cref
-#LDFLAGS += -Wl,--gc-section
+OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
+LDFLAGS += -Wl,--cref
+LDFLAGS += -Wl,--gc-section
LPC21ISP=lpc21isp-179
LPC_BAUD = 38400