From: Michel Pollet Date: Fri, 18 May 2012 12:04:50 +0000 (+0100) Subject: Makefile: Bit more cleanup X-Git-Tag: v1.0b2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=7aab93651c05b3e18aa634f69f0c13feeb47d505;p=sx%2Fsimavr.git Makefile: Bit more cleanup Added -O2 for the examples too Signed-off-by: Michel Pollet --- diff --git a/Makefile.common b/Makefile.common index 6c52f1d..75f687c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -29,6 +29,7 @@ # get the first character of what the compiler says it is, unless it's 'x86_64' doh ARCH = ${shell $(CC) -dumpmachine | sed -e 's/^x/i/' -e 's/\(.\).*/\1/'} +CFLAGS += -O2 -Wall ifeq ($(ARCH), i) CFLAGS += -mfpmath=sse -msse2 endif diff --git a/simavr/Makefile b/simavr/Makefile index ae34c63..6155d5a 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -16,13 +16,12 @@ # You should have received a copy of the GNU General Public License # along with simavr. If not, see . -SIMAVR_VERSION = 1.0a10 +SIMAVR_VERSION = ${shell git tag |tail -1} SIMAVR_REVISION = 1 target = run_avr -CFLAGS += -O3 -Wall -Werror - +CFLAGS += -Werror # tracing id useful especialy if you develop simavr core. # it otherwise eat quite a bit of few cycles, even disabled #CFLAGS += -DCONFIG_SIMAVR_TRACE=1