Added -O2 for the examples too
Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
# 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
# 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