diff --git a/Makefile b/Makefile
index df054e3..c281326 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all:	make-simavr make-tests make-examples
+all:	make-simavr
 
 make-simavr:
 	make -C simavr
diff --git a/Makefile.common b/Makefile.common
index f781c16..f7d9f04 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -33,7 +33,7 @@ ifeq ($(ARCH), i)
 CFLAGS		+= -mfpmath=sse -msse2
 endif
 
-CFLAGS		+= -g --std=gnu99 -Wall
+CFLAGS		+= -fPIC -g --std=gnu99 -Wall
 CFLAGS		+= ${patsubst %,-I%,${subst :, ,${IPATH}}}
 LDFLAGS 	+= -lelf 
 
@@ -43,7 +43,7 @@ AVR_INC 	:= ${AVR_ROOT}/avr-4/
 AVR 		:= ${AVR_ROOT}/bin/avr-
 LFLAGS 		+= -L/opt/local/lib
 else
-AVR_ROOT 	:= /usr/lib/avr
+AVR_ROOT 	:= /usr/avr
 AVR_INC 	:= ${AVR_ROOT}
 AVR 		:= avr-
 CFLAGS 		+= -fPIC
diff --git a/simavr/Makefile b/simavr/Makefile
index a52c1f7..d132a7b 100644
--- a/simavr/Makefile
+++ b/simavr/Makefile
@@ -21,7 +21,7 @@ SIMAVR_REVISION	= 1
 
 target	= run_avr
 
-CFLAGS	+= -O3 -Wall -Werror
+CFLAGS	+= -fPIC -O3 -Wall -Werror
 
 # tracing id useful especialy if you develop simavr core.
 # it otherwise eat quite a bit of few cycles, even disabled
