X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=examples%2Ftriface%2Ftriface.mk;fp=examples%2Ftriface%2Ftriface.mk;h=5341610a7df702735cb4fa8db516ecb2a8d7479e;hb=393f95e5ad4729311c47d3f708faa76357e6fead;hp=140dcc73c3c114279510ea214e46b0e3c84f543b;hpb=504cdd3b0e975c2b9c0682abbad5e62185bd7cc9;p=bertos.git diff --git a/examples/triface/triface.mk b/examples/triface/triface.mk index 140dcc73..5341610a 100644 --- a/examples/triface/triface.mk +++ b/examples/triface/triface.mk @@ -55,8 +55,9 @@ 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 -fwrapv -Iexamples/triface/boot -Ibertos/cpu/avr -ng -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 -Ibertos/cpu/avr + triface_LDFLAGS = -Wl triface_PROGRAMMER_CPU = atmega1281 @@ -89,8 +90,9 @@ boot_CSRC = \ boot_PREFIX = 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_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -D'CPU_FREQ=(14745600UL)' -D'WIZ_AUTOGEN' \ + -fno-strict-aliasing -fwrapv -Iexamples/triface/boot -Ibertos/cpu/avr + boot_CFLAGS = -Os -mcall-prologues boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)