Makefile: Bit more cleanup
authorMichel Pollet <buserror@gmail.com>
Fri, 18 May 2012 12:04:50 +0000 (13:04 +0100)
committerMichel Pollet <buserror@gmail.com>
Fri, 18 May 2012 12:04:50 +0000 (13:04 +0100)
Added -O2 for the examples too

Signed-off-by: Michel Pollet <buserror@gmail.com>
Makefile.common
simavr/Makefile

index 6c52f1d..75f687c 100644 (file)
@@ -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
index ae34c63..6155d5a 100644 (file)
 #      You should have received a copy of the GNU General Public License
 #      along with simavr.  If not, see <http://www.gnu.org/licenses/>.
 
-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