summaryrefslogtreecommitdiff
path: root/Sprinter/Makefile
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-07 22:08:31 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-07 22:08:31 +0200
commitc97109b25d298119a088b31c0f60fd8a57905476 (patch)
treeac001ff6742dfecccbaf1990e8f20f41658f7f1e /Sprinter/Makefile
parent545a2ee492a532e37348daa51c034c29fdc94e18 (diff)
Change behaviour on endstop hit.
Diffstat (limited to 'Sprinter/Makefile')
-rw-r--r--Sprinter/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Sprinter/Makefile b/Sprinter/Makefile
index 6caffd5..7e888b0 100644
--- a/Sprinter/Makefile
+++ b/Sprinter/Makefile
@@ -82,14 +82,14 @@ CXXINCS = -I$(ARDUINO)
# gnu89 - c89 plus GCC extensions
# c99 - ISO C99 standard (not yet fully implemented)
# gnu99 - c99 plus GCC extensions
-CSTANDARD = -std=gnu99
+#CSTANDARD = -std=gnu99
CDEBUG = -g$(DEBUG)
CWARN = -Wall -Wstrict-prototypes
-CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
+CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -w -ffunction-sections -fdata-sections -DARDUINO=22
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
-CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA)
-CXXFLAGS = $(CDEFS) $(CINCS) -O$(OPT)
+CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CEXTRA) $(CTUNING)
+CXXFLAGS = $(CDEFS) $(CINCS) -O$(OPT) -Wall $(CEXTRA) $(CTUNING)
#ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
LDFLAGS = -lm
@@ -200,7 +200,7 @@ extcoff: $(TARGET).elf
# Link: create ELF output file from library.
applet/$(TARGET).elf: $(TARGET).pde applet/core.a
- $(CC) $(ALL_CFLAGS) -o $@ applet/$(TARGET).cpp -L. applet/core.a $(LDFLAGS)
+ $(CC) $(ALL_CFLAGS) -Wl,--gc-sections -o $@ applet/$(TARGET).cpp -L. applet/core.a $(LDFLAGS)
applet/core.a: $(OBJ)
@for i in $(OBJ); do echo $(AR) rcs applet/core.a $$i; $(AR) rcs applet/core.a $$i; done