Makefile: Bit more cleanup
[simavr] / Makefile.common
index 32edccc..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
@@ -57,6 +58,7 @@ AR                    ?= ar
 RANLIB                 ?= ranlib
 MKDIR          ?= mkdir -p
 INSTALL                ?= install
+SHELL          := ${shell which bash}
 
 # simavr directory
 SIMAVR         ?= ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}