Add some gcc flags.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 6 Nov 2009 09:16:30 +0000 (09:16 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 6 Nov 2009 09:16:30 +0000 (09:16 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3106 38d2e660-2303-0410-9eaa-f027e97ec537

examples/triface/triface.mk

index 68c8b721adbd43150d7dd6600edee0f498ef0b81..140dcc73c3c114279510ea214e46b0e3c84f543b 100644 (file)
@@ -55,7 +55,8 @@ triface_CSRC = \
 
 triface_PCSRC += bertos/mware/formatwr.c
 
-triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)'  -D'WIZ_AUTOGEN' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
+triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)'  -D'WIZ_AUTOGEN' -fno-strict-aliasing -fwrapv -Iexamples/triface/boot -Ibertos/cpu/avr
+ng -Iexamples/triface -Ibertos/cpu/avr
 triface_LDFLAGS = -Wl
 
 triface_PROGRAMMER_CPU = atmega1281
@@ -88,7 +89,8 @@ boot_CSRC = \
 
 boot_PREFIX = avr-
 
-boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -D'CPU_FREQ=(14745600UL)' -D'WIZ_AUTOGEN' -Iexamples/triface/boot -Ibertos/cpu/avr
+boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -D'CPU_FREQ=(14745600UL)' -D'WIZ_AUTOGEN' -fno-strict-aliasing -fwrapv -Iexamples/triface/boot -Ibertos/cpu/avr
+ -Iexamples/triface/boot -Ibertos/cpu/avr
 boot_CFLAGS = -Os -mcall-prologues
 boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)